You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In rope/base/ast.py, it’s expected that ast._const_node_type_names exists. Otherwise, the library falls back to a backport intended for Python 3.7 and older, and this assumption is confirmed with an assertion:
Describe the error or unexpected result that you are getting
ImportError while loading conftest '/home/ben/src/forks/rope/ropetest/conftest.py'.
ropetest/conftest.py:10: in <module>
from ropetest import testutils
ropetest/testutils.py:9: in <module>
import rope.base.project
rope/base/project.py:13: in <module>
from rope.base import exceptions, history, pycore, taskhandle, utils
rope/base/pycore.py:6: in <module>
import rope.base.libutils
rope/base/libutils.py:7: in <module>
from rope.base import pyobjectsdef, taskhandle, utils
rope/base/pyobjectsdef.py:1: in <module>
import rope.base.builtins
rope/base/builtins.py:6: in <module>
import rope.base.evaluate
rope/base/evaluate.py:5: in <module>
import rope.base.pynames
rope/base/pynames.py:5: in <module>
import rope.base.pyobjects
rope/base/pyobjects.py:3: in <module>
from rope.base import ast, exceptions, utils
rope/base/ast.py:12: in <module>
assert sys.version_info < (3, 8)
E AssertionError
Screenshots
If applicable, add screenshots to help explain your problem.
Editor information (please complete the following information):
Project Python version: ...
Rope Python version: ...
Rope version: ...
Text editor/IDE and version: ...
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
In
rope/base/ast.py
, it’s expected thatast._const_node_type_names
exists. Otherwise, the library falls back to a backport intended for Python 3.7 and older, and this assumption is confirmed with an assertion:rope/rope/base/ast.py
Lines 7 to 22 in 55169bb
However, as of Python 3.14.0a5, Python 3.14 also lacks
ast._const_node_type_names
, so importingrope.base.ast
results in an assertion failure.To Reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Editor information (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: