<@ULVA73B9P> can you help me debug this error: ```...
# ask-marvin
n
@Marvin can you help me debug this error:
Copy code
Traceback (most recent call last):
  File "/artemis/server/flows/auto_rate_loading/auto_rate_loading_flow.py", line 3, in <module>
    from prefect import flow, get_run_logger
  File "/artemis/.venv/lib/python3.12/site-packages/prefect/__init__.py", line 120, in __getattr__
    module = importlib.import_module(mname, package=package)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/artemis/.venv/lib/python3.12/site-packages/prefect/main.py", line 3, in <module>
    from prefect.states import State
  File "/artemis/.venv/lib/python3.12/site-packages/prefect/states.py", line 15, in <module>
    from opentelemetry import propagate
  File "/artemis/.venv/lib/python3.12/site-packages/opentelemetry/propagate/__init__.py", line 77, in <module>
    from opentelemetry.propagators import composite, textmap
  File "/artemis/.venv/lib/python3.12/site-packages/opentelemetry/propagators/composite.py", line 17, in <module>
    from deprecated import deprecated
  File "/artemis/.venv/lib/python3.12/site-packages/deprecated/__init__.py", line 15, in <module>
    from deprecated.classic import deprecated
  File "/artemis/.venv/lib/python3.12/site-packages/deprecated/classic.py", line 15, in <module>
    import wrapt
  File "/artemis/.venv/lib/python3.12/site-packages/wrapt/__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "/artemis/.venv/lib/python3.12/site-packages/wrapt/decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/inspect.py). Did you mean: 'formatargvalues'?
m
Your message was too long by 165 tokens...
Your message was too long by 58 tokens...
n
hi @Nikhil Jain - looks like a (potentially python) version related thing with
wrapt
hmm appears it was removed in 3.11, so you're probably using a newer version and a library you're using hasnt caught up
n
any suggestions on how to resolve it? We don’t have direct dependency on
wrapt
. I am using python
3.12.1
and
Copy code
prefect==3.2.14
prefect-aws==0.5.6
n
are you using your own otel setup?
n
no… otel is only coming from prefect. but I see
wrapt
is coming from an old version of
pylint
in my venv. I upgraded pylint to latest version but that did not help 😕
creating a fresh virtualenv… maybe that will help
👍 1