Like many other colleagues, we are still facing the error : "1. Error running script: partially initialized module ‘pandas’ has no attribute ‘_pandas_datetime_CAPI’ (most likely due to a circular import) [40:1]" when trying to import pandas.
Are there any stable solutions to come? Does anyone knows if this problem is at Rhino’s side?
Hi, I’m not sure about the technical explanation, but this method is very effective for me. You can check out this link: Gmsh in Grasshopper - #6 by Rh-3d-p
Then i set the regions to English (united states):
Go to Settings > Time & Language > Language & Region.
Check if English (United States) is available under the Languages section. If it’s not, add it by clicking on “Add a language” and searching for English (United States).
Under Region, ensure that the United States is selected.
Open Control Panel.
Go to Clock and Region > Region.
Click on the Administrative tab.
Click on the Change system locale button.
Make sure English (United States) is selected, and then click OK.
and then I set manually the locale in the Rhino Python script:
import locale
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
import pandas as pd
The numpy.dtype error seems to have occurred as pandas 2.0 was compiled against an earlier version of numpy and doesn’t support numpy 2.0. Fixed by also downgrading numpy to some version < 2.0.