[Bugs] #350 UNSP: Pippy: Slideshow: Python module sugar.datastore not found

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Fri Feb 20 16:52:56 EST 2009


#350: Pippy: Slideshow: Python module sugar.datastore not found
------------------------------------------+---------------------------------
    Reporter:  sascha_silbe               |          Owner:  lfaraone                   
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Pippy                      |        Version:  Git as of bugdate          
    Severity:  Unspecified                |     Resolution:                             
    Keywords:                             |   Distribution:  Ubuntu                     
Status_field:  Unconfimed                 |  
------------------------------------------+---------------------------------

Comment(by sascha_silbe):

 I've found the code and am actually surprised it would work on any system:

 pippy_app.py:go_button_cb()

 {{{
         self._pid = self._vte.fork_command \
                     (command="/bin/sh",
                      argv=["/bin/sh", "-c",
                            "python %s; sleep 1" % pippy_app_name],
                      envv=["PYTHONPATH=%s/library" % get_bundle_path()],
                      directory=get_bundle_path())
 }}}

 As you see it sets PYTHONPATH to a single directory. This will override
 the PYTHONPATH set by sugar-jhbuild. Only built-in (i.e. system) paths and
 the Pippy library path will work. That's why pippy, os, sys etc. can be
 used, but nothing from Sugar.

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/350#comment:5>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list