question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect path for bundled python

See original GitHub issue

System: Windows 10 Blender: 2.90

When attempting to run blender via the plugin, this error occurs (I have replaced personal information with ****):

found bundled python: c:\Program Files\Blender Foundation\Blender 2.9\2.9\python
[{'load_dir': 'c:\\*********', 'module_name': '********'}]
found bundled python: c:\Program Files\Blender Foundation\Blender 2.9\2.9\python
unknown argument, loading as file: -m
Error: Cannot read file 'c:\Program Files\Blender Foundation\Blender 2.9\-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.9\-m
Saved session recovery to 'C:\Users\****\AppData\Local\Temp\quit.blend'

Blender quit

################################################################################
>   could not install ptvsd
################################################################################

I tracked it down to the install_package function in installation.py. The variable python_path was pointing to the folder for the bundled python and not the executable so the subproccess crashes.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ppinter1commented, Apr 7, 2021

Ah, right. I was over-thinking it. Sorry for hijacking this thread. Thank you!

0reactions
kofi-de-comcommented, Apr 21, 2021

I ran into the same issue with Blender 2.83. Left a comment on the commit for a suggested fix. https://github.com/JacquesLucke/blender_vscode/commit/3870175ef0a12394bb8f955cae3131d897ddfc13#commitcomment-49792834

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wrong path returned for install directory and bundled plugin ...
The get_install_directory() and bundled_plugin_path() return a path relative to the calling executable. So when they are called in a ...
Read more >
Python returns invalid path with pip command - Stack Overflow
It seems you have a typo in your path. c:\Users\me\SSL\mycerticate.crt. C:\Users\me\SSL\smycertificate.crt.
Read more >
Could not find a suitable TLS CA certificate bundle, invalid path
I'm trying to connect to my authentication server using my SSL certification via requets module. To get this I imported my own certifictae ......
Read more >
Cloud SDK installer fails to function correctly on Windows if ...
Problem you have encountered: If there is an existing Python installation in a path similar to C:\Program Files\Python37 OR if Cloud SDK installer...
Read more >
How to Add Python to PATH
You may need to add Python to PATH if you've installed Python, but typing python on the command line doesn't seem to work....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found