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

fix function name in codegen.py for python v3.11 #274

Closed
2 tasks done
MMF3775 opened this issue Jul 15, 2023 · 1 comment
Closed
2 tasks done

fix function name in codegen.py for python v3.11 #274

MMF3775 opened this issue Jul 15, 2023 · 1 comment
Labels

Comments

@MMF3775
Copy link

MMF3775 commented Jul 15, 2023

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.49

RDBMS vendor

PostgreSQL

What happened?

in inspect.py in python 3.11 ArgSpec variable name changed to FullArgSpec and if we use this package in python 3.11 we got error "from inspect import ArgSpec
ImportError: cannot import name 'ArgSpec' from 'inspect' (C:\Python311\Lib\inspect.py)"

it will be fixed if you change "from inspect import ArgSpec" to "from inspect import FullArgSpec" in codegen.py

Database schema for reproducing the bug

No response

@MMF3775 MMF3775 added the bug label Jul 15, 2023
@agronholm
Copy link
Owner

Already fixed in master, and in the 3.0 release candidates.

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

2 participants