[Sugar-devel] A problem of "No module named..." when trying to run an activity which uses GTK
James Cameron
quozl at laptop.org
Mon Mar 25 18:35:54 EDT 2019
Thanks. No, I'm not running the activity from the Terminal. I'm
running it the way a child learner would run it; from the Home View.
If you're not familiar with the user experience of Sugar, please read
through our documentation;
https://help.sugarlabs.org/en/sugar_ui.html
https://help.sugarlabs.org/en/home_view.html
How did you fall into this trap; is there some other documentation we
need to change? Let us know!
When I said "I'm not sure if the activity was finished before it was
added to the Wiki" I'm suggesting that the activity was not finished,
and so you are having to fix problems because the original developers
did not complete their work. You used the Wiki to find the activity,
and so you may have found an unfinished activity. Very brave!
Regarding the "Create a new set of activities" idea, you should
research to appreciate the breadth and scope of the existing
activities so that you can avoid suggesting an activity we might
already have.
On Mon, Mar 25, 2019 at 09:36:43PM +0530, Rushabh Vasani wrote:
> Hello !
> I was not getting this kind of any error.
> Are you running your activity from terminal with the command " ./
> math-hurdler.py " after cloning it?
> Or you are doing something else ? I was running it from the terminal and a
> simple pygame window was opening. Even I just tried it once again so that I can
> give you right description . I don't know if there is another way to run the
> activity .Please tell me if there is .
> And I don't understood what do you exactly mean by " I'm not sure if the
> activity was finished before it was added to the Wiki. "
>
> And another question I have for the activity " Create a new set of activities "
> is that ,
> I am planing the activities which I want to create in this three months So
> should there be 12-15 small small activities or 4-5 very nice and bigger
> activities for that . I personally would like to create bigger activities which
> can make a big difference in the skills of students.But I'll plan the
> activities as you say.
> Thank you.
>
>
> On Mon, Mar 25, 2019 at 9:26 AM James Cameron <[1]quozl at laptop.org> wrote:
>
> Thanks. That's interesting. The page is automatically generated from
> new pages added to the Wiki. I hadn't thought to check there for new
> activities.
>
> The problem with Math Hurdler at the moment (ff8a15d) is that it does
> not start in Sugar. A message appears "Math Hurdler failed to start."
> Logs show this;
>
> 1553485563.457917 WARNING root: Activity bundle
> /home/guest/Activities/MathHurdler.activity does not specify a license
> Traceback (most recent call last):
> File "/usr/bin/sugar-activity", line 5, in <module>
> activityinstance.main()
> File
> "/usr/lib/python2.7/dist-packages/sugar3/activity/activityinstance.py",
> line 178, in main
> module = __import__(module_name)
> ImportError: No module named MathHurdlerActivity
> Exited with status 1, pid 1371 data (<open file '<fdopen>', mode 'w'
> at 0x7fcb9b4c2540>, 'fa4da9b8c4c2eb36f0863d5cbadc72295a506524')
>
> Cause is mismatch between exec in [2]activity.info and class name in
> source code.
>
> I'm not sure if the activity was finished before it was added to the
> Wiki.
>
> By the way, your mail wasn't deleted.
>
> On Mon, Mar 25, 2019 at 08:40:28AM +0530, Rushabh Vasani wrote:
> > Hello James,
> > I actually found it on [3]https://wiki.sugarlabs.org/go/Activities .
> > And after installing pygame it was finely working for me. In fact the
> > activities that uses GTK are also working for me now and I have sent
> another
> > mail for that containing [Sugar-devel] in the subject so everyone can
> read that
> > and that's why I deleted the mail above.The problem with that was that I
> was
> > installing packages in my anaconda environment and my editor was using
> another
> > environment so I just installed the packages in that python environment
> and it
> > worked for me.
> >
> > But for your problem can you please tell me the error which you see while
> > running "./math-hurdler.py" .
> > Thank you and I am really looking forward to contribute in another
> activities.
> > Thank you.
> >
> > --Rushabh
> >
> > On Mon 25 Mar, 2019, 6:55 AM James Cameron <[2][4]quozl at laptop.org wrote:
> >
> > Thanks Rushabh, this math-hurdler activity is new to me. How did you
> > find it?
> >
> > Perhaps Craig Cabrey is busy. It has only been four days. Craig is
> > not a regular contributor at Sugar Labs. The activity may have been
> > made by the FOSSRIT team at Rochester Institute of Technology
> > [3][5]https://rit.edu/
> >
> > I've forked the activity to [4][6]https://github.com/sugarlabs/
> math-hurdler
> > so we can keep a copy of it.
> >
> > The activity does need GTK. It is mostly implemented in PyGame.
> >
> > Is it working for you? I get an error on import.
> >
> > On Sun, Mar 24, 2019 at 11:35:39AM +0530, Rushabh Vasani wrote:
> > > Hello everyone !
> > > I am facing a problem of "No module named gi " and "No module named
> > > sugar3.activity " when I am trying to run any activity using GTK.
> > > I have solved an issue of an activity named math-hurdler and have
> made a
> > also
> > > [1]Pull Request (Which has not been responded yet Because the
> author of
> > that
> > > activity has not given the authority of that activity to SugarLabs
> and
> > his
> > > GitHub profile is inactive from very long time.And he is not
> answering my
> > mails
> > > also .) .But this activity was not using GTK so I didn't faced any
> > problem
> > > there.
> > > Clarification is that I have installed GTK and all other required
> > dependencies
> > > on my machine.
> > > I am facing this problem from last 2 days if anyone can solve this
> the
> > help
> > > will be appreciated.
> > > Thank you.
> > >
> > > --
> > > Rushabh
> _______________________________________________
> Sugar-devel mailing list
> [7]Sugar-devel at lists.sugarlabs.org
> [8]http://lists.sugarlabs.org/listinfo/sugar-devel
>
> References:
>
> [1] mailto:quozl at laptop.org
> [2] http://activity.info/
> [3] https://wiki.sugarlabs.org/go/Activities
> [4] mailto:quozl at laptop.org
> [5] https://rit.edu/
> [6] https://github.com/sugarlabs/math-hurdler
> [7] mailto:Sugar-devel at lists.sugarlabs.org
> [8] http://lists.sugarlabs.org/listinfo/sugar-devel
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
--
James Cameron
http://quozl.netrek.org/
More information about the Sugar-devel
mailing list