Thank you so much. It do worked!

I don't think two threads to be running the same function because the messages are displayed only once.
Yes it seems to be a better way it worked, thank you again.

Regards,

Luis CarriĆ³n
Tata Consultancy Services
Colonia 1329-Piso 3
Montevideo,.
Uruguay
Mailto: luis.carrion@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Amaury Forgeot d'Arc <report@bugs.python.org>

27/11/2008 10:11 a.m.
Please respond to
Python tracker <report@bugs.python.org>

To
luis.carrion@tcs.com
cc
Subject
[issue4443] Python/pystate.c:561 :PyGILState: The assertion 'autoInterpreterState' has failed






Amaury Forgeot d'Arc <amauryfa@gmail.com> added the comment:

> Py_Initialize();
> Py_Main(7, arg1);
> Py_Finalize();

This seems correct... unless two threads run this function at the same
time. Can you ensure that this is not the case?

It seems to me that a simple call to
  system("python /home/olpc/copy-to-Journal.py [other-args-here]")
would be better...

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue4443>
_______________________________________

ForwardSourceID:NT0000A982    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you