[gcompris-devel] Cannot start a new python activity

s.granjeaud at free.fr s.granjeaud at free.fr
Thu Jan 31 20:35:38 UTC 2013


Hi,

Bruno found the solution. A link to the board was missing in my case. Now the python sudoku runs like a charm.

So a symbolic link (Linux) is needed:

cd gcompris-12.11/src
cd sudoku-activity/
ln -s ../boards/python/gcompris
cd ..
./runit.sh sudoku-activity -wmcD

Symbolic link could be written by hand or inserted in the runit.sh script if missing.

Many thanks,
Samuel

----- Mail original -----
De: "Bruno Coudoin" <bruno.coudoin at gcompris.net>
À: "s granjeaud" <s.granjeaud at free.fr>
Envoyé: Mardi 29 Janvier 2013 00:41:10
Objet: Re: [gcompris-devel] Cannot start a new python activity


Bonjour,

Est-ce que tu as bien dans le répertoire de l'activité python le lien
suivant :
gcompris -> ../boards/python/gcompris/

Example:
cd src/hexagon-activity/
ls -l
gcompris -> ../boards/python/gcompris
....

Bruno.


Le jeudi 24 janvier 2013 à 23:44 +0100, s.granjeaud at free.fr a écrit :
> Bonsoir,
> 
> Je me permets d'insister car je ne vois pas ce qui manque. La compilation se déroule bien, et l'installation donne un logiciel qui s'execute sans probleme. De mon point de vue, toutes les dépendances sont résolues. Je verrai plutot un probleme de definition de chemin d'accès (variables overloaded, dossier share). Est-ce que vous pourriez jeter un dernier coup d'oeil au log ci-dessous avant que j'installe une Debian à la place de cette CentOS like ? Eventuellement me retourner le résultat de "./runit.sh sudoku-activity -wmcD" ?
> 
> Cordialement,
> Samuel
> 
> [gc-dvp at sam src]$ ./runit.sh sudoku-activity -wmcDexec_prefix              = /home/gc-dvp/gcompris-12.11/src/gcompris/.libs
> package_data_dir         = /home/gc-dvp/gcompris-12.11/src/gcompris/share/gcompris/boards
> package_skin_dir         = /home/gc-dvp/gcompris-12.11/src/gcompris/share/gcompris/boards/skins
> package_menu_dir         = /home/gc-dvp/gcompris-12.11/src/gcompris/share/gcompris/boards
> package_locale_dir       = /home/gc-dvp/gcompris-12.11/src/gcompris/share/locale
> package_plugin_dir       = /home/gc-dvp/gcompris-12.11/src/gcompris/lib/gcompris
> package_python_plugin_dir= /home/gc-dvp/gcompris-12.11/src/gcompris/share/gcompris/python
> user_dir                 = /home/gc-dvp/My GCompris
> gcompris: gc_locale_set 'en_US.UTF-8'
> 
> 
> gcompris: Sound disabled
> 
> gcompris: Default system cursor enabled
> 
> Overloaded package_data_dir          = sudoku-activity/resources
> Overloaded package_skin_dir          = sudoku-activity/../../boards/skins
> Overloaded menu_dir                  = sudoku-activity
> Overloaded package_plugin_dir        = sudoku-activity/../boards/.libs
> Overloaded package_python_plugin_dir = sudoku-activity
> Overloaded locale_dir                = /usr/local/share/locale
> gcompris: Using menu /puzzle/sudoku as root.
> 
> Infos:
>    Config dir '/home/gc-dvp/.config/gcompris'
>    Users dir '/home/gc-dvp/My GCompris'
>    Database '/home/gc-dvp/.config/gcompris/gcompris_sqlite.db'
> gcompris: Couldn't open music dir: sudoku-activity/resources/music/background
> 
> gcompris: absolute_filename '/home/gc-dvp/gcompris-12.11/src/gcompris/share/pixmaps/gcompris.png' NOT FOUND
> 
> 
> gcompris: Failed to find icon file: 'gcompris.png'
> 
> gcompris: The screen_width=800.000000 screen_height=520.000000 ratio=1.000000
> 
> 
> gcompris: Status=
> 
> 
> gcompris: gcompris window is now mapped
> 
> gcompris: No user, getting one from system.
> 
> gcompris: opened module sudoku-activity/../boards/.libs/libpython.so with name python
> 
> 
> gcompris: Executing import sys; sys.path.append('sudoku-activity')
> 
> 
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: No module named gcompris
> gcompris: ! Python disabled: Cannot import gcompris modules
> 
> 
> gcompris: We found a plugin with the name sudoku but is_our_board() returned FALSE (type=python:sudoku)
> 
> 
> gcompris: No plugin library found for board type 'python:sudoku', requested by 'sudoku-activity/sudoku.xml'
> 
> gcompris: Dialog=Couldn't find the board menu, or plugin execution error
> 
> 
> gcompris: No boards to pause ?
> 
> gcompris: gcompris window is now mapped
> 
> gcompris: 65513 key is NOT handled by context
> 
> gcompris: 65513 key is NOT handled by context
> 
> gcompris: gc_sound_fx_close
> 
> gcompris: gc_sound_fx_close done
> 




More information about the Gcompris-devel mailing list