3
$\begingroup$

I'm trying to edit and save a script in 'vs code' but somehow I'm getting the [Import "bpy" could not be resolved] error in the problems console below.

screenshot

I tried the solution posted here: Linting Blender Python in VSCode

But adding that line to settings.json will not solve the issue. Any idea what I might be missing?

$\endgroup$

2 Answers 2

4
$\begingroup$

I had the same issue, installing the fake bpy module helped me.

https://pypi.org/project/fake-bpy-module-2.80/

$\endgroup$
0
$\begingroup$
  1. Uninstall Blender Dev

  2. Uninstall Python

  3. Reinstall Python

  4. Reinstall Blender Dev

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.