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

PyImath.PyImath{,Numpy}Test_Python3 tests fail with Python 3.11a06 #253

Closed
hobbes1069 opened this issue Apr 17, 2022 · 2 comments
Closed

Comments

@hobbes1069
Copy link
Contributor

23/38 Test  #2: PyImath.PyImathNumpyTest_Python3 ........***Failed    0.04 sec
Traceback (most recent call last):
  File "/builddir/build/BUILD/Imath-3.1.5/src/python/PyImathNumpyTest/pyImathNumpyTest.in", line 8, in <module>
    from imath import *
    ^^^^^^^^^^^^^^^^^^^
SystemError: type Boost.Python.enum has the Py_TPFLAGS_HAVE_GC flag but has no traverse function
29/38 Test  #1: PyImath.PyImathTest_Python3 .............***Failed    0.11 sec
Traceback (most recent call last):
  File "/builddir/build/BUILD/Imath-3.1.5/src/python/PyImathTest/pyImathTest.in", line 8, in <module>
    from imath import *
    ^^^^^^^^^^^^^^^^^^^
SystemError: type Boost.Python.enum has the Py_TPFLAGS_HAVE_GC flag but has no traverse function

From the bugzilla report:
The PyType_Ready() function now raises an error if a type is defined with the Py_TPFLAGS_HAVE_GC flag set but has no traverse function (PyTypeObject.tp_traverse). (Contributed by Victor Stinner in bpo-44263.)

https://bugzilla.redhat.com/show_bug.cgi?id=2069676

@hobbes1069
Copy link
Contributor Author

This appears to be more of a boost python bug. Feel free to close or leave it as a tracking bug. I'll close it when it's fixed upstream.

@vstinner
Copy link

I proposed boostorg/python#385 to update Boost Python (enum type) to Python 3.11.

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

No branches or pull requests

2 participants