This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: `pip install wrapt` fails on ast.py in Python 3.11.0a6
Type: behavior Stage: resolved
Components: Versions: Python 3.11
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: Dutcho
Priority: normal Keywords:

Created on 2022-03-09 21:04 by Dutcho, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg414814 - (view) Author: (Dutcho) Date: 2022-03-09 21:04
... or perhaps this is caused by *wrapt 1.13.3*?

'''
(venv) >pip install wrapt
Collecting wrapt
  Using cached wrapt-1.13.3.tar.gz (48 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [92 lines of output]
      Traceback (most recent call last):
        File "...\venv\Lib\site-packages\setuptools\config.py", line 35, in __getattr__
          return next(
                 ^^^^^
        File "...\venv\Lib\site-packages\setuptools\config.py", line 36, in <genexpr>
          ast.literal_eval(statement.value)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python311\Lib\ast.py", line 108, in literal_eval
          return _convert(node_or_string)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python311\Lib\ast.py", line 107, in _convert
          return _convert_signed_num(node)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python311\Lib\ast.py", line 81, in _convert_signed_num
          return _convert_num(node)
                 ^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python311\Lib\ast.py", line 72, in _convert_num
          _raise_malformed_node(node)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\Python311\Lib\ast.py", line 69, in _raise_malformed_node
          raise ValueError(msg + f': {node!r}')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ValueError: malformed node or string on line 2: <ast.Call object at 0x000001751FEA8340>
'''
msg414875 - (view) Author: (Dutcho) Date: 2022-03-10 18:56
yesterday's `wrapt *1.13.3*` still doesn't work,
but today's `wrapt *1.14.0*` works as expected

So this wasn't about Python 3.11 but about the wrapt version, which used the deprecated `formatargspec` from module `inspect`
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91125
2022-03-10 18:56:58Dutchosetstatus: open -> closed
resolution: works for me
messages: + msg414875

stage: resolved
2022-03-09 21:04:13Dutchocreate