ImportError: cannot import name 'ArgSpec' from 'inspect'
Abhiz2411 opened this issue · 1 comments
Abhiz2411 commented
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
1.4.52
RDBMS vendor
PostgreSQL
What happened?
When I ran the command sqlacodegen postgresql://postgres:secret_pass@localhost:5432/db_name > model.py
It should have created code in model.py. I researched about the error and I think it is caused because codegen.py has an import statement from inspect import ArgSpec
where ArgSpec
is depreciated for python 3.12.2. I am using 3.12.2 version of python
Database schema for reproducing the bug
No response