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

Update expressions.py #245

Closed
wants to merge 1 commit into from
Closed

Conversation

RaduGeorgescu
Copy link

@RaduGeorgescu RaduGeorgescu commented Jul 2, 2024

in latests python and pip version of 03.07.2024 I discovered this issue
File "..../lib/python3.12/site-packages/parsimonious/expressions.py", line 9, in
from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (..../lib/python3.12/inspect.py). Did you mean: 'getargs'?
Replicated the error on both linux and windows environments. not sure if what I did fixed the problem, but for me it did the job

in latests python and pip version of 03.07.2024 I discovered this issue
 File "..../lib/python3.12/site-packages/parsimonious/expressions.py", line 9, in <module>
    from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (..../lib/python3.12/inspect.py). Did you mean: 'getargs'?
tested it on both linux and windows
Copy link
Collaborator

@lucaswiman lucaswiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inspect.getargs doesn't seem to be documented and also doesn't work here. (It expects code objects, not callables.)

getfullargspect does exist in 3.12. The issue is that the version currently in pypi is old. I think releasing the current version to pypi is the right approach.

@lucaswiman lucaswiman closed this Jul 2, 2024
@lucaswiman
Copy link
Collaborator

Actually, getargspec was removed in 9a0d2e4, which has already been released.

@RaduGeorgescu Are you sure you're on the latest version of Parsimonious (0.10.0)?

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

Successfully merging this pull request may close these issues.

2 participants