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

ModuleNotFoundError: No module named 'pkg_resources' #142

Closed
cap5lut opened this issue Jun 11, 2024 · 2 comments
Closed

ModuleNotFoundError: No module named 'pkg_resources' #142

cap5lut opened this issue Jun 11, 2024 · 2 comments

Comments

@cap5lut
Copy link
Contributor

cap5lut commented Jun 11, 2024

I'm just relaying this from discord:

Quick question im trying to run tybot on a fresh install of ubuntu 24 server i have python3 and pip install sqlite3 etc but when i try to run the bot im getting this error:

ModuleNotFoundError: No module named 'pkg_resources'
Traceback (most recent call last):
    File "/home/dev/aobots/bootstrap.py", line 8, in <module>     from upgrade import run_upgrades
    File "/home/dev/aobots/upgrade.py", line 1, in <module>     from core.db import DB
    File "/home/dev/aobots/core/db.py", line 4, in <module>     from pkg_resources import parse_version

the user is not using docker.

pkg_resources comes from setuptools, which seems to be not installed by default there, so adding it to requirements.txt might fix this.

@krynnotaur
Copy link

@bigwheels16
Copy link
Member

this should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants