Installing ladybug in Rhino 8 and using python packages result in this error, even if not using ladybug-tools. Is the installation overwriting the default python path or something?
Uninstalling ladybug removes this error.
Hmm. Can you provide more information about how you are trying to import numpy?
Is there a reason that you are using the numpy that comes with Ladybug Tools instead of the one that is installed under the Python distribution that comes with Rhino. I believe they still use Python 3.9.
I am importing numpy from a conda environment (not Rhino’s default env). But somehow after installation of ladybug the code below shows the error in the message above. Uninstalling ladybug removes the error. Is the installation changing some settings?
import locale
locale.setlocale(locale.LC_ALL, 'en_US')
print(locale.getlocale())
import os
import os.path as op
import sys
CONDA_ENV = r'.....\.conda\envs\py030900'
# add the paths of site-packages in conda environment
sys.path.append(op.join(CONDA_ENV, r"Lib\site-packages"))
# tell python where it can find dlls. this is required to find all other .dll files that
# are installed as part of the other packages in the conda environment e.g. fblas
os.add_dll_directory(op.join(CONDA_ENV, r'Library\bin'))
import numpy as np