Scony / godot-gdscript-toolkit

Independent set of GDScript tools - parser, linter, formatter, and more
MIT License
944 stars 65 forks source link

ModuleNotFoundError: No module named 'pkg_resources' #264

Closed ajbastien closed 8 months ago

ajbastien commented 8 months ago

Windows 11 Install python --version: Python 3.12.1 Installed GDToolkit: pip install GDToolkit Restarted VS Code: Python Interpreter path: C:\Users\user1\AppData\Local\Programs\Python\Python312\python.exe

Getting error when saving a GDScript file: ModuleNotFoundError: No module named 'pkg_resources' Any thoughts?

Scony commented 8 months ago

Actually, it should be addressed by https://github.com/Scony/godot-gdscript-toolkit/pull/259 - could you please try latest gdtoolkit from master branch?

ajbastien commented 8 months ago

That worked: pip3 install git+https://github.com/Scony/godot-gdscript-toolkit.git

Thanks for the quick response.

Scony commented 8 months ago

Good, it will be a part of next gdtoolkit release. Thanks for confirming!

MikeSchulze commented 7 months ago

I run into same issue, it works with latest master 👍

Bobrokus commented 4 months ago

For me installing it via pip (pip install gdtoolkit) instead of pip3 fixed it.

jqdq commented 3 months ago

I ran into this issue when using pre-commit. Running pre-commit autoupdate --bleeding-edge --repo https://github.com/Scony/godot-gdscript-toolkit fixed this.