[Schoolsplay-devel] Trying to run from sources
Brought to you by:
chris_147,
stas_zytkiewicz
From: Ermengol B. <erm...@gm...> - 2010-03-06 00:12:01
|
Hello (again....) I'm trying to run childsplay from sources in order to "play" a litle bit with the code and see if I can help somewhere.... I've update my svn repository, and then (following the Activity creation howto.odt) I've executed schoolsplay/branches/childsplay_sp$ python childsplay_sp_local.py The first problem was: ======= Read this ==================================================== This script is only meant for developers to be able to run schoolsplay from sources. Don't use this for anything else. Traceback (most recent call last): File "childsplay_sp_local.py", line 34, in <module> from SPOptionParser import OParser File "/home/ermengol/projectes/childsplay/schoolsplay/branches/childsplay_sp/SPOptionParser.py", line 24, in <module> from SPConstants import SUPPORTEDTHEMES File "/home/ermengol/projectes/childsplay/schoolsplay/branches/childsplay_sp/SPConstants.py", line 52, in <module> PYTHONCPDIR = SPBasePaths.PYTHONCPDIR AttributeError: 'module' object has no attribute 'PYTHONCPDIR' The content of the SPBasePaths.py is: # AUTO-GENERATED MODULE, DON'T EDIT # This module holds all the paths needed for childsplay_sp. DOCDIR = 'doc' LOCALEDIR = 'locale' BASEDIR = '.' SHARELIBDATADIR = 'lib' ALPHABETDIR = 'sp_alphabetsounds' so, it makes sense... there is not any PYTHONCPDIR here :-) Then I added (should I do that?) PYTHONCPDIR="." and CP started until the login screen Once I clicked the button to start (without logjn name) I had another error 2010-03-06 00:59:23,232 - schoolsplay.SPDataManager.DataManager - DEBUG - Starting dbase, /home/ermengol/.schoolsplay.rc/cp_sp.db 2010-03-06 00:59:23,594 - schoolsplay.SPgdm.SPGreeter - DEBUG - Starting 2010-03-06 00:59:27,708 - schoolsplay.SPgdm.SPGreeter - DEBUG - _login_button_callback called with <SPEntry sprite(in 2 groups)> 2010-03-06 00:59:27,710 - schoolsplay.SPDataManager.DataManager - DEBUG - Got login: 2010-03-06 00:59:27,711 - schoolsplay.SPDataManager.DataManager - DEBUG - No login, running in anonymous mode 2010-03-06 00:59:27,713 - schoolsplay.SPDataManager.DataManager - DEBUG - Running in anonymousmode, no dbase actions 2010-03-06 00:59:27,721 - schoolsplay.SPMenu.Activity - INFO - Activity started 2010-03-06 00:59:27,758 - schoolsplay.SPMenu.ParseXMLMenu - DEBUG - Parsing menu file lib/SPData/menu/default/SP_menu.xml 2010-03-06 00:59:27,773 - schoolsplay.SPMenu.ParseXMLMenu - INFO - failed to parse color value: u'cp_bgstrip.png', invalid literal for int() with base 10: 'cp_bgstrip.png' 2010-03-06 00:59:27,774 - schoolsplay.SPMenu.ParseXMLMenu - INFO - Assuming it's a image path 2010-03-06 00:59:27,777 - schoolsplay.SPMenu.MainMenu - ERROR - Failed to load/setup button image. I will disable the button:completion.icon.png Traceback follows: Traceback (most recent call last): File "SPMenu.py", line 391, in setup_ocp_buttons but = ocw.ImageButton(img) File "/usr/local/lib/python2.6/dist-packages/childsplay_sp/ocempgui/widgets/ImageButton.py", line 79, in __init__ self.set_picture (image) File "/usr/local/lib/python2.6/dist-packages/childsplay_sp/ocempgui/widgets/ImageButton.py", line 110, in set_picture self._picture = Image.load_image (image) File "/usr/local/lib/python2.6/dist-packages/childsplay_sp/ocempgui/draw/Image.py", line 51, in load_image surface = image.load (filename) error: Couldn't open lib/SPData/menu/default/completion.icon.png 2010-03-06 00:59:27,882 - schoolsplay.SPCoreButtons.MainCoreButtons - DEBUG - info button size: 82x82 2010-03-06 00:59:27,909 - schoolsplay.SPCoreButtons.DiceButtons - ERROR - Can't load dice images for buttons: global name 'CBXC' is not defined And it's also true :-) there is not completion.icon.png on the specified folder "lib/SPData/menu/default/c" Maybe the problem is with the SP_menu.xml? (it should be the same that is at SVN ) I've seen (on the log) that CP from sources access a file (the DB) used by the original CP, it is located inside the home folder. 2010-03-06 00:59:23,232 - schoolsplay.SPDataManager.DataManager - DEBUG - Starting dbase, /home/ermengol/.schoolsplay.rc/cp_sp.db This could be a problem? Any clue where to go now? How to solve the problem with the images? Thanks a lot, BTW, as always, I'm not in a hurry :-) Today I had some free hours, and I was trying again with CP BTW (2), do you use and python IDE? Erik? Eclipse? ..... -- * Ermengol * ************************************************* * Els ordinadors no resolen problemes, * * simplement executen solucions * ************************************************* |