-
Notifications
You must be signed in to change notification settings - Fork 259
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
ImportError: cannot import name 'ArgSpec' from 'inspect' #326
Comments
For me it is solved using the rc version. Try |
The last stable release is from 2020 and declares requirement on python 3.8 |
Thanks. Will give it a shot
…On Wed, Jan 8, 2025 at 8:07 PM Rafal Krupinski ***@***.***> wrote:
The last stable release is from 2020 and declares requirement on python 3.8
The latest python it actually works is 3.10
I use pipx and pyenv, so no problem. uv should handle it too.
—
Reply to this email directly, view it on GitHub
<#326 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP243TW74DMBM56MPKSXWSL2JUZ37AVCNFSM6AAAAABU2CIXGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZXHAZTANJYHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@Abhiz2411 as mentioned earlier, latest 3.0.0rc5 does support python 3.12. |
The reason I pinned this issue is because people who don't know about pre-releases keep re-reporting this. |
But admittedly closing it doesn't unpin it, so let's hope people coming in to report this can still find it. |
Confirming I was able to find this issue when I encountered this error just now after it's been closed 13 hours ago. |
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 statementfrom inspect import ArgSpec
whereArgSpec
is depreciated for python 3.12.2. I am using 3.12.2 version of pythonDatabase schema for reproducing the bug
No response
The text was updated successfully, but these errors were encountered: