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

Python 3.4 support #2

Closed
JetStarBlues opened this issue Nov 24, 2016 · 2 comments
Closed

Python 3.4 support #2

JetStarBlues opened this issue Nov 24, 2016 · 2 comments

Comments

@JetStarBlues
Copy link

Hi

When attempting to build for Python 3.4 (with mingw32), I get the following error:

_yappi.c: In function '_yapp_callback':
_yappi.c:680:36: error: 'PyFrameObject {aka struct _frame}' has no member named 'f_tstate'
     current_ctx = _thread2ctx(frame->f_tstate);

I opened up C:\Python34\include\frameobject.h on my PC, and indeed no such member is present in the 3.4 version of frameobject.h, despite it being present in earlier versions of Python.

What would be a way to work around this?

@JetStarBlues
Copy link
Author

JetStarBlues commented Nov 24, 2016

The member exists in Python 3.5 which I just downloaded. However, trying to build for Python 3.5 (with mingw32) comes with its own set of challenges. =P
The issues in both cases are Python specific, not anything to do with your code so I'm closing this. Thanks for your time.

Edit: Python 3.5 does not have the member

@JetStarBlues
Copy link
Author

For anyone who comes across this later with a similar error, adding PyThreadState *f_tstate; to the file PythonX/include/frameobject.h as seen here gets rid of the no member problem.
However you are changing your Python install's source code, so yah...

sumerc pushed a commit that referenced this issue Jan 7, 2020
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

1 participant