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

V

vincent wehren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,056
Messages
2,570,441
Members
47,119
Latest member
NoeliaIrby

Latest Threads

Top