Numpy import error
Closed this issue · 1 comments
Describe the bug
There is a import error when opening the exporter now due to a bug with numpy so we need to specify a version on the import.
To Reproduce
Just open the addin and witness an error
Expected behavior
Load the correct version of numpy according to pip
Desktop (please complete the following information):
Windows 10
Additional context
https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html
We can solve this by writting a specific conditional or including numpy==1.19.3
rather then just numpy.
pipDeps = ["pygltflib", "numpy==1.19.3", "protobuf", "pyquaternion"]
for depName in pipDeps:
progressBar.progressValue += 1
progressBar.message = f"Installing {depName}..."
# noinspection PyUnresolvedReferences
adsk.doEvents()
subprocess.run(f"\"{pythonFolder / 'python'}\" -m pip install -I {depName}", shell=True)
One would think that would work however we need to uninstall the pervious one and adding the -I
flag dramatically increases the amount of time needed to fetch dependencies since it overwrites them.
I'll look into this more eventually but right now it's not usable on windows essentially.