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

No module named 'pkg_resources' #325

Open
2 tasks done
BabakAmini opened this issue May 14, 2024 · 2 comments
Open
2 tasks done

No module named 'pkg_resources' #325

BabakAmini opened this issue May 14, 2024 · 2 comments
Labels

Comments

@BabakAmini
Copy link

Things to check first

  • I have searched the existing issues and didn't find my bug already reported there

  • I have checked that my bug is still present in the latest release

Sqlacodegen version

2.3.0.post1

SQLAlchemy version

2.0.30

RDBMS vendor

PostgreSQL

What happened?

Running sqlacodegen with or without arguments results in the error ModuleNotFoundError: No module named 'pkg_resources'. This occurs when using pip install sqlacodegen, which installs version 2.3.0.post1 from PyPi. If you install the most recent version from GitHub, there will not be any issues.

Database schema for reproducing the bug

No response

@BabakAmini BabakAmini added the bug label May 14, 2024
@scotscotmcc
Copy link

I just ran into this as well. on pypi.org for the project, you can go to 'release history' and it lists a number of newer versions as 'pre-release' (up to 3.0.0rc5 right now). you can install this from pypi with pip install sqlacodegen==3.0.0rc5

@agronholm
Copy link
Owner

Or with just pip install --pre sqlacodegen.

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

No branches or pull requests

3 participants