agronholm/sqlacodegen

No module named 'pkg_resources'

BabakAmini opened this issue · 3 comments

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

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

Or with just pip install --pre sqlacodegen.