Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_resources is deprecated as an API #185

Open
codyschug opened this issue Jul 17, 2024 · 4 comments
Open

pkg_resources is deprecated as an API #185

codyschug opened this issue Jul 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@codyschug
Copy link

Mac Mini M1 running MacOS 14.5

Got through all the installation steps just fine, but when I go to run the program, I get hit with the following:

DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

and

ImportError: cannot import name 'packaging' from 'pkg_resources' (/Applications/AI/StoryToolkitAI/venv/lib/python3.10/site-packages/pkg_resources/__init__.py)

Didn't see anybody else running into this using the search function, so I must be doing something wrong. Any help will be greatly appreciated!

@codyschug codyschug added the bug Something isn't working label Jul 17, 2024
@Benosik
Copy link

Benosik commented Jul 18, 2024

Hey, I have the same thing in windows 11 :(

@braden-acdc
Copy link

Getting the exact same errors.

Macbook Pro M1 Max
macOS Sonoma 14.5
Resolve Studio 18.6

@nutzlichsein
Copy link

nutzlichsein commented Aug 3, 2024

same errors

Macbook Pro M2 Max
MacOS Sonoma 14.5

POSSIBLE SOLUTION UPDATE: install pip setuptools below version 70
So, once in venv, install pip setuptools v 69.5.1 with this command:
pip install setuptools==69.5.1

and then run start storytoolkitAI again with the provided command:
venv/bin/python StoryToolkitAI/storytoolkitai

mine works..

@helmutgranda
Copy link

helmutgranda commented Aug 24, 2024

I still get the error but I leave it alone and a few moments later the app starts...

  import pkg_resources
INFO: Config setting last_update saved as "0.24.2"
INFO: Updated config file /Users/XYZ/StoryToolkitAI/config.json with l
---
INFO: Starting StoryToolkitAI GUI
INFO: Config setting ignore_update saved as "False"
INFO: Updated config file /Users/XYZ/StoryToolkitAI/config.json with ignore_update data.
INFO: Config file /Users/XYZ/StoryToolkitAI/config.json saved.```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants