Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Python 3.10 support? - undefined symbol: PyNode_ListTree #150

Closed
SamuelMarks opened this issue Nov 24, 2020 · 3 comments · Fixed by #153
Closed

Python 3.10 support? - undefined symbol: PyNode_ListTree #150

SamuelMarks opened this issue Nov 24, 2020 · 3 comments · Fixed by #153

Comments

@SamuelMarks
Copy link

SamuelMarks commented Nov 24, 2020

If it's not too early to request support :)

Error
Traceback (most recent call last):
  File "/opt/python3.10/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/opt/python3.10/lib/python3.10/unittest/case.py", line 592, in run
    self._callTestMethod(testMethod)
  File "/opt/python3.10/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()

[omitted for brevity]

    from black import format_str, Mode
  File "lib/python3.10/site-packages/black/__init__.py", line 52, in <module>
    from typed_ast import ast3, ast27
  File "lib/python3.10/site-packages/typed_ast/ast3.py", line 40, in <module>
    from typed_ast import _ast3
ImportError: lib/python3.10/site-packages/typed_ast/_ast3.cpython-310d-x86_64-linux-gnu.so: undefined symbol: PyNode_ListTree
```
@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Nov 24, 2020

Well, it's certainly not too early to review a PR, if you're willing to provide one ;-) I'm guessing it's related to the removal of the old parser.

@gvanrossum
Copy link
Member

Maybe you can copy listnode.c from earlier Python versions.

@gvanrossum
Copy link
Member

It's just a debugging thing, you could also just comment out the one call.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants