Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > PyNew_Interpreter(): "Fatal Python error, invalid thread state for this thread" question

Reply
Thread Tools

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

 
 
vincent wehren
Guest
Posts: n/a
 
      12-11-2003
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




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor + killing thread => thread in an aborting state Christopher Debski Ruby 1 02-22-2009 04:51 PM
Invalid thread state for this thread Martin Evans Python 1 05-25-2007 09:21 AM
How do fix: "Wrong number of arguments" / "invalid propert assignment"/ "Invalid argument" Java Guy Java 1 10-15-2006 08:31 PM
Invalid URI: There is an invalid sequence in the string. Error!! Patrick.O.Ige ASP .Net 1 07-02-2006 11:21 AM
invalid@invalid.org Hank Sniadoch Computer Information 1 08-20-2004 11:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57