You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means that, for example, numpy is not detected and so import numpy at the python console (in blender) produces a "not found" error. Also, add-ons that use numpy fail to load.
In this blender issue two workarounds are suggested. #81313 proposes a solution using the second of these. However, while this allows import numpy at the console it appears that add-on loading happens before the --python-expr command is executed and so it still fails if the add-on depends on numpy.
I have a pull-request using the first solution proposed above which seems to work for me.
To Reproduce
Steps to reproduce the behavior:
Install Blender normally.
Download the zipfile from BlenderGIS and install it (under Edit/Preferences/Add-ons/Install...)
Enable the add-on. (This should work)
Quit and restart Blender.
Observe the numpy-not-found error (although Blender will start)
(Optionally) Note that in the Scripting tab import numpy works and that toggling the add-on brings it to life.
Expected behavior
Blender should start happily with the add-on enabled.
Additional context
I had the problem with the Archipack Pro addon but BlenderGIS is free so it's better for testing.
Metadata
system: "x86_64-linux"
host os: Linux 5.5.8, NixOS, 20.03beta482.b780aefc621 (Markhor)
Describe the bug
As noted in #81218, since the upgrade to blender 2.82 the PYTHONPATH environment isn't checked any more:
blender patch
This means that, for example, numpy is not detected and so
import numpy
at the python console (in blender) produces a "not found" error. Also, add-ons that use numpy fail to load.In this blender issue two workarounds are suggested.
#81313 proposes a solution using the second of these. However, while this allows
import numpy
at the console it appears that add-on loading happens before the--python-expr
command is executed and so it still fails if the add-on depends on numpy.I have a pull-request using the first solution proposed above which seems to work for me.
To Reproduce
Steps to reproduce the behavior:
import numpy
works and that toggling the add-on brings it to life.Expected behavior
Blender should start happily with the add-on enabled.
Additional context
I had the problem with the Archipack Pro addon but BlenderGIS is free so it's better for testing.
Metadata
"x86_64-linux"
Linux 5.5.8, NixOS, 20.03beta482.b780aefc621 (Markhor)
yes
yes
nix-env (Nix) 2.3.2
"nixos-20.03beta482.b780aefc621, nixos-unstable-20.09pre215333.42f0be81ae0"
"home-manager"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: