Open laundmo opened 1 year ago
I'm open to making a PR for this myself over the next weekend - i'd just like a go-ahead first.
oh wow, good catch, that could also explain some "breakages" for people with multiple blender versions and so on...
Anywhere the PYPATH
variable is used in the codebase would be affected.
Aye, stumbled across this on the Discord server where a user was having issues with the install proceess using condas pip which doesn't work at all outside of a conda environment. Its potentially huge to the install process breaking.
If you could submit a PR that would be great obviously.
Contact Details
laundmo#7544 on discord
Description
When installing the py-slvs package from within the addon, the wrong pip will be called.
Explanation of why this might happen, and correct code to install dependencies: https://github.com/robertguetzkow/blender-python-examples/tree/master/add_ons/install_dependencies#installing-the-package
The simple fix to this is to modify the environment variables with which pip commands are run.
This blender console script shows the issue:
as you can see, this found the wrong pip (from my appdata site-packages)
heres a minimal version of the fix in action:
Addon Version
latest
Blender Version
all
What platform are you running on?
Windows