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@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 07:22 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:
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@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