Skip to content

Can't install on the CPython 3.11 (broken indirect wrapt deps) #5919

Closed
@skirpichev

Description

@skirpichev

Bug description

see e.g. this build. Installation crashed with

...
        File "/tmp/pip-install-hn0tio4e/wrapt_c7c8c7364f77442a93dd53644b6abd58/src/wrapt/__init__.py", line 10, in <module>
          from .decorators import (adapter_factory, AdapterFactory, decorator,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-hn0tio4e/wrapt_c7c8c7364f77442a93dd53644b6abd58/src/wrapt/decorators.py", line 34, in <module>
          from inspect import ismethod, isclass, formatargspec
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ImportError: cannot import name 'formatargspec' from 'inspect' (/opt/hostedtoolcache/Python/3.11.0-alpha.5/x64/lib/python3.11/inspect.py)
      [end of output]

This should be fixed in the v1.14 of the wrapt.

Configuration

No response

Command used

Nothing (not installed)

Pylint output

Nothing

Expected behavior

Installation succesful.

Pylint version

Python 3.11, pylint v2.12.2

OS / Environment

No response

Additional dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions