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

2008-11-26 Thread LuisC

New submission from LuisC <[EMAIL PROTECTED]>:

The project goal is to incorporate the functionality of interaction of 
the excel application (gnumeric) with the XO's journal. All the 
activities needs to register any change in that datastore (save and 
open files are made throw it). 

In order to apply this option, we need to call some python code from 
the implementation of the worksheet in C code. This is called embedded 
python in C. The steps followed to accomplish this goal came from the 
OLPC site recomendations, in wiki.laptop.org. The python script for the 
interaction with the journal's datastore can be found in here: 
http://wiki.laptop.org/go/Copy_to_and_from_the_Journal 

The changes in the gnumeric code are basically in the workbook-view.c 
and main-application.c to handle the open and save options. In the main-
application.c the method gui_file_copy_from_journal uses the python 
api/c to make the call to the journal script. after this method and 
during the open of the file, an exception rises. Although we are not 
sure, we believe it has to do with the closure of the python enviroment 
after the finalize call. We need to erase this exception or may be just 
handle it. 

The error running in the XO is: 

gnumeric: Python/pystate.c:561 :PyGILState: The 
assertion 'autoInterpreterState' has failed 

The configuration of the XO where we are getting the exception is: 

Python 2.5 (r25:51908, Oct 19 2007, 09:47:40) [gcc 4.1.2 20070925 (Red 
Hat 4.1.2-27)] on linux2 

Any help is greatly appreciated!!!

--
components: Interpreter Core
messages: 76484
nosy: barry, brett.cannon, doerwalter, gvanrossum, lcarrionr, lemburg, mwh
severity: normal
status: open
title: Python/pystate.c:561 :PyGILState: The assertion 'autoInterpreterState' 
has failed
type: resource usage
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2008-11-27 Thread LuisC

LuisC <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Outsourcing


Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 
27/11/2008 07:22 a.m.
Please respond to
Python tracker <[EMAIL PROTECTED]>

To
[EMAIL PROTECTED]
cc

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

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>
___

ForwardSourceID:NTA7E6 
=-=-=
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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>
___
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: [EMAIL PROTECTED]
Website: http://www.tcs.com

Experience certainty.        IT Services
                
       Business Solutions
                
       Outsourcing






Amaury Forgeot d'Arc <[EMAIL 
PROTECTED]>

27/11/2008 07:22 a.m.



Please respond to
Python tracker <[EMAIL PROTECTED]>





To
[EMAIL PROTECTED]


cc



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









Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>;
___

ForwardSourceID:NTA7E6
   
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it

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

2008-11-27 Thread LuisC

LuisC <[EMAIL PROTECTED]> added the comment:

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: [EMAIL PROTECTED]
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Outsourcing


Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 
27/11/2008 10:11 a.m.
Please respond to
Python tracker <[EMAIL PROTECTED]>

To
[EMAIL PROTECTED]
cc

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

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>
___

ForwardSourceID:NTA982 
=-=-=
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/file12143/unnamed

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>
___
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: [EMAIL PROTECTED]
Website: http://www.tcs.com

Experience certainty.        IT Services
                
       Business Solutions
                
       Outsourcing






Amaury Forgeot d'Arc <[EMAIL 
PROTECTED]>

27/11/2008 10:11 a.m.



Please respond to
Python tracker <[EMAIL PROTECTED]>





To
[EMAIL PROTECTED]


cc



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









Amaury Forgeot d'Arc <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4443>;
___

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


___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22204] 2014 USA CONFERENCE/INVITATION!!

2014-08-15 Thread LuisC

New submission from LuisC:

Dear Colleagues

On behalf of California Human Welfare Foundation. It is a great privilege for 
us to invite you to global Congress meeting Against Economic Crisis, 
Prostitution, Human Trafficking and child abuse & HIV/AIDS Treatment, held in 
the united state and in Dakar Senegal.

All interested delegates that requires entry visa to enter the United States to 
attend this meeting will be assisted by the organization in obtaining the visa 
in their passport free air round trip tickets to attend this meeting will be 
provided to all participants.

For registration contact the secretariat at:  [email protected]

Please share the information with your colleagues.

Sincerely,

Dr.Tyler Lockett (Ph.D) Senior Activities Coordinator.

--
messages: 225350
nosy: lcarrionr
priority: normal
severity: normal
status: open
title: 2014 USA CONFERENCE/INVITATION!!

___
Python tracker 
<http://bugs.python.org/issue22204>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20795] Feel our love and care. Order medications from our drugstore.

2014-02-27 Thread LuisC

New submission from LuisC:

HelloKiss those diets good bye. Lose weight quick the easy way. Watch 
video!Just for you - visit now
Buy more, pay less! Be healthy with best meds for women.

--
messages: 212355
nosy: lcarrionr
priority: normal
severity: normal
status: open
title: Feel our love and care. Order medications from our drugstore.

___
Python tracker 
<http://bugs.python.org/issue20795>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com