#2388 NORM Untriag: On non-int numbers for the activity-version sugar-jhbuiild does not start

Zarro Boogs per Child bugtracker at laptop.org
Mon Jul 23 06:29:47 EDT 2007


#2388: On non-int numbers for the activity-version sugar-jhbuiild does not start
--------------------+-------------------------------------------------------
 Reporter:  Simon   |       Owner:  dcbw     
     Type:  defect  |      Status:  new      
 Priority:  normal  |   Milestone:  Untriaged
Component:  sugar   |     Version:           
 Keywords:          |    Verified:  0        
--------------------+-------------------------------------------------------
 If the activity-version in the activity-info file is non-int, sugar will
 not start. Sugar should probably not start the activity and display a
 warning and go on then.

 sugar-trace:

 Traceback (most recent call last):
   File "/home/erikos/sugar-jhbuild/build/bin/sugar-shell", line 37, in
 <module>
     from view.Shell import Shell
   File "/home/erikos/sugar-jhbuild/build/share/sugar/shell/view/Shell.py",
 line 34, in <module>
     from view.frame.frame import Frame
   File "/home/erikos/sugar-
 jhbuild/build/share/sugar/shell/view/frame/frame.py", line 29, in <module>
     from view.frame.ActivitiesBox import ActivitiesBox
   File "/home/erikos/sugar-
 jhbuild/build/share/sugar/shell/view/frame/ActivitiesBox.py", line 26, in
 <module>
     from model import bundleregistry
   File "/home/erikos/sugar-
 jhbuild/build/share/sugar/shell/model/bundleregistry.py", line 116, in
 <module>
     _bundle_registry.add_search_path(bundles_path)
   File "/home/erikos/sugar-
 jhbuild/build/share/sugar/shell/model/bundleregistry.py", line 86, in
 add_search_path
     self._scan_directory(path)
   File "/home/erikos/sugar-
 jhbuild/build/share/sugar/shell/model/bundleregistry.py", line 97, in
 _scan_directory
     self.add_bundle(bundle_dir)
   File "/home/erikos/sugar-
 jhbuild/build/share/sugar/shell/model/bundleregistry.py", line 100, in
 add_bundle
     bundle = Bundle(bundle_path)
   File "/home/erikos/sugar-jhbuild/build/lib/python2.5/site-
 packages/sugar/activity/bundle.py", line 58, in __init__
     self._init_with_path(path)
   File "/home/erikos/sugar-jhbuild/build/lib/python2.5/site-
 packages/sugar/activity/bundle.py", line 72, in _init_with_path
     self._parse_info(info_file)
   File "/home/erikos/sugar-jhbuild/build/lib/python2.5/site-
 packages/sugar/activity/bundle.py", line 145, in _parse_info
     self._activity_version = int(cp.get(section, 'activity_version'))
 ValueError: invalid literal for int() with base 10: '1.0'

-- 
Ticket URL: <https://dev.laptop.org/ticket/2388>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list