carson-katri / dream-textures

Stable Diffusion built-in to Blender
GNU General Public License v3.0
7.78k stars 418 forks source link

ModuleNotFoundError: No module named '_bpy' #726

Closed FavorMylikes closed 6 months ago

FavorMylikes commented 10 months ago

Debug using vscode with blender_vscode extension shows this error below.

ModuleNotFoundError: No module named '_bpy'

stack below

  File "c:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\multiprocessing\spawn.py", line 236, in prepare
    _fixup_main_from_path(data['init_main_from_path'])
  File "c:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\multiprocessing\spawn.py", line 287, in _fixup_main_from_path     
    main_content = runpy.run_path(main_path,
  File "c:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\runpy.py", line 289, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "c:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\runpy.py", line 96, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "c:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "c:\Users\G\.vscode\extensions\jacqueslucke.blender-development-0.0.18\pythonFiles\launch.py", line 10, in 
    import blender_vscode
  File "c:\Users\G\.vscode\extensions\jacqueslucke.blender-development-0.0.18\pythonFiles\include\blender_vscode\__init__.py", line 1, in 
    import bpy
  File "c:\Program Files\Blender Foundation\Blender 3.6\3.6\scripts\modules\bpy\__init__.py", line 20, in 
    from _bpy import (
ModuleNotFoundError: No module named '_bpy'

After lots of hours spent, it seems a relative problem with multiprocess, but I don't know how to fix this.

Is there anyone else met this issue before?

m-ali-awan commented 9 months ago

Also facing the same issue

github-actions[bot] commented 7 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 6 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.