469,327 Members | 1,335 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

PyNew_Interpreter(): "Fatal Python error, invalid thread state for this thread" question

Hi,

Trying to grasp Py_NewInterpreter()in a simple app embedding Python, I was
wondering why the following gives me an error:

int main() {

PyThreadState *tstate;

Py_Initialize();
//The following returns
//Fatal Python error, invalid thread state for this thread
tstate = Py_NewInterpreter();

//etc..

Python is 2.3.3c1 on Win XP
Pointers much appreciated

Regards

Vincent Wehren


Jul 18 '05 #1
0 1740

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Renzska | last post: by
9 posts views Thread by aden | last post: by
1 post views Thread by Mani | last post: by
5 posts views Thread by WaterWalk | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.