Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#2175 closed defect (fixed)

ActivityBundle._parse_info() mentions recently removed 'class' key

Reported by: sascha_silbe Owned by: erikos
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Major Keywords:
Cc: Distribution/OS:
Bug Status: New


If an activity bundle uses the obsolete class key instead of exec, sugar.bundle.activitybundle.ActivityBundle._parse_info() raises a sugar.bundle.bundle.MalformedBundleException that tells the user to set exec or class. This is going to be rather confusing to activity developers.

*** Installing pippy *** [17/26]
python install --prefix /home/sascha.silbe/sugar-jhbuild/install
Traceback (most recent call last):
  File "", line 21, in <module>
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/", line 415, in start
    config = Config()
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/", line 80, in __init__
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/activity/", line 83, in update
    self.bundle = bundle = ActivityBundle(self.source_dir)
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/bundle/", line 67, in __init__
  File "/home/sascha.silbe/sugar-jhbuild/install/lib/python2.6/site-packages/sugar/bundle/", line 168, in _parse_info
sugar.bundle.bundle.MalformedBundleException: Activity bundle /home/sascha.silbe/sugar-jhbuild/source/pippy must specify either class or exec
*** Error during phase install of pippy: ########## Error running python install --prefix /home/sascha.silbe/sugar-jhbuild/install *** [17/26]

Change History (3)

comment:1 Changed 14 years ago by erikos

  • Resolution set to fixed
  • Status changed from new to closed

Sascha, sorry for the noise.

I brought them back, as many activities seems to still use those fields:

For now we have a warning to change the occurrences:

comment:2 Changed 11 years ago by dnarvaez

  • Component changed from sugar-toolkit to Sugar

comment:3 Changed 11 years ago by dnarvaez

  • Milestone 0.90 deleted

Milestone 0.90 deleted

Note: See TracTickets for help on using tickets.