JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
557 stars 76 forks source link

Launching Blender via VS Code results in a crash #37

Closed SurlyBird closed 3 weeks ago

SurlyBird commented 5 years ago

I have been using this extension since it was first announced and had zero problems with it (on Windows and Linux) until yesterday.

Starting yesterday, on Windows, Blender launches, but the app crashes after the following spew:

Executing task in folder TestMe: c:\Users\xyz\Desktop\test\blender-2.80.0-git.e80cbdac331a-windows64\blender.exe --python C:\Users\xyz.vscode\extensions\jacqueslucke.blender-development-0.0.12\pythonFiles\launch.py <


AL lib: (EE) UpdateDeviceParams: Failed to set 48000hz, got 44100hz instead
found bundled python: c:\Users\xyz\Desktop\test\blender-2.80.0-git.e80cbdac331a-windows64\2.80\python
[{'load_dir': 'c:\\Users\\xyz\\Desktop\\test\\TestMe', 'module_name': 'TestMe'}]

Collecting requests Using cached https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl Collecting chardet<3.1.0,>=3.0.2 (from requests) Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl Collecting idna<2.9,>=2.5 (from requests) Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl Collecting certifi>=2017.4.17 (from requests) Using cached https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests) Using cached https://files.pythonhosted.org/packages/e6/60/247f23a7121ae632d62811ba7f273d0e58972d75e58a94d329d51550a47d/urllib3-1.25.3-py2.py3-none-any.whl Installing collected packages: chardet, idna, certifi, urllib3, requests Successfully installed certifi-2019.3.9 chardet-3.0.4 idna-2.8 requests-2.22.0 urllib3-1.25.3

WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\certifi already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\certifi-2019.3.9.dist-info already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\chardet already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\chardet-3.0.4.dist-info already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\idna already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\idna-2.8.dist-info already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\requests already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\requests-2.22.0.dist-info already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\urllib3 already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\urllib3-1.25.3.dist-info already exists. Specify --upgrade to force replacement. WARNING: Target directory C:\Users\xyz\AppData\Roaming\Python\Python37\site-packages\bin already exists. Specify --upgrade to force replacement.

################################################################################

could not install requests ################################################################################

Saved session recovery to 'C:\Users\xyz\AppData\Local\Temp\quit.blend' The terminal process terminated with exit code: 1


I have tried manually upgrading all the packages listed, but it never seems to resolve the issue. I have uninstalled and reinstalled VS Code, all extensions, all versions of Python, etc. I can launch Blender just fine inside whatever build I make or download, but I cannot fully launch Blender VS Code using the Blender Development extension like I used to. 
SurlyBird commented 5 years ago

Just a bump to say I tested this on another system (Manjaro) and it runs fine. Not sure where or how my Windows Python got so messy.