Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread Aleksey Lim
On Tue, Dec 06, 2011 at 01:04:18AM +0100, laurent bernabe wrote:
 Ok, that answer make really sense to me : particularly the distro changing
 avoidment ^^
 I'll make all tests you want me too, if it can help to find what is wrong.
 (I've saved my system in a ghost image on last morning ^^)

Since I can help only w/ Sweets (and can't w/ native packages)..

Are you still on Ubuntu-11.04?
If yes, the `sweets -S sdk/sugar:emulator` should work
and I even can run Pippy w/o errors (though, I can't test camers
example).

For setup.py command, you need to upgrade your sweets to 1.0.5
http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Usage#Upgrade

and use these installations
http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Packaging#Developing_activities

 2011/12/6 Aleksey Lim alsr...@activitycentral.org
 
  On Tue, Dec 06, 2011 at 12:02:02AM +0100, laurent bernabe wrote:
   Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha instead of
   Xubuntu will solve my problems ?
 
  Well, the whole purpose for Sweets is to avoid situation when people
  need to install the whole GNU/Linux distribution only to try/use/code
  Sugar. Becuase it is ridiculous overkill:
 
  * to change your favorite distro only for Sugar purpose,
  * Sugar Shell is only 5, mostly, Python based projects,
  * mostly, it is possible to handle a couple of non-Python based
  rependencies
   in your current distro.
 
  The sumary :)
 
  * do not switch distro to use sugar,
  * let's improve Sugar (maybe w/ Sweets, maybe w/ native packages in your
   favorite distro)
 
  --
  Aleksey
 

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread laurent bernabe
Yes i am still on ubuntu 11.04 ^^

I am installing the sweet sdk with the command
= sweets -S sdk/sugar:emulator

Next i'll upgrade to sweets 1.05 as you advises me

2011/12/6 Aleksey Lim alsr...@activitycentral.org

 On Tue, Dec 06, 2011 at 01:04:18AM +0100, laurent bernabe wrote:
  Ok, that answer make really sense to me : particularly the distro
 changing
  avoidment ^^
  I'll make all tests you want me too, if it can help to find what is
 wrong.
  (I've saved my system in a ghost image on last morning ^^)

 Since I can help only w/ Sweets (and can't w/ native packages)..

 Are you still on Ubuntu-11.04?
 If yes, the `sweets -S sdk/sugar:emulator` should work
 and I even can run Pippy w/o errors (though, I can't test camers
 example).

 For setup.py command, you need to upgrade your sweets to 1.0.5
 http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Usage#Upgrade

 and use these installations

 http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Packaging#Developing_activities

  2011/12/6 Aleksey Lim alsr...@activitycentral.org
 
   On Tue, Dec 06, 2011 at 12:02:02AM +0100, laurent bernabe wrote:
Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha
 instead of
Xubuntu will solve my problems ?
  
   Well, the whole purpose for Sweets is to avoid situation when people
   need to install the whole GNU/Linux distribution only to try/use/code
   Sugar. Becuase it is ridiculous overkill:
  
   * to change your favorite distro only for Sugar purpose,
   * Sugar Shell is only 5, mostly, Python based projects,
   * mostly, it is possible to handle a couple of non-Python based
   rependencies
in your current distro.
  
   The sumary :)
  
   * do not switch distro to use sugar,
   * let's improve Sugar (maybe w/ Sweets, maybe w/ native packages in
 your
favorite distro)
  
   --
   Aleksey
  

 --
 Aleksey

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread laurent bernabe
Finally sweets sdk installation aborded :

-- PackageKit install failed: The following packages have unmet
dependencies:
  python-abiword: Depends: libabiword-2.8 (= 2.8.6-0.3) but 2.8.6-0.3build1
is to be installed
 (dep-resolution-failed)
-- Use -D argument for debug info, -DD for full debuging output and
tracebacks

2011/12/6 laurent bernabe laurent.bern...@gmail.com

 Yes i am still on ubuntu 11.04 ^^

 I am installing the sweet sdk with the command
 = sweets -S sdk/sugar:emulator

 Next i'll upgrade to sweets 1.05 as you advises me

 2011/12/6 Aleksey Lim alsr...@activitycentral.org

 On Tue, Dec 06, 2011 at 01:04:18AM +0100, laurent bernabe wrote:
  Ok, that answer make really sense to me : particularly the distro
 changing
  avoidment ^^
  I'll make all tests you want me too, if it can help to find what is
 wrong.
  (I've saved my system in a ghost image on last morning ^^)

 Since I can help only w/ Sweets (and can't w/ native packages)..

 Are you still on Ubuntu-11.04?
 If yes, the `sweets -S sdk/sugar:emulator` should work
 and I even can run Pippy w/o errors (though, I can't test camers
 example).

 For setup.py command, you need to upgrade your sweets to 1.0.5
 http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Usage#Upgrade

 and use these installations

 http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Packaging#Developing_activities

  2011/12/6 Aleksey Lim alsr...@activitycentral.org
 
   On Tue, Dec 06, 2011 at 12:02:02AM +0100, laurent bernabe wrote:
Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha
 instead of
Xubuntu will solve my problems ?
  
   Well, the whole purpose for Sweets is to avoid situation when people
   need to install the whole GNU/Linux distribution only to try/use/code
   Sugar. Becuase it is ridiculous overkill:
  
   * to change your favorite distro only for Sugar purpose,
   * Sugar Shell is only 5, mostly, Python based projects,
   * mostly, it is possible to handle a couple of non-Python based
   rependencies
in your current distro.
  
   The sumary :)
  
   * do not switch distro to use sugar,
   * let's improve Sugar (maybe w/ Sweets, maybe w/ native packages in
 your
favorite distro)
  
   --
   Aleksey
  

 --
 Aleksey



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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread Aleksey Lim
On Tue, Dec 06, 2011 at 09:53:51PM +0100, laurent bernabe wrote:
 Finally sweets sdk installation aborded :
 
 -- PackageKit install failed: The following packages have unmet
 dependencies:
   python-abiword: Depends: libabiword-2.8 (= 2.8.6-0.3) but 2.8.6-0.3build1
 is to be installed
  (dep-resolution-failed)
 -- Use -D argument for debug info, -DD for full debuging output and
 tracebacks

Yeah, that's ubuntu-11.04's long standing bug that was reported, fixed in
proposed-updates but not in updates. You need to add proposed updates,
and upgrade from them:

sudo apt-add-repository 'deb http://us.archive.ubuntu.com/ubuntu/ 
natty-proposed main universe'
sudo apt-get update
sudo apt-get upgrade

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread laurent bernabe
Ok, I'm doing it right now :)

2011/12/6 Aleksey Lim alsr...@activitycentral.org

 On Tue, Dec 06, 2011 at 09:53:51PM +0100, laurent bernabe wrote:
  Finally sweets sdk installation aborded :
 
  -- PackageKit install failed: The following packages have unmet
  dependencies:
python-abiword: Depends: libabiword-2.8 (= 2.8.6-0.3) but
 2.8.6-0.3build1
  is to be installed
   (dep-resolution-failed)
  -- Use -D argument for debug info, -DD for full debuging output and
  tracebacks

 Yeah, that's ubuntu-11.04's long standing bug that was reported, fixed in
 proposed-updates but not in updates. You need to add proposed updates,
 and upgrade from them:

sudo apt-add-repository 'deb 
 http://us.archive.ubuntu.com/ubuntu/natty-proposed main universe'
sudo apt-get update
sudo apt-get upgrade

 --
 Aleksey

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread laurent bernabe
I've

   - lauched command sweets -S sdk/sugar:emulator
   - updated sweets

But which path must I precise to command sweets build [PATH] ?

2011/12/6 laurent bernabe laurent.bern...@gmail.com

 Ok, I'm doing it right now :)


 2011/12/6 Aleksey Lim alsr...@activitycentral.org

 On Tue, Dec 06, 2011 at 09:53:51PM +0100, laurent bernabe wrote:
  Finally sweets sdk installation aborded :
 
  -- PackageKit install failed: The following packages have unmet
  dependencies:
python-abiword: Depends: libabiword-2.8 (= 2.8.6-0.3) but
 2.8.6-0.3build1
  is to be installed
   (dep-resolution-failed)
  -- Use -D argument for debug info, -DD for full debuging output and
  tracebacks

 Yeah, that's ubuntu-11.04's long standing bug that was reported, fixed in
 proposed-updates but not in updates. You need to add proposed updates,
 and upgrade from them:

sudo apt-add-repository 'deb 
 http://us.archive.ubuntu.com/ubuntu/natty-proposed main universe'
sudo apt-get update
sudo apt-get upgrade

 --
 Aleksey



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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-06 Thread Aleksey Lim
On Wed, Dec 07, 2011 at 12:34:16AM +0100, laurent bernabe wrote:
 I've
 
- lauched command sweets -S sdk/sugar:emulator
- updated sweets
 
 But which path must I precise to command sweets build [PATH] ?

The path to your activity, or cd there and type only sweets build.
In fact, there is no need in this command until you need translation
of your activity.

To run your activity, follow
http://wiki.sugarlabs.org/go/Platform_Team/Guide/Sweets_Packaging#Launch_activity
instructions.

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


[Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Hello everyone,

I am following the ActivitiesGuideSugar pdf from august 2010.


   - I've fetched tutorial source code for etext activity (chapter 5 :
   inheriting from Activity.activity)
   - I've modified, carefully i think, the svg picture with Inkscape and
   edited the xml structure
   - I installed the Sugar Sweets distribution

But when I try to setup the activity from the emulator terminal, I get an
error saying that there is no module called sugar.activity
(the line in fault : from sugar.activity import bundlebuilder.

Have I forgotten an important step in my sugar environment ?

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Simmons
Laurent,

I don't have experience with Sweets, but normally you would install the
version of Sugar that comes with your distribution.  When you launch this
Sugar comes up in a window.  So you have your GNOME desktop where you do
your development work, plus you have this window that contains a Sugar
environment that you use for testing.

You run setup.py dev from a normal terminal window, not the one that Sugar
provides.  This creates a symbolic link between your source directory and
where Sugar wants your program to be.  After that any changes you make in
your source directory will be reflected in what runs under Sugar.  You'll
probably need to stop and restart your Activity to see your changes take
effect.

James Simmons


On Mon, Dec 5, 2011 at 11:28 AM, laurent bernabe
laurent.bern...@gmail.comwrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape and
edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I get an
 error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 Regards

 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Ok, thank you for your answer, I've well understood.
I'm going to apply your advice.

Regards

2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 I don't have experience with Sweets, but normally you would install the
 version of Sugar that comes with your distribution.  When you launch this
 Sugar comes up in a window.  So you have your GNOME desktop where you do
 your development work, plus you have this window that contains a Sugar
 environment that you use for testing.

 You run setup.py dev from a normal terminal window, not the one that Sugar
 provides.  This creates a symbolic link between your source directory and
 where Sugar wants your program to be.  After that any changes you make in
 your source directory will be reflected in what runs under Sugar.  You'll
 probably need to stop and restart your Activity to see your changes take
 effect.

 James Simmons


 On Mon, Dec 5, 2011 at 11:28 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape and
edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I get an
 error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 Regards

 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Unfortunately, I can't launch setup.py from the host system terminal
= no module called sugar.activity

And that error disappear if I launch setup.py from the sugar emulator

2011/12/5 laurent bernabe laurent.bern...@gmail.com

 Ok, thank you for your answer, I've well understood.
 I'm going to apply your advice.

 Regards


 2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 I don't have experience with Sweets, but normally you would install the
 version of Sugar that comes with your distribution.  When you launch this
 Sugar comes up in a window.  So you have your GNOME desktop where you do
 your development work, plus you have this window that contains a Sugar
 environment that you use for testing.

 You run setup.py dev from a normal terminal window, not the one that
 Sugar provides.  This creates a symbolic link between your source directory
 and where Sugar wants your program to be.  After that any changes you make
 in your source directory will be reflected in what runs under Sugar.
  You'll probably need to stop and restart your Activity to see your changes
 take effect.

 James Simmons


 On Mon, Dec 5, 2011 at 11:28 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape
and edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I get
 an error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 Regards

 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Simmons
Laurent,

This may be an issue with sweets.  If you are using Fedora then all you
really need to do is to install the Sugar RPM's that come with the
distribution.  Other distributions should have something similar.  The
module sugar.activity is a set of Python classes.  It should be available
to anyone developing Python code, whether Sugar is running or not.  It is a
fundamental library.  You can't make a Sugar Activity without it.

I don't know what Sweets is doing, but if I was in your position I'd
uninstall it and install the Sugar that comes with the distribution.
 Fedora does a very good job packaging Sugar.  Their version of Sugar is
actually newer than most kids use in the field.  If your goal is to develop
Activities there is no reason to use anything else.  If you want to hack on
the Sugar environment itself you would need something newer, but I'd do
Activities first.  New or improved Activities will have a more immediate
benefit to more students than working on Sugar itself, and you'll
understand how to hack Sugar better if you've developed Activities first.

There is a chapter on setting up a development environment in the book.  If
you skipped over it give it another look.

James Simmons


On Mon, Dec 5, 2011 at 2:00 PM, laurent bernabe
laurent.bern...@gmail.comwrote:

 Unfortunately, I can't launch setup.py from the host system terminal
 = no module called sugar.activity

 And that error disappear if I launch setup.py from the sugar emulator


 2011/12/5 laurent bernabe laurent.bern...@gmail.com

 Ok, thank you for your answer, I've well understood.
 I'm going to apply your advice.

 Regards


 2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 I don't have experience with Sweets, but normally you would install the
 version of Sugar that comes with your distribution.  When you launch this
 Sugar comes up in a window.  So you have your GNOME desktop where you do
 your development work, plus you have this window that contains a Sugar
 environment that you use for testing.

 You run setup.py dev from a normal terminal window, not the one that
 Sugar provides.  This creates a symbolic link between your source directory
 and where Sugar wants your program to be.  After that any changes you make
 in your source directory will be reflected in what runs under Sugar.
  You'll probably need to stop and restart your Activity to see your changes
 take effect.

 James Simmons


 On Mon, Dec 5, 2011 at 11:28 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape
and edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I get
 an error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 Regards

 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Thank you,

You're right, I just want to develop activities, not hacking Sugar (at
least, not right now, as I am just starting).

My current Linux system is Xubuntu :

   - First, I had tried the sugar-emulator provided by Canonical = I did
   not find which package to install in order to have the sugar python modules
   - Many Pippy examples does not work with the Canonical package, whereas
   I managed with Sweet

But I'll uninstall sweet right now, and try to find the missing package in
order to be able to use the sugar-emulator on the one hand, and use most
Pippy examples on the other hand.

And I will read again the chapter explaining the environement setup more
accurately.

2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 This may be an issue with sweets.  If you are using Fedora then all you
 really need to do is to install the Sugar RPM's that come with the
 distribution.  Other distributions should have something similar.  The
 module sugar.activity is a set of Python classes.  It should be available
 to anyone developing Python code, whether Sugar is running or not.  It is a
 fundamental library.  You can't make a Sugar Activity without it.

 I don't know what Sweets is doing, but if I was in your position I'd
 uninstall it and install the Sugar that comes with the distribution.
  Fedora does a very good job packaging Sugar.  Their version of Sugar is
 actually newer than most kids use in the field.  If your goal is to develop
 Activities there is no reason to use anything else.  If you want to hack on
 the Sugar environment itself you would need something newer, but I'd do
 Activities first.  New or improved Activities will have a more immediate
 benefit to more students than working on Sugar itself, and you'll
 understand how to hack Sugar better if you've developed Activities first.

 There is a chapter on setting up a development environment in the book.
  If you skipped over it give it another look.

 James Simmons


 On Mon, Dec 5, 2011 at 2:00 PM, laurent bernabe laurent.bern...@gmail.com
  wrote:

 Unfortunately, I can't launch setup.py from the host system terminal
 = no module called sugar.activity

 And that error disappear if I launch setup.py from the sugar emulator


 2011/12/5 laurent bernabe laurent.bern...@gmail.com

 Ok, thank you for your answer, I've well understood.
 I'm going to apply your advice.

 Regards


 2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 I don't have experience with Sweets, but normally you would install the
 version of Sugar that comes with your distribution.  When you launch this
 Sugar comes up in a window.  So you have your GNOME desktop where you do
 your development work, plus you have this window that contains a Sugar
 environment that you use for testing.

 You run setup.py dev from a normal terminal window, not the one that
 Sugar provides.  This creates a symbolic link between your source directory
 and where Sugar wants your program to be.  After that any changes you make
 in your source directory will be reflected in what runs under Sugar.
  You'll probably need to stop and restart your Activity to see your changes
 take effect.

 James Simmons


 On Mon, Dec 5, 2011 at 11:28 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5
: inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape
and edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I get
 an error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 Regards

 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Simmons
Laurent,

I found a web page where it says to run this:

sudo aptitude install sugar sugar-activities sugar-emulator

With RPM's on Fedora dependencies are handled automatically.  I don't see
why this would be any different.  It sounds like you're getting Python
libraries that are only visible from within Sugar.  Fedora doesn't do
that.  You need someone familiar with Xubuntu to advise you.  It may be an
issue with PYTHONPATH.

James Simmons


On Mon, Dec 5, 2011 at 2:33 PM, laurent bernabe
laurent.bern...@gmail.comwrote:

 Thank you,

 You're right, I just want to develop activities, not hacking Sugar (at
 least, not right now, as I am just starting).

 My current Linux system is Xubuntu :

- First, I had tried the sugar-emulator provided by Canonical = I did
not find which package to install in order to have the sugar python modules
- Many Pippy examples does not work with the Canonical package,
whereas I managed with Sweet

 But I'll uninstall sweet right now, and try to find the missing package in
 order to be able to use the sugar-emulator on the one hand, and use most
 Pippy examples on the other hand.

 And I will read again the chapter explaining the environement setup more
 accurately.

 2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 This may be an issue with sweets.  If you are using Fedora then all you
 really need to do is to install the Sugar RPM's that come with the
 distribution.  Other distributions should have something similar.  The
 module sugar.activity is a set of Python classes.  It should be available
 to anyone developing Python code, whether Sugar is running or not.  It is a
 fundamental library.  You can't make a Sugar Activity without it.

 I don't know what Sweets is doing, but if I was in your position I'd
 uninstall it and install the Sugar that comes with the distribution.
  Fedora does a very good job packaging Sugar.  Their version of Sugar is
 actually newer than most kids use in the field.  If your goal is to develop
 Activities there is no reason to use anything else.  If you want to hack on
 the Sugar environment itself you would need something newer, but I'd do
 Activities first.  New or improved Activities will have a more immediate
 benefit to more students than working on Sugar itself, and you'll
 understand how to hack Sugar better if you've developed Activities first.

 There is a chapter on setting up a development environment in the book.
  If you skipped over it give it another look.

 James Simmons


 On Mon, Dec 5, 2011 at 2:00 PM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Unfortunately, I can't launch setup.py from the host system terminal
 = no module called sugar.activity

 And that error disappear if I launch setup.py from the sugar emulator


 2011/12/5 laurent bernabe laurent.bern...@gmail.com

 Ok, thank you for your answer, I've well understood.
 I'm going to apply your advice.

 Regards


 2011/12/5 James Simmons nices...@gmail.com

 Laurent,

 I don't have experience with Sweets, but normally you would install
 the version of Sugar that comes with your distribution.  When you launch
 this Sugar comes up in a window.  So you have your GNOME desktop where you
 do your development work, plus you have this window that contains a Sugar
 environment that you use for testing.

 You run setup.py dev from a normal terminal window, not the one that
 Sugar provides.  This creates a symbolic link between your source 
 directory
 and where Sugar wants your program to be.  After that any changes you make
 in your source directory will be reflected in what runs under Sugar.
  You'll probably need to stop and restart your Activity to see your 
 changes
 take effect.

 James Simmons


 On Mon, Dec 5, 2011 at 11:28 AM, laurent bernabe 
 laurent.bern...@gmail.com wrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5
: inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape
and edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I
 get an error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 Regards

 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Cameron
On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
 Hello everyone,
 
 I am following the ActivitiesGuideSugar pdf from august 2010.
 
 
   * I've fetched tutorial source code for etext activity (chapter 5 :
 inheriting from Activity.activity)
   * I've modified, carefully i think, the svg picture with Inkscape and edited
 the xml structure
   * I installed the Sugar Sweets distribution
 
 But when I try to setup the activity from the emulator terminal, I get an 
 error
 saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.
 
 Have I forgotten an important step in my sugar environment ?

Yes, but I can't tell exactly which step is missing, without diagnosing
further.  Everybody else seems to have speculated and recommended
alternate methods.  ;-}

Your message subject says Ubuntu.  On Ubuntu, the bundlebuilder.py file
is provided by the python-sugar-toolkit package.

I don't know if Sweets changes this fundmental behaviour of Ubuntu, but
if it does I'm sure someone will say so.

Please check the list of packages installed, and if necessary use the
packaging system to install the python-sugar-toolkit package.

If the package is already installed, please check the files it installs:

dpkg --listfiles python-sugar-toolkit-0.88 | grep bundlebuilder

(you may need to change the version number)

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Cameron
On Mon, Dec 05, 2011 at 09:00:40PM +0100, laurent bernabe wrote:
 Unfortunately, I can't launch setup.py from the host system terminal
 = no module called sugar.activity
 
 And that error disappear if I launch setup.py from the sugar emulator

This means that the shell environment is different.  You may capture the
shell environment in each case and compare them ...

... in host system terminal

env | sort  /tmp/host

... in sugar emulator terminal

env | sort  /tmp/emulator

then compare

diff -u /tmp/host /tmp/emulator

It seems likely that the emulator environment has what you need.

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
dpkg --listfiles python-sugar-toolkit-0.90 | grep bundlebuilder
= /usr/share/pyshared/sugar/activity/bundlebuilder.py

I tried to print the command
env | sort  outputfile
on the sugar emulator, but I can't use the AltGr Key without the emulator
to validate the line and prevent me from going on.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Cameron
On Mon, Dec 05, 2011 at 11:32:02PM +0100, laurent bernabe wrote:
 I forgot to mention that the only way I got most of Pippy examples to
 work, was by installing Sweet distribution = with the standard
 emulator given in xubuntu packages, I did not manage. So maybe it is a
 bigger problem than setting the PYTHONPATH.

No, that's a different problem.  The Ubuntu packages for Pippy do not
include everything that the Sweets and activities.sugarlabs.org packages
for Pippy provide.  They are different packages of Pippy.

When you use the non-standard emulator in the Ubuntu packages, you are
not using the original released Pippy activity.

(I'm a maintainer of Pippy).

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread Aleksey Lim
On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
 Hello everyone,
 
 I am following the ActivitiesGuideSugar pdf from august 2010.
 
 
- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape and
edited the xml structure
- I installed the Sugar Sweets distribution
 
 But when I try to setup the activity from the emulator terminal, I get an
 error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.
 
 Have I forgotten an important step in my sugar environment ?

The downside of using Sweets Distribution (and Sweets) is that you are
getting all libraries enabled only being in Sugar session. If you are
not in Sugar, the most useful setup.py's command are duplicated in
sweets command, e.g.:

sweets dist_xo
sweets dist_source
sweets genpot

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Ok, Thanks. As James Simons advised me, I uninstalled Sweet distribution
from my linux system.

I would like to make the standard sugar emulator (this wich is given by
Canonical) to work with Pippy, and to work with activities setup.py

But it seems that many things are still to set ...

2011/12/5 Aleksey Lim alsr...@activitycentral.org

 On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
  Hello everyone,
 
  I am following the ActivitiesGuideSugar pdf from august 2010.
 
 
 - I've fetched tutorial source code for etext activity (chapter 5 :
 inheriting from Activity.activity)
 - I've modified, carefully i think, the svg picture with Inkscape and
 edited the xml structure
 - I installed the Sugar Sweets distribution
 
  But when I try to setup the activity from the emulator terminal, I get an
  error saying that there is no module called sugar.activity
  (the line in fault : from sugar.activity import bundlebuilder.
 
  Have I forgotten an important step in my sugar environment ?

 The downside of using Sweets Distribution (and Sweets) is that you are
 getting all libraries enabled only being in Sugar session. If you are
 not in Sugar, the most useful setup.py's command are duplicated in
 sweets command, e.g.:

sweets dist_xo
sweets dist_source
sweets genpot

 --
 Aleksey

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread Aleksey Lim
On Mon, Dec 05, 2011 at 10:49:21PM +, Aleksey Lim wrote:
 On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
  Hello everyone,
  
  I am following the ActivitiesGuideSugar pdf from august 2010.
  
  
 - I've fetched tutorial source code for etext activity (chapter 5 :
 inheriting from Activity.activity)
 - I've modified, carefully i think, the svg picture with Inkscape and
 edited the xml structure
 - I installed the Sugar Sweets distribution
  
  But when I try to setup the activity from the emulator terminal, I get an
  error saying that there is no module called sugar.activity
  (the line in fault : from sugar.activity import bundlebuilder.
  
  Have I forgotten an important step in my sugar environment ?
 
 The downside of using Sweets Distribution (and Sweets) is that you are
 getting all libraries enabled only being in Sugar session. If you are
 not in Sugar, the most useful setup.py's command are duplicated in
 sweets command, e.g.:
 
 sweets dist_xo
 sweets dist_source
 sweets genpot

The reasons to have this functionality in sweet command are:

* w/ Sweets, you have several versions of Sugar (and sugar-toolkit)
* this functionality is common for all sugars
* it will be easier to keep it in one place (not in every sugar version
  w/ possible chnages between versions and having a mess if you are
  switching between them)
* the sweets command is exactly about development process,
  it is more obvious to have this functionality in development related
  command rather in sugar itself

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha instead of
Xubuntu will solve my problems ?

2011/12/5 laurent bernabe laurent.bern...@gmail.com

 Ok, Thanks. As James Simons advised me, I uninstalled Sweet distribution
 from my linux system.

 I would like to make the standard sugar emulator (this wich is given by
 Canonical) to work with Pippy, and to work with activities setup.py

 But it seems that many things are still to set ...


 2011/12/5 Aleksey Lim alsr...@activitycentral.org

 On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
  Hello everyone,
 
  I am following the ActivitiesGuideSugar pdf from august 2010.
 
 
 - I've fetched tutorial source code for etext activity (chapter 5 :
 inheriting from Activity.activity)
 - I've modified, carefully i think, the svg picture with Inkscape and
 edited the xml structure
 - I installed the Sugar Sweets distribution
 
  But when I try to setup the activity from the emulator terminal, I get
 an
  error saying that there is no module called sugar.activity
  (the line in fault : from sugar.activity import bundlebuilder.
 
  Have I forgotten an important step in my sugar environment ?

 The downside of using Sweets Distribution (and Sweets) is that you are
 getting all libraries enabled only being in Sugar session. If you are
 not in Sugar, the most useful setup.py's command are duplicated in
 sweets command, e.g.:

sweets dist_xo
sweets dist_source
sweets genpot

 --
 Aleksey



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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Oh sorry Aleskey, but I did not understand many things in your crossed post
(the one you posted at 23:57 from a Paris meridian - UTC+1 ?)

2011/12/6 laurent bernabe laurent.bern...@gmail.com

 Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha instead of
 Xubuntu will solve my problems ?

 2011/12/5 laurent bernabe laurent.bern...@gmail.com

 Ok, Thanks. As James Simons advised me, I uninstalled Sweet distribution
 from my linux system.

 I would like to make the standard sugar emulator (this wich is given by
 Canonical) to work with Pippy, and to work with activities setup.py

 But it seems that many things are still to set ...


 2011/12/5 Aleksey Lim alsr...@activitycentral.org

 On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
  Hello everyone,
 
  I am following the ActivitiesGuideSugar pdf from august 2010.
 
 
 - I've fetched tutorial source code for etext activity (chapter 5 :
 inheriting from Activity.activity)
 - I've modified, carefully i think, the svg picture with Inkscape
 and
 edited the xml structure
 - I installed the Sugar Sweets distribution
 
  But when I try to setup the activity from the emulator terminal, I get
 an
  error saying that there is no module called sugar.activity
  (the line in fault : from sugar.activity import bundlebuilder.
 
  Have I forgotten an important step in my sugar environment ?

 The downside of using Sweets Distribution (and Sweets) is that you are
 getting all libraries enabled only being in Sugar session. If you are
 not in Sugar, the most useful setup.py's command are duplicated in
 sweets command, e.g.:

sweets dist_xo
sweets dist_source
sweets genpot

 --
 Aleksey




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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread Thomas C Gilliard

Ubuntu 11.04 based:
If you do not require a desktop plus sugar and do not need non free software
Try Trisquel-sugar-5.0
http://wiki.sugarlabs.org/go/Trisquel_On_A_Sugar_Toast

Boot CD and try it and if it is OK then install it to HD

or use this .img to dd write a persistent USB
http://wiki.sugarlabs.org/go/Trisquel_On_A_Sugar_Toast#dd_writable_2GB_USB_.img

Fedora 16 based
Otherwise use f16 netinstall CD and use custom
select gnome and sugar-desktop and install from net

Tom Gilliard
satellit_



On 12/05/2011 02:57 PM, Aleksey Lim wrote:

On Mon, Dec 05, 2011 at 10:49:21PM +, Aleksey Lim wrote:

On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:

Hello everyone,

I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape and
edited the xml structure
- I installed the Sugar Sweets distribution

But when I try to setup the activity from the emulator terminal, I get an
error saying that there is no module called sugar.activity
(the line in fault : from sugar.activity import bundlebuilder.

Have I forgotten an important step in my sugar environment ?

The downside of using Sweets Distribution (and Sweets) is that you are
getting all libraries enabled only being in Sugar session. If you are
not in Sugar, the most useful setup.py's command are duplicated in
sweets command, e.g.:

 sweets dist_xo
 sweets dist_source
 sweets genpot

The reasons to have this functionality in sweet command are:

* w/ Sweets, you have several versions of Sugar (and sugar-toolkit)
* this functionality is common for all sugars
* it will be easier to keep it in one place (not in every sugar version
   w/ possible chnages between versions and having a mess if you are
   switching between them)
* the sweets command is exactly about development process,
   it is more obvious to have this functionality in development related
   command rather in sugar itself


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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Cameron
On Mon, Dec 05, 2011 at 11:55:44PM +0100, laurent bernabe wrote:
 Ok, Thanks. As James Simons advised me, I uninstalled Sweet
 distribution from my linux system.

You could install it again.  Use what works for you.

 I would like to make the standard sugar emulator (this wich is given by
 Canonical) to work with Pippy, and to work with activities setup.py

But what Canonical ship with Ubuntu is not standard Sugar, because of
problems like Pippy examples.

I think you can develop with either Ubuntu, or with Ubuntu and Sweets,
you just have to understand why you are seeing different results.

I like Aleksey's recommendation to use sweets dist_xo.

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Simmons
Laurent,

My advice was based on my experience with Fedora.  Based on what you're
seeing it would make sense to uninstall Canonical's Sugar (since it seems
to have the same issue with not having the sugar libraries in the
PYTHONPATH that Sweets does) and give Sweets another try.  It sounds like
with Sweets you don't need to use sugar.py in your Activity.  You might
still need to provide one for your XO bundle.  Maybe Aleksey can clear that
up.

You don't really need these libraries available outside of Sugar for
development, other than when running setup.py.  If using the sweets command
instead of setup.py gives the same result then your problems running my
examples should be solved.

Aleksey has a better knowledge of how Sugar runs under the hood, so his
advice will be better than mine.

Good luck,

James Simmons


On Mon, Dec 5, 2011 at 4:55 PM, laurent bernabe
laurent.bern...@gmail.comwrote:

 Ok, Thanks. As James Simons advised me, I uninstalled Sweet distribution
 from my linux system.

 I would like to make the standard sugar emulator (this wich is given by
 Canonical) to work with Pippy, and to work with activities setup.py

 But it seems that many things are still to set ...


 2011/12/5 Aleksey Lim alsr...@activitycentral.org

 On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:
  Hello everyone,
 
  I am following the ActivitiesGuideSugar pdf from august 2010.
 
 
 - I've fetched tutorial source code for etext activity (chapter 5 :
 inheriting from Activity.activity)
 - I've modified, carefully i think, the svg picture with Inkscape and
 edited the xml structure
 - I installed the Sugar Sweets distribution
 
  But when I try to setup the activity from the emulator terminal, I get
 an
  error saying that there is no module called sugar.activity
  (the line in fault : from sugar.activity import bundlebuilder.
 
  Have I forgotten an important step in my sugar environment ?

 The downside of using Sweets Distribution (and Sweets) is that you are
 getting all libraries enabled only being in Sugar session. If you are
 not in Sugar, the most useful setup.py's command are duplicated in
 sweets command, e.g.:

sweets dist_xo
sweets dist_source
sweets genpot

 --
 Aleksey



 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Unfortunately, I will need some of the non-free packages (above all for
music and proprietary drivers of my graphic card).

So, maybe I should avoid Trisquel

2011/12/6 Thomas C Gilliard satel...@bendbroadband.com

 Ubuntu 11.04 based:
 If you do not require a desktop plus sugar and do not need non free
 software
 Try Trisquel-sugar-5.0
 http://wiki.sugarlabs.org/go/**Trisquel_On_A_Sugar_Toasthttp://wiki.sugarlabs.org/go/Trisquel_On_A_Sugar_Toast

 Boot CD and try it and if it is OK then install it to HD

 or use this .img to dd write a persistent USB
 http://wiki.sugarlabs.org/go/**Trisquel_On_A_Sugar_Toast#dd_**
 writable_2GB_USB_.imghttp://wiki.sugarlabs.org/go/Trisquel_On_A_Sugar_Toast#dd_writable_2GB_USB_.img

 Fedora 16 based
 Otherwise use f16 netinstall CD and use custom
 select gnome and sugar-desktop and install from net

 Tom Gilliard
 satellit_




 On 12/05/2011 02:57 PM, Aleksey Lim wrote:

 On Mon, Dec 05, 2011 at 10:49:21PM +, Aleksey Lim wrote:

 On Mon, Dec 05, 2011 at 06:28:15PM +0100, laurent bernabe wrote:

 Hello everyone,

 I am following the ActivitiesGuideSugar pdf from august 2010.


- I've fetched tutorial source code for etext activity (chapter 5 :
inheriting from Activity.activity)
- I've modified, carefully i think, the svg picture with Inkscape and
edited the xml structure
- I installed the Sugar Sweets distribution

 But when I try to setup the activity from the emulator terminal, I get
 an
 error saying that there is no module called sugar.activity
 (the line in fault : from sugar.activity import bundlebuilder.

 Have I forgotten an important step in my sugar environment ?

 The downside of using Sweets Distribution (and Sweets) is that you are
 getting all libraries enabled only being in Sugar session. If you are
 not in Sugar, the most useful setup.py's command are duplicated in
 sweets command, e.g.:

 sweets dist_xo
 sweets dist_source
 sweets genpot

 The reasons to have this functionality in sweet command are:

 * w/ Sweets, you have several versions of Sugar (and sugar-toolkit)
 * this functionality is common for all sugars
 * it will be easier to keep it in one place (not in every sugar version
   w/ possible chnages between versions and having a mess if you are
   switching between them)
 * the sweets command is exactly about development process,
   it is more obvious to have this functionality in development related
   command rather in sugar itself


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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
I don't have any XO bundle, so I can give all my attention to the
integration of Sugar on my laptop.

So sweet is the best solution, I'm going to put it back.
So that the only problem will remain the launchment of setup.py install.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Cameron
On Tue, Dec 06, 2011 at 12:19:20AM +0100, laurent bernabe wrote:
 I don't have any XO bundle, so I can give all my attention to the integration
 of Sugar on my laptop.

An .xo bundle is created by dist_xo option of setup.py.

You can do this (creating an .xo bundle) using python setup.py dist_xo
while inside a Sugar emulator, or if Sugar is installed natively.

You can do this (creating an .xo bundle) using sweets dist_xo while
outside the emulator.

 So sweet is the best solution, I'm going to put it back.
 So that the only problem will remain the launchment of setup.py install.

I don't recall a problem with python setup.py install, sorry.  If you
still face the problem, give details.

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread Aleksey Lim
On Tue, Dec 06, 2011 at 12:02:02AM +0100, laurent bernabe wrote:
 Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha instead of
 Xubuntu will solve my problems ?

Well, the whole purpose for Sweets is to avoid situation when people
need to install the whole GNU/Linux distribution only to try/use/code
Sugar. Becuase it is ridiculous overkill:

* to change your favorite distro only for Sugar purpose,
* Sugar Shell is only 5, mostly, Python based projects,
* mostly, it is possible to handle a couple of non-Python based rependencies
  in your current distro.

The sumary :)

* do not switch distro to use sugar,
* let's improve Sugar (maybe w/ Sweets, maybe w/ native packages in your
  favorite distro)

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread Alan Jhonn Aguiar Schwyn

Hi,
I have an ACER notebook with Ubuntu 11.10
I install the sugar-emulator and works good..
For install an activity, like an XO from the Journal or with the Terminal 
Activity.
Out of the emulator, to install an activity: 
put the .xo in the activities folder (/home/user/Activities/ and change the 
.xo for .zipand un-compress it..When run the emulator, the activity is showed 
in the list view..
In the ubuntu terminal I have all sugar enviroment variables and functions:
sugarsugar-install-bundlesugar-emulator.
I try the Peppy activity (version 34) and works all except the camera...
I try the Record (version 93) and the camera works correct...
I try my FollowMe plugin and FollowMe activity (that uses Pygame instead 
GST)and work...
I not sure what is your problem..
Regards
Alan

 Date: Tue, 6 Dec 2011 10:33:13 +1100
 From: qu...@laptop.org
 To: sugar-devel@lists.sugarlabs.org
 Subject: Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an 
 activity (with the setup.py)
 
 On Tue, Dec 06, 2011 at 12:19:20AM +0100, laurent bernabe wrote:
  I don't have any XO bundle, so I can give all my attention to the 
  integration
  of Sugar on my laptop.
 
 An .xo bundle is created by dist_xo option of setup.py.
 
 You can do this (creating an .xo bundle) using python setup.py dist_xo
 while inside a Sugar emulator, or if Sugar is installed natively.
 
 You can do this (creating an .xo bundle) using sweets dist_xo while
 outside the emulator.
 
  So sweet is the best solution, I'm going to put it back.
  So that the only problem will remain the launchment of setup.py install.
 
 I don't recall a problem with python setup.py install, sorry.  If you
 still face the problem, give details.
 
 -- 
 James Cameron
 http://quozl.linux.org.au/
 ___
 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] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread laurent bernabe
Ok, that answer make really sense to me : particularly the distro changing
avoidment ^^
I'll make all tests you want me too, if it can help to find what is wrong.
(I've saved my system in a ghost image on last morning ^^)

2011/12/6 Aleksey Lim alsr...@activitycentral.org

 On Tue, Dec 06, 2011 at 12:02:02AM +0100, laurent bernabe wrote:
  Do you think an installation of Trisquel-Gnome-Sugar5.0-Alpha instead of
  Xubuntu will solve my problems ?

 Well, the whole purpose for Sweets is to avoid situation when people
 need to install the whole GNU/Linux distribution only to try/use/code
 Sugar. Becuase it is ridiculous overkill:

 * to change your favorite distro only for Sugar purpose,
 * Sugar Shell is only 5, mostly, Python based projects,
 * mostly, it is possible to handle a couple of non-Python based
 rependencies
  in your current distro.

 The sumary :)

 * do not switch distro to use sugar,
 * let's improve Sugar (maybe w/ Sweets, maybe w/ native packages in your
  favorite distro)

 --
 Aleksey

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread James Cameron
On Mon, Dec 05, 2011 at 11:52:44PM +, Alan Jhonn Aguiar Schwyn wrote:
 I try the Peppy activity (version 34) and works all except the
 camera...

It will never work unless someone tells me what it says is wrong!

It works fine for me.  I've tested version 40 and 43.  Perhaps you
should try the latest version instead of version 34?

 I try my FollowMe plugin and FollowMe activity (that uses Pygame instead
 GST)
 and work...

Actually, camera example in Pippy uses pygame and gst.

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


Re: [Sugar-devel] [Sugar emulator][Ubuntu 11.04] I can't install an activity (with the setup.py)

2011-12-05 Thread Alan Jhonn Aguiar Schwyn

 It will never work unless someone tells me what it says is wrong!
 
 It works fine for me.  I've tested version 40 and 43.  Perhaps you
 should try the latest version instead of version 34?
Sorry, I'm wrong.. The Peppy version was 43...
 Actually, camera example in Pippy uses pygame and gst.

Yes.. but Pygame it's only to show.. GST make the capture..
My activity FollowMe make all with Pygame...
The problem is with the GST capture...
I try to see the capture on /tmp/.. and it's was black...
Not is a permissions problem, the file is created, maybe the filters..

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