[blender_vscode] Error running Blender:Start on Windows
Anyone using JacquesLucke's blender_vscode extension for VScode in Windows?
I get the following error when I run the Blender:Start command. I'm currently running VScode in Administator mode.
It's probably associated with these issues and if so, I think i'll just drop using blender_vscode since it looks like it's been an open bug for some time.
Just wondering if anyone's come across a solution yet.
Executing task: c:\Program Files\Blender Foundation\Blender 3.2\blender.exe --python c:\Users\Owner\.vscode-oss\extensions\jacqueslucke.blender-development-0.0.17\pythonFiles\launch.py
Read prefs: C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\config\userpref.blend
CAD Transform 0.93.1 : ready
Traceback (most recent call last):
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\scripts\modules\addon_utils.py", line 335, in enable
mod = __import__(module_name)
ModuleNotFoundError: No module named 'homemaker'
sv: import settings
sv: SciPy package is not available. Voronoi nodes and RBF-based nodes will not be available.
2022-08-22 14:08:45,492 INFO dependencies.py 75 sv: SciPy package is not available. Voronoi nodes and RBF-based nodes will not be available.
sv: geomdl package is not available, some NURBS related nodes will not be available
2022-08-22 14:08:45,493 INFO dependencies.py 86 sv: geomdl package is not available, some NURBS related nodes will not be available
sv: SciKit-Image package is not available; SciKit-based implementation of Marching Cubes and Marching Squares will not be available
2022-08-22 14:08:45,493 INFO dependencies.py 97 sv: SciKit-Image package is not available; SciKit-based implementation of Marching Cubes and Marching Squares will not be available
sv: PyMCubes package is not available. PyMCubes-based implementation of Marching Cubes will not be available
2022-08-22 14:08:45,494 INFO dependencies.py 107 sv: PyMCubes package is not available. PyMCubes-based implementation of Marching Cubes will not be available
sv: Circlify package is not available. Circlify node will not be available
2022-08-22 14:08:45,495 INFO dependencies.py 118 sv: Circlify package is not available. Circlify node will not be available
sv: FreeCAD package is not available, Solids nodes will not be available
2022-08-22 14:08:45,496 INFO dependencies.py 128 sv: FreeCAD package is not available, Solids nodes will not be available
sv: Numba package is not available, njit compiled functions will not be available
2022-08-22 14:08:45,500 INFO dependencies.py 150 sv: Numba package is not available, njit compiled functions will not be available
sv: Dependencies available: pip, Cython.
2022-08-22 14:08:45,501 INFO dependencies.py 155 sv: Dependencies available: pip, Cython.
Traceback (most recent call last):
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\scripts\modules\addon_utils.py", line 335, in enable
mod = __import__(module_name)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\__init__.py", line 75, in <module>
imported_modules = init_architecture(__name__, utils_modules, ui_modules)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\core\__init__.py", line 97, in init_architecture
import_settings(imported_modules, sv_name)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\core\__init__.py", line 78, in import_settings
settings = importlib.import_module(".settings", sv_dir_name)
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\settings.py", line 10, in <module>
from sverchok.core import main_tree_handler # don't remove this should fix #4229 (temp solution)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\core\main_tree_handler.py", line 18, in <module>
from sverchok.utils.tree_structure import Tree, Node
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\utils\tree_structure.py", line 11, in <module>
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (c:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\collections\__init__.py)
sv: import settings
Traceback (most recent call last):
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\scripts\modules\addon_utils.py", line 335, in enable
mod = __import__(module_name)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\topologicsverchok\__init__.py", line 49, in <module>
from sverchok.menu import SverchNodeItem, node_add_operators, SverchNodeCategory, register_node_panels, unregister_node_panels, unregister_node_add_operators
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\menu.py", line 36, in <module>
from sverchok.ui.presets import apply_default_preset
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\ui\presets.py", line 36, in <module>
from sverchok.utils.sv_json_import import JSONImporter
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\utils\sv_json_import.py", line 17, in <module>
from sverchok import old_nodes
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\__init__.py", line 75, in <module>
imported_modules = init_architecture(__name__, utils_modules, ui_modules)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\core\__init__.py", line 97, in init_architecture
import_settings(imported_modules, sv_name)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\core\__init__.py", line 78, in import_settings
settings = importlib.import_module(".settings", sv_dir_name)
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\settings.py", line 10, in <module>
from sverchok.core import main_tree_handler # don't remove this should fix #4229 (temp solution)
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\core\main_tree_handler.py", line 18, in <module>
from sverchok.utils.tree_structure import Tree, Node
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\sverchok-master\utils\tree_structure.py", line 11, in <module>
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (c:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\collections\__init__.py)
Traceback (most recent call last):
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\scripts\modules\addon_utils.py", line 335, in enable
mod = __import__(module_name)
ModuleNotFoundError: No module named 'geometry_sketcher-main'
CAD_Sketcher-main:{INFO}: Logging into: C:\Users\Owner\AppData\Local\Temp\CAD_Sketcher-main.log
2022-08-22 14:08:45,617 INFO __init__.py 68 Logging into: C:\Users\Owner\AppData\Local\Temp\CAD_Sketcher-main.log
measureit_arch: Reloaded multifiles
[{'load_dir': 'c:\\Users\\Owner\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\GroupPro', 'module_name': 'GroupPro'}]
Traceback (most recent call last):
File "c:\Users\Owner\.vscode-oss\extensions\jacqueslucke.blender-development-0.0.17\pythonFiles\launch.py", line 14, in <module>
blender_vscode.startup(
File "c:\Users\Owner\.vscode-oss\extensions\jacqueslucke.blender-development-0.0.17\pythonFiles\include\blender_vscode\__init__.py", line 14, in startup
path_mappings = load_addons.setup_addon_links(addons_to_load)
File "c:\Users\Owner\.vscode-oss\extensions\jacqueslucke.blender-development-0.0.17\pythonFiles\include\blender_vscode\load_addons.py", line 23, in setup_addon_links
create_link_in_user_addon_directory(source_path, load_path)
File "c:\Users\Owner\.vscode-oss\extensions\jacqueslucke.blender-development-0.0.17\pythonFiles\include\blender_vscode\load_addons.py", line 42, in create_link_in_user_addon_directory
os.remove(link_path)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\Owner\\AppData\\Roaming\\Blender Foundation\\Blender\\3.2\\scripts\\addons\\GroupPro'
Saved session recovery to 'C:\Users\Owner\AppData\Local\Temp\quit.blend'
CAD Transform 0.93.1 successfully disabled
Exception in module unregister(): 'C:\\Users\\Owner\\AppData\\Roaming\\Blender Foundation\\Blender\\3.2\\scripts\\addons\\blenderbim\\__init__.py'
Traceback (most recent call last):
File "c:\Program Files\Blender Foundation\Blender 3.2\3.2\scripts\modules\addon_utils.py", line 423, in disable
mod.unregister()
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\blenderbim\__init__.py", line 45, in unregister
blenderbim.bim.unregister()
File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.2\scripts\addons\blenderbim\bim\__init__.py", line 169, in unregister
bpy.app.handlers.load_post.remove(handler.setDefaultProperties)
ValueError: list.remove(x): x not in list
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FFF7C232FC8
Module : MSVCP140.dll
Thread : 00004758
Writing: C:\Users\Owner\AppData\Local\Temp\blender.crash.txt
* The terminal process "c:\Program Files\Blender Foundation\Blender 3.2\blender.exe '--python', 'c:\Users\Owner\.vscode-oss\extensions\jacqueslucke.blender-development-0.0.17\pythonFiles\launch.py'" terminated with exit code: 11.
* Terminal will be reused by tasks, press any key to close it.
Comments
I think i might have solved it. Was trying to 'run' a plugin that was already installed.
I started blender without the plugin, and then ran it from vscode. Seems to have worked.
Yup, It happens when you already have installed the addon via regular means and it tries to create a symlink between the addon folder and your dev folder.
Also PSA: do not ever open a new version of Blender for the first time with VS code and Jacques Lucke's extension and choose "load settings from previous version". It will wipe the addons folder, including the content of the symlinked folders. Learnt it the hard way >< If you ever need a reason to use git even for personal work, here's one. :)
I deleted Blender 3.3, how can I remove the executable reference from the VS code extension?
No idea how debugging works with this add-on, what I do from VS code.
1. ctrl+shift+ p > Run Blender
2. Blender: Run script
3. I put a breakpoint somehwere but no idea on how to read the variables.
also it seems to 'lag' my entire system, VS code is not as responsive as you would use the script console from Blender, or just python ingeneral from VS code.
https://www.dropbox.com/s/m8fuffiazjobawm/2023-02-10_09-45-32_operator.py_-blenderbim%28Workspace%29_-_VSCodium_VSCodium.mp4?dl=0
not sure about the lagginess, however.
Thanks, that was a really helpful clip
Running into the following errors when trying to start blender via blender_vscode extension for VScode in Windows.
I'm using symlinks. Anyone have any ideas how to fix?
Video.
error text.
If i install
blenderbim-230823-py310-win.zip
orblenderbim-230824-py310-win.zip
, without symlinks, i get the above error.If i install
blenderbim-230818-py310-win.zip
the error is fixed.However, i'm getting another error similar to what i reported here.... can't remember how i fixed it. :\ ha
sigh. I followed my old instructions here, and downloaded and unzipped blenderbim-230818-py310-win.zip and located it in the
C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons
. I did not install it via Blender.I then started vscode and started blenderbim and it worked!...
However, when i set up my symlinks via the .bat script, I get the error mentioned here.
sigh, i think it has something to do the symlinks. :\
Anyone have any clues?
Might be this unrelated problem: https://github.com/IfcOpenShell/IfcOpenShell/issues/3640