[sugar] Problem with Activity Development
Thu Jul 10 14:18:01 EDT 2008
I had edited the activity.info as
bundle_id = org.laptop.EducationalToolkitActivity
service_name = org.laptop.EducationalToolkitActivity
icon = sweet-icon
activity_version = 2
mime_types = text/plain
show_launcher = yes
The startup.sh had the following code
sugar-activity EducationalToolkitActivity.STARTUPCLASS -s $@.
1)Does one still require setup.py
2)Even after doing this the log showed the following error
File "/usr/bin/sugar-activity" line 112 in<module>
Import Error :No module EducationalToolkitActivity
On 7/9/08, Bobby Powers <bobbypowers at gmail.com> wrote:
> How about this:
> for activity.info have it exec a shell script:
> name = YourSweetApp
> bundle_id = org.laptop.Sweet
> service_name = org.laptop.Sweet
> exec = ./sweet_startup.sh ***
> icon = sweet-icon
> activity_version = 7
> mime_types = text/plain
> show_launcher = yes ***
> don't print the ***, they are to note the relevant lines! Also you
> need to remove the 'class...' line.
> Then, in the root folder of your app put a shell script (with the
> right permissions to let it execute) with the following:
> cd src
> sugar-activity EducationalToolkitActivity.STARTUPCLASS -s $@
> I don't know if this will work, but its worth a shot.
> On Mon, Jul 7, 2008 at 11:47 PM, Asheesh Laroia <asheesh at asheesh.org> wrote:
> > On Mon, 7 Jul 2008, Ankuj Gupta wrote:
> >> Hi
> >> Due to the git repository structure I have to keep a different directory
> >> structure than the default directory as recommended by the wiki.The
> >> contents of the manifest file are mentioned here
> > Okay.
> >> EducationalToolkitActivity.py imports parse and model .py But tle log
> >> shows module missing.I have also edited the activity-info file.But
> >> still it shows "No module named as parse"
> > Can you:
> > (a) provide the full source?, and
> > (b) provide the exact error message?
> > -- Asheesh.
> > --
> > The easiest way to get the root password is to become system admin.
> > -- Unknown source
> > _______________________________________________
> > Sugar mailing list
> > Sugar at lists.laptop.org
> > http://lists.laptop.org/listinfo/sugar
New Delhi , India
Mob : +91-9911428503
email:ankuj2004 at gmail.com
More information about the Sugar-devel