-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to resolve Blender path #3
Comments
where is your blender installed? (e.g. mine is installed at |
In trying to get this to work, I've installed it in two places One is the default |
Are you able to see a python executable file in the file explorer at "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\bin\python.exe"? |
Yes, it's there in both locations PS Z:\win-code\github\st2> dir 'C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\bin\python.exe'
Directory: C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\bin
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2/22/2024 2:22 PM 91136 python.exe
PS Z:\win-code\github\st2> dir 'C:\Program Files\WindowsApps\BlenderFoundation.Blender_4.1.1.0_x64__ppwjx1n5r4v9t\Blender\4.1\python\bin\python.exe'
Directory: C:\Program
Files\WindowsApps\BlenderFoundation.Blender_4.1.1.0_x64__ppwjx1n5r4v9t\Blender\4.1\python\bin
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 3/26/2024 1:30 PM 91136 python.exe |
huh, not sure what the issue could be then, as that's exactly the same as on my windows computer where b3denv is working correctly. I'm not sure why it'd be an issue, but the only thing I'm seeing different here is that you're running code from the Z drive (if i'm reading that correctly?). Could you try installing/running b3denv from the C drive instead? That might be a total garden path but I guess worth trying. |
I think I see the issue (but don't know of the solution) First, Around line 86, parent is elif on_windows():
version = None
parent = os.path.dirname(blender)
#### Parent is actually C:\Program Files\WindowsApps\BlenderFoundation.Blender_4.1.1.0_x64__ppwjx1n5r4v9t ####
# parent = blender # this will work
for p in os.listdir(parent):
if os.path.isdir(os.path.join(parent, p)):
name = os.path.basename(p)
if re.match(r"[234]{1}\.[0-9]{1,2}", name):
version = name
python_folder = os.path.join(parent, version, "python\\bin") Second, it doesn't seem to listen to the environment variable I set for BLENDER_PATH. When I execute the following in my powershell and print
If I can force the parent to be the path including Alternatively, if I just set the variable The WindowsApp blender path seems to have yet other issues, as well. For example, not being able to launch |
yeah I don't really know, I don't have a lot of time to work on this and I don't know much about windows. I'm able to specify BLENDER_PATH versions like this and get a totally working ST2 install if I run these commands inside the ST2 directory. I think you might be missing the blender.exe part at the end of the BLENDER_PATH setting?
The build_win.sh file isn't used anymore, you can just do |
Not sure what I did wrong.
I keep getting an error such as the following for 3.10, 3.11, and 3.12
I've tried setting the
BLENDER_PATH
.I've also tried install 4.11 using the Blender installer, choosing the default installation path.
Nothing works.
The text was updated successfully, but these errors were encountered: