Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install wrapt fails on ast.py in Python 3.11.0a6 #91125

Closed
Dutcho mannequin opened this issue Mar 9, 2022 · 2 comments
Closed

pip install wrapt fails on ast.py in Python 3.11.0a6 #91125

Dutcho mannequin opened this issue Mar 9, 2022 · 2 comments
Labels
3.11 only security fixes type-bug An unexpected behavior, bug, or error

Comments

@Dutcho
Copy link
Mannequin

Dutcho mannequin commented Mar 9, 2022

BPO 46969
Nosy @Dutcho

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2022-03-10.18:56:58.555>
created_at = <Date 2022-03-09.21:04:13.967>
labels = ['type-bug', '3.11']
title = '`pip install wrapt` fails on ast.py in Python 3.11.0a6'
updated_at = <Date 2022-03-10.18:56:58.554>
user = 'https://github.com/Dutcho'

bugs.python.org fields:

activity = <Date 2022-03-10.18:56:58.554>
actor = 'Dutcho'
assignee = 'none'
closed = True
closed_date = <Date 2022-03-10.18:56:58.555>
closer = 'Dutcho'
components = []
creation = <Date 2022-03-09.21:04:13.967>
creator = 'Dutcho'
dependencies = []
files = []
hgrepos = []
issue_num = 46969
keywords = []
message_count = 2.0
messages = ['414814', '414875']
nosy_count = 1.0
nosy_names = ['Dutcho']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46969'
versions = ['Python 3.11']

@Dutcho
Copy link
Mannequin Author

Dutcho mannequin commented Mar 9, 2022

... 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>
'''

@Dutcho Dutcho mannequin added 3.11 only security fixes type-bug An unexpected behavior, bug, or error labels Mar 9, 2022
@Dutcho
Copy link
Mannequin Author

Dutcho mannequin commented Mar 10, 2022

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

@Dutcho Dutcho mannequin closed this as completed Mar 10, 2022
@Dutcho Dutcho mannequin closed this as completed Mar 10, 2022
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

0 participants