-
Notifications
You must be signed in to change notification settings - Fork 74
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
Version 0.0.15 could not install debugpy #99
Comments
The extension probably installed
|
Having this issue as well. |
Same for me. After I install debugpy to blender python it asks for flask, so I install flask too and then I get error as @jacastillol-bairesdev mentions. Blender version 2.83 LTS. |
I think this blender extension only works for Blender 2.92 now. But I'm not sure why that is. 2.92 is working though. So the |
As mentioned in #96 the reason for the failure is that All Blender versions before Blender 2.92 have the environment variable sys.executable wrongly pointing to the Blender executable instead of the Python executable. But debugpy uses the environment variable for its own purposes, hence things go very wrong when the debug client tries to connect to the debug server by using blender.exe as the python engine :) So, this Blender Development plugin 0.0.15 only works on Blender 2.92 and newer, while 0.0.14 only works on older Blender versions. As long as there is no significant change in the plugin i believe its best to install 0.0.14 when you work with older blender versions. |
I uninstalled "Blender Development 0.0.15" extension in VS Code. Then installed "Blender Development 0.0.14" extension which I downloaded from here [[https://marketplace.visualstudio.com/items?itemName=JacquesLucke.blender-development]]. Now, I am not facing this issue anymore. |
Neither 0.0.15 nor 0.0.16 seem to work out of the box with 2.93. Same error message as the OP about debugpy in both cases. I tried installing debugpy, and the error messaged complained about Flask instead. So, I installed flask as well through Blender's console. Now I'm getting a permission error on the I am getting the correct behavior on 0.0.15 and 0.0.16 for Blender 2.91, however. Was there ever a resolution to this, that would work with the current version of Blender? |
@AcylSilane
There may be some other modules that need escalated privilege. |
As @JacquesLucke mentioned, starting vscode as administrator when using the extension the first time solved the issue for me. |
I was unable to get this solved with elevated privileges in VS Code - I assume it may be because Blender doesn't launch with elevated privileges. However, if you look at the console output when attempting to start the app, it will give the directory it's trying to copy the Python files from and to after downloading them with pip. If you just manually copy those directories, everything will work fine. On Windows 10, I just used command line with admin privileges and XCODE with the the appropriate switches (/E and /H I think?) to recursively copy the plugin directories to where the app wanted them. Everything worked fine thereafter. |
I am having this problem again in Blender 3.1.0
|
I fixed the problem by running
|
Testing here with last error reads:
Then tried:
Now it works (also after restarting VSCode without admin). Probably didn't need the admin privileges since installed from command line. Also simply running as admin didn't work (needed to manually install those bits from command line) When i try with Blender 2.93.5 it also works (following same steps). |
Same issue
UPD: the only thing that helped is to use the portable version of the Blender. Well, that's the way it is :) |
Version 0.0.14 works perfectly OK.
After upgrading to 0.0.15 and issuing the Blender: Start command I now get
Read prefs: C:\Users\Paul Brassington\AppData\Roaming\Blender Foundation\Blender\2.90\config\userpref.blend
found bundled python: c:\Program Files\Blender Foundation\Blender 2.90\2.90\python
[{'load_dir': 'c:\Users\Paul Brassington\Documents\Code\Blender\PBB', 'module_name': 'PBB'}]
Read prefs: C:\Users\Paul Brassington\AppData\Roaming\Blender Foundation\Blender\2.90\config\userpref.blend
found bundled python: c:\Program Files\Blender Foundation\Blender 2.90\2.90\python
unknown argument, loading as file: -m
Error: Cannot read file 'c:\Program Files\Blender Foundation\Blender 2.90-m': No such file or directory
Error: argument has no '.blend' file extension, not using as new file, exiting! c:\Program Files\Blender Foundation\Blender 2.90-m
Saved session recovery to 'C:\Users\PAULBR~1\AppData\Local\Temp\quit.blend'
Blender quit
################################################################################
Saved session recovery to 'C:\Users\PAULBR~1\AppData\Local\Temp\quit.blend'
The text was updated successfully, but these errors were encountered: