Re: [Sugar-devel] A problem of "No module named..." when trying to run an activity which uses GTK

2019-03-24 Thread James Cameron
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 
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 (', mode 'w'
at 0x7fcb9b4c2540>, 'fa4da9b8c4c2eb36f0863d5cbadc72295a506524')

Cause is mismatch between exec in 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 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]qu...@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]https://rit.edu/
> 
> I've forked the activity to [4]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
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] A problem of "No module named..." when trying to run an activity which uses GTK

2019-03-24 Thread Rushabh Vasani
Hello James,
I actually found it on 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  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
> https://rit.edu/
>
> I've forked the activity to 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
> >
> > References:
> >
> > [1] https://github.com/craigcabrey/math-hurdler/issues/9
>
> > ___
> > Sugar-devel mailing list
> > Sugar-devel@lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] A problem of "No module named..." when trying to run an activity which uses GTK

2019-03-24 Thread James Cameron
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
https://rit.edu/

I've forked the activity to 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 
> 
> References:
> 
> [1] https://github.com/craigcabrey/math-hurdler/issues/9

> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] GSOC 2019

2019-03-24 Thread James Cameron
Welcome.

You may be interested in the Story activity, for inspiration.

https://help.sugarlabs.org/story.html

On Mon, Mar 25, 2019 at 02:46:28AM +0530, Akshat Pande wrote:
> Hello,
> 
> I am really amazed with the learning and fun activities that Sugarizer offers.
> I am a JavaScript enthusiast and want to work on adding few more useful
> activities to the project. I have completed the activity development tutorial
> and pulled an activity which was rejected due to touch device compatibility
> issue but now I am planning a story maker activity which plays instances of a
> sketch in series. I have started drafting the proposal too, looking forward to
> contribute and be a part of this community.
> 
> Regards,
> Akshat Pande
> B.Tech(CSE)
> Amity University, Lucknow

> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Activity

2019-03-24 Thread James Cameron
Yes, the Sugar cursor affects the GNOME desktop environment.

This is caused by
https://github.com/sugarlabs/sugar/blob/master/src/jarabe/main.py#L205
where the GNOME desktop cursor theme is changed to the Sugar theme.

Workaround is to use gsettings to change cursor-theme in
org.gnome.desktop.interface back to what it was.  Yes, you can use
dconf to reset all settings, but that has many side-effects.

If this problem bothers anyone who wants to fix it, the fix I'm
interested in seeing is;

* read the value of cursor-theme before changing it in the
  _start_window_manager function,

* keep the Gio.Settings instance instead of deleting at end of the
  _start_window_manager function,

* restore the old value in the _stop_window_manager function.

This should fix the problem for future users.

On Sat, Mar 23, 2019 at 11:28:34AM +0530, kushagra nigam wrote:
> Subject : Help needed for the proposal
> Dear Sir,
> 
> Last day I was working with with the Sugar activities. I read the 
> documentation
> and setup the environment. I made this hello-world activity which was
> instructed there and even used some of the artworks. I want to ask how should 
> I
> proceed with the project? Should I make a layout on GTK+3 and push it onto my
> github (But that'll take some time) or just writing a detailed proposal of how
> will I get along with the project every week would do the job? Please help 
> me!!
> 
> Secondly i discovered this issue:
> I have installed 'Sucrose' in my Ubuntu. Whenever I logout and login with the
> SUGAR environment, it is good. However when I log out from SUGAR and come back
> to Ubuntu, I still have that big cursor on my screen (The sugar one), that is
> the original cursor is replaced by the SUGAR one. Is this a problem with
> everyone?
> A hack which I came up is to Reset the settings when you come back to Ubuntu (
> dconf reset -f / ) but that resets each and every setting.
> 
> Sincerely
> Kushagra Nigam
> 
> On Fri, 22 Mar 2019 at 14:20, kushagra nigam <[1]kushagra1...@gmail.com> 
> wrote:
> 
> Dear Sir,
> 
> I have searched through the Sugar activities like Hangman, Memorize etc.
> What I meant by the game repositories are the activity repositories of
> games like these so that I can install these into my device, get to know
> about the environment better, think about how will I go on to do my task
> (planning is a necessary thing), and eventually write a detailed proposal.
> I'm really excited to build this project :)
> 
> Sincerely
> Kushagra Nigam
> [2]kushagra1...@gmail.com
> 
> On Fri, 22 Mar 2019 at 13:34, James Cameron <[3]qu...@laptop.org> wrote:
> 
> kushagra nigam wrote:
> > You are absolutely right. The "they are cheating button" will not
> > only serve the purpose of someone writing the text but also if
> someone
> > speaking it up in the public.
> 
> Yes, indeed.
> 
> > I'm up for this task.
> 
> Great!
> 
> > Could you please help me with some of the game repositories(python)
> > so that I can get an edge before submitting the final proposal?
> 
> Sorry, I don't understand your question.  What are game repositories?
> 
> All proposals and candidates will be treated fairly, of course.
> You'll have the same edge as anyone else.  ;-)
> 
> --
> James Cameron
> [4]http://quozl.netrek.org/
> ___
> Sugar-devel mailing list
> [5]Sugar-devel@lists.sugarlabs.org
> [6]http://lists.sugarlabs.org/listinfo/sugar-devel
> 
> References:
> 
> [1] mailto:kushagra1...@gmail.com
> [2] mailto:kushagra1...@gmail.com
> [3] mailto:qu...@laptop.org
> [4] http://quozl.netrek.org/
> [5] mailto:Sugar-devel@lists.sugarlabs.org
> [6] http://lists.sugarlabs.org/listinfo/sugar-devel

> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel


-- 
James Cameron
http://quozl.netrek.org/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] GSOC 2019

2019-03-24 Thread Sumit Srivastava
Hey Akshat!

Welcome to Sugar Labs! Looking forward to your contributions.

Regards

On Mon, 25 Mar 2019, 2:46 am Akshat Pande,  wrote:

> Hello,
>
> I am really amazed with the learning and fun activities that Sugarizer
> offers. I am a JavaScript enthusiast and want to work on adding few more
> useful activities to the project. I have completed the activity development
> tutorial and pulled an activity which was rejected due to touch device
> compatibility issue but now I am planning a story maker activity which
> plays instances of a sketch in series. I have started drafting the proposal
> too, looking forward to contribute and be a part of this community.
>
> Regards,
> Akshat Pande
> B.Tech(CSE)
> Amity University, Lucknow
> ___
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] GSOC 2019

2019-03-24 Thread Akshat Pande
Hello,

I am really amazed with the learning and fun activities that Sugarizer
offers. I am a JavaScript enthusiast and want to work on adding few more
useful activities to the project. I have completed the activity development
tutorial and pulled an activity which was rejected due to touch device
compatibility issue but now I am planning a story maker activity which
plays instances of a sketch in series. I have started drafting the proposal
too, looking forward to contribute and be a part of this community.

Regards,
Akshat Pande
B.Tech(CSE)
Amity University, Lucknow
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [ Sugar-devel ] A problem of "No module named..." when trying to run an activity which uses GTK

2019-03-24 Thread Rushabh Vasani
Okay ! I got the problem.
The packages I was installing were being installed in my anaconda
environment and my editor was using different environment.
So It was solved by installing all the packages in that environment .
Thank you.

On Sun, Mar 24, 2019 at 3:23 PM 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 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
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [ Sugar-devel ] A problem of "No module named..." when trying to run an activity which uses GTK

2019-03-24 Thread Rushabh Vasani
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 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
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] A problem of "No module named..." when trying to run an activity which uses GTK

2019-03-24 Thread Rushabh Vasani
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 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
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel