[issue4443] Python/pystate.c:561 :PyGILState: The assertion 'autoInterpreterState' has failed

LuisC report at bugs.python.org
Thu Nov 27 12:59:38 CET 2008


LuisC <luis.carrion at tcs.com> added the comment:

Hi Amaury, thanks for you response...

This is my code sniped

gboolean
gui_file_copy_to_journal(char const *uri)
{
        g_printerr("SAVING PYTHON JOURNAL!...........%s\n", uri);

        char * arg1[7];

        arg1[0] = "python";
        arg1[1] = "/home/olpc/copy-to-Journal.py"; 
        arg1[2] = uri+7;
        arg1[3] = "-d";
        arg1[4] = "hoja_de_calculo"; 
        arg1[5] = "-m";
        arg1[6] = "application/x-gnumeric"; 

        g_printerr ("Writing py \n");
        Py_Initialize(); 
        Py_Main(7, arg1);
        Py_Finalize();
        g_printerr ("Writing Py_Finalize \n");

        return TRUE;
}

also, I tried with other method like linux journal show in 
http://www.linuxjournal.com/article/3641

Any help is greatly appreciated...

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

Amaury Forgeot d'Arc <report at bugs.python.org> 
27/11/2008 07:22 a.m.
Please respond to
Python tracker <report at bugs.python.org>

To
luis.carrion at tcs.com
cc

Subject
[issue4443] Python/pystate.c:561 :PyGILState: The assertion 
'autoInterpreterState' has failed

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

The assertion is clear if you open the source code (Python/pystate.c,
line 561):

assert(autoInterpreterState); /* Py_Initialize() hasn't been called! */

Does your code make sure that the python interpreter is initialized?

----------
nosy: +amaury.forgeotdarc

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

ForwardSourceID:NT0000A7E6 
=====-----=====-----=====
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

Added file: http://bugs.python.org/file12139/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4443>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20081127/a912d33c/attachment.txt>


More information about the Python-bugs-list mailing list