Issue with


When running the automatic tests for my baseline by launching:

sh flanders

I get this error:

=== ===
- Start Python checks
- isort: start
Skipped 1 files
- isort: done
- black: start
All done! ✨ 🍰 ✨
12 files would be left unchanged.
- black: done
- docformatter: start
- docformatter:  done
- ruff: start
- ruff: done
- mypy: start
Success: no issues found in 12 source files
- mypy: done
- pylint: start
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/", line 9, in <module>
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/", line 21, in run_pylint
    from pylint.lint import Run as PylintRun
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/lint/", line 75, in <module>
    from pylint.lint.parallel import check_parallel
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/lint/", line 7, in <module>
    from pylint import reporters
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/reporters/", line 25, in <module>
    from pylint import utils
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/utils/", line 45, in <module>
    from pylint.utils.ast_walker import ASTWalker
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/pylint/utils/", line 6, in <module>
    from astroid import nodes
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/astroid/", line 53, in <module>
    from astroid import inference, raw_building
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/astroid/", line 33, in <module>
    import wrapt
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/wrapt/", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "/Users/eddie/Library/Caches/pypoetry/virtualenvs/flanders-RXaE4NbK-py3.11/lib/python3.11/site-packages/wrapt/", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/

Which seems related to pylint. Any idea on how to solve it?

1 Like

Hey @edoardo.gabrielli,

Are you running the test while having your baseline Poetry environment activate ? I was able to run the test script (some pylint errors flagged) when building the environment with Python3.10.

From the error log it seems you have Python3.11 but that wouldn’t work to build your baseline environment since the torch and torchvision packages are pointing to py3.10

1 Like