This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lcarrionr
Recipients barry, brett.cannon, doerwalter, gvanrossum, lcarrionr, lemburg, mwh
Date 2008-11-26.19:41:36
SpamBayes Score 3.6504827e-07
Marked as misclassified No
Message-id <1227728614.19.0.877274035205.issue4443@psf.upfronthosting.co.za>
In-reply-to
Content
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!!!
History
Date User Action Args
2008-11-26 19:43:34lcarrionrsetrecipients: + lcarrionr, mwh, lemburg, gvanrossum, barry, doerwalter, brett.cannon
2008-11-26 19:43:34lcarrionrsetmessageid: <1227728614.19.0.877274035205.issue4443@psf.upfronthosting.co.za>
2008-11-26 19:41:37lcarrionrlinkissue4443 messages
2008-11-26 19:41:36lcarrionrcreate