-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
Description
On a 3.11 system, this error is thrown:
Error processing line 1 of /opt/warehouse/lib/python3.11/site-packages/appmap.pth:
Traceback (most recent call last):
File "<frozen site>", line 186, in addpackage
File "<string>", line 1, in <module>
File "/opt/warehouse/lib/python3.11/site-packages/appmap/__init__.py", line 2, in <module>
from _appmap import generation # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/warehouse/lib/python3.11/site-packages/_appmap/__init__.py", line 1, in <module>
from . import configuration
File "/opt/warehouse/lib/python3.11/site-packages/_appmap/configuration.py", line 16, in <module>
from _appmap.labels import LabelSet
File "/opt/warehouse/lib/python3.11/site-packages/_appmap/labels.py", line 5, in <module>
from .importer import Filterable
File "/opt/warehouse/lib/python3.11/site-packages/_appmap/importer.py", line 10, in <module>
from appmap import wrapt
File "/opt/warehouse/lib/python3.11/site-packages/appmap/wrapt/__init__.py", line 10, in <module>
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "/opt/warehouse/lib/python3.11/site-packages/appmap/wrapt/decorators.py", line 34, in <module>
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/local/lib/python3.11/inspect.py)
This us due to the vendored wrapt
module version 1.12.1 not supporting Python 3.11 - they introduced that in 1.14.0
See: https://wrapt.readthedocs.io/en/latest/changes.html#version-1-14-0