Python 3.11 _frame issue #4333
-
Hello, I'm trying to use pybind11 with python 3.11 and I got this error
Can you advise me how to handle this, or how we can update pybind11 regarding this. Here is what I found about Python 3.11 update: https://docs.python.org/3.11/whatsnew/3.11.html The PyFrameObject structure members have been removed from the public C API. While the documentation notes that the PyFrameObject fields are subject to change at any time, they have been stable for a long time and were used in several popular extensions. In Python 3.11, the frame struct was reorganized to allow performance optimizations. Some fields were removed entirely, as they were details of the old implementation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
This has been fixed in the latest version of pybind11. Make sure you have the latest version installed. |
Beta Was this translation helpful? Give feedback.
-
I'm getting this error with PyBind11 2.11.1 and Python 3.11.5 (both the latest I have access to at my org). I'm using Windows 11 Pro 22H2 and Visual Studio 2022 Community (14.37.32822). |
Beta Was this translation helpful? Give feedback.
This has been fixed in the latest version of pybind11. Make sure you have the latest version installed.