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

ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py) #18

Open
vin opened this issue Oct 17, 2024 · 1 comment

Comments

@vin
Copy link

vin commented Oct 17, 2024

Seems pylint-ignore has some old transitive dependencies on wrapt which are making it not work out of the box today after a pip install pylint-ignore or pipx install pylint-ignore.

@mbarkhau
Copy link
Owner

Ok, so, Ankle bone connected to the leg bone...

We have the astroid dependency, which due to our dependency on pylint<2.13 gives us a restriction on astroid<2.10, which gives us a restriction on wrapt<1.14, which gives us a restriction on ... python<3.11.

$ pipdeptree
pylint-ignore==2022.1025
  - astroid [required: >2.1.0, installed: 2.9.3]
    - lazy-object-proxy [required: >=1.4.0, installed: 1.9.0]
    - setuptools [required: >=20.0, installed: 66.1.1]
    - wrapt [required: >=1.11,<1.14, installed: 1.13.3]
  - pylint [required: <2.13, installed: 2.12.1]
    - astroid [required: >=2.9.0,<2.10, installed: 2.9.3]
      - lazy-object-proxy [required: >=1.4.0, installed: 1.9.0]
      - setuptools [required: >=20.0, installed: 66.1.1]
      - wrapt [required: >=1.11,<1.14, installed: 1.13.3]

Long story short, looks like pylint-ignore is restricted to python 3.10 or earlier for now.

The main change to fix this would be to remove the version restriction pylint<2.13, after which I'd say everything else should fall into place. I put that restriction in there a while ago, due to api changes in pylint that I didn't (and still don't) have the capacity to pull through.

Please let me know, if you have any interest in working on this.
Alternatively, you might direct your efforts toward this issue pylint#5403

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

No branches or pull requests

2 participants