VS Code can't find bpy_extras
I've been using Blender's built-in text editor to write my addon, and I finally decided to use VS Code. The addon works fine in Blender, but it won't run from VS Code. I'm not sure if it's VS Code or one of the extensions, but it's tripping on this line:
from bpy_extras.io_utils import ImportHelper
Exception has occurred: ImportError
cannot import name 'ImportHelper' from 'bpy_extras.io_utils' (unknown location)
File "/home/gtada/Documents/blender/scripting/iges_import/operator_file_import_iges_002.py", line 75, in <module> from bpy_extras.io_utils import ImportHelper ImportError: cannot import name 'ImportHelper' from 'bpy_extras.io_utils' (unknown location)
If anybody has an idea I'd love to hear it. I used the Operator File Import template which includes this module and function.
2
8 comments
Gregory Tada
3
VS Code can't find bpy_extras
CG Python Academy (Free)
skool.com/cgpython
3D artists learning Blender Python.
Leaderboard (30-day)
Powered by