Sugar on a Stick - and OLPCsound

View: New views
6 Messages — Rating Filter:   Alert me  

Sugar on a Stick - and OLPCsound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've been enjoying learning and working with Sugar on a Stick, which is
Sugar (the OLPC's) software loaded onto a 1gb USB drive. Booting from this
"stick" transforms any Mac, Linux or PC effectively into an OLPC (running
Sugar). Makes a handy development system.

At any rate, my new OurMusic activity runs fine on the OLPC, but aborts on
SoaS (Sugar on a Stick). I then ran Victor's Waves activity, which exhibits
the same behavior as did mine. Interestingly, the TamTam activities run fine
on both systems. Also, the version of Csound, 5.08.91 is identical.
(Probably irrelevent info: the version of libsndfile for SoaS is 1.0.17;
however, between Sugar v 8.1 and 8.2.1 I note that the versions changed from
1.0.17-2.fc7 to 1.0.17-3.fc9 (Fedora core changing from 7 to 9).)

I fear some incompatibility involving libsndfile and the Csound API, and
perhaps csndsugui? At any rate, those of us using these tools with SoaS, are
presently dead in the water.

Below is the complete log generated by Waves.activity.

Art Hunkins



/usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the
sha module is deprecated; use the hashlib module instead

import sha

Traceback (most recent call last):

File "/usr/bin/sugar-activity", line 21, in <module>

main.main()

File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line 105, in
main

module = __import__(module_name)

File "/home/liveuser/Activities/Waves.activity/waves.py", line 1, in
<module>

import csndsugui

File "/home/liveuser/Activities/Waves.activity/csndsugui.py", line 36, in
<module>

import csnd

File "/usr/lib/python2.6/site-packages/csnd.py", line 7, in <module>

import _csnd

ImportError: /usr/lib/libcsnd.so.5.1: undefined symbol: csoundGetInputBuffer


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: Sugar on a Stick - and OLPCsound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Victor, Brian and Mike G. -

I'd like to ask again regarding this SoaS log, and what it suggests about
the crash of my OurMusic activity.

The version of Csound is 5.08.91, libsndfile is 1.0.17. And as you can see
Python 2.6 and libcsnd.so.5.1 are referenced in the log.

Is the difficulty incompatible versions of Python and/or
libsndfile/libcsnd.so.5.1?

A member of the sugar-devel list suggested that the problem might well be
solved with Csound5.10 (Fedora 11) which will be available through yum
update later this week. (It's apparently ready to go.) What do you imagine?

The log:

/usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the
sha module is deprecated; use the hashlib module instead

import sha

Traceback (most recent call last):

File "/usr/bin/sugar-activity", line 21, in <module>

main.main()

File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line 105, in
main

module = __import__(module_name)

File "/home/liveuser/Activities/OurMusic.activity/ourmusic.py", line 41, in
<module>

import csndsugui

File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py", line 36, in
<module>

import csnd

File "/usr/lib/python2.6/site-packages/csnd.py", line 7, in <module>

import _csnd

ImportError: /usr/lib/libcsnd.so.5.1: undefined symbol: csoundGetInputBuffer



Thanks -

Art Hunkins


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound

by Victor Lazzarini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The message is strange, but it does not say there is a Python
version mismatch. However, having said that, the 5.08.91
rpm was built with 2.5 (unless what you have there is another
build that somehow uses 2.6).

What the message says is that the library module Python
tried to load does not have one of the API functions. The
reason for this I don't know.

Victor

----- Original Message -----
From: Art Hunkins <abhunkin@...>
Date: Monday, June 29, 2009 10:19 pm
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
To: csound-devel@...

> Victor, Brian and Mike G. -
>
> I'd like to ask again regarding this SoaS log, and what it
> suggests about
> the crash of my OurMusic activity.
>
> The version of Csound is 5.08.91, libsndfile is 1.0.17. And as
> you can see
> Python 2.6 and libcsnd.so.5.1 are referenced in the log.
>
> Is the difficulty incompatible versions of Python and/or
> libsndfile/libcsnd.so.5.1?
>
> A member of the sugar-devel list suggested that the problem
> might well be
> solved with Csound5.10 (Fedora 11) which will be available
> through yum
> update later this week. (It's apparently ready to go.) What do
> you imagine?
>
> The log:
>
> /usr/lib/python2.6/site-packages/sugar/util.py:25:
> DeprecationWarning: the
> sha module is deprecated; use the hashlib module instead
>
> import sha
>
> Traceback (most recent call last):
>
> File "/usr/bin/sugar-activity", line 21, in <module>
>
> main.main()
>
> File "/usr/lib/python2.6/site-packages/sugar/activity/main.py",
> line 105, in
> main
>
> module = __import__(module_name)
>
> File "/home/liveuser/Activities/OurMusic.activity/ourmusic.py",
> line 41, in
> <module>
>
> import csndsugui
>
> File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py",
> line 36, in
> <module>
>
> import csnd
>
> File "/usr/lib/python2.6/site-packages/csnd.py", line 7, in
> <module>
> import _csnd
>
> ImportError: /usr/lib/libcsnd.so.5.1: undefined symbol:
> csoundGetInputBuffer
>
>
> Thanks -
>
> Art Hunkins
>
>
> -----------------------------------------------------------------
> -------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I just noticed that the current OLPC build includes Python 2.5, whereas SoaS includes Python 2.6
 
Csound 5.08.91 is currently in both. Wouldn't this explain why 5.08.91 doesn't work on SoaS? And why 5.10 should?
 
Art Hunkins
----- Original Message -----
Sent: Monday, June 29, 2009 5:38 PM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound

The message is strange, but it does not say there is a Python
version mismatch. However, having said that, the 5.08.91
rpm was built with 2.5 (unless what you have there is another
build that somehow uses 2.6).

What the message says is that the library module Python
tried to load does not have one of the API functions. The
reason for this I don't know.

Victor

----- Original Message -----
From: Art Hunkins <abhunkin@...>
Date: Monday, June 29, 2009 10:19 pm
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
To: csound-devel@...

> Victor, Brian and Mike G. -
>
> I'd like to ask again regarding this SoaS log, and what it
> suggests about
> the crash of my OurMusic activity.
>
> The version of Csound is 5.08.91, libsndfile is 1.0.17. And as
> you can see
> Python 2.6 and libcsnd.so.5.1 are referenced in the log.
>
> Is the difficulty incompatible versions of Python and/or
> libsndfile/libcsnd.so.5.1?
>
> A member of the sugar-devel list suggested that the problem
> might well be
> solved with Csound5.10 (Fedora 11) which will be available
> through yum
> update later this week. (It's apparently ready to go.) What do
> you imagine?
>
> The log:
>
> /usr/lib/python2.6/site-packages/sugar/util.py:25:
> DeprecationWarning: the
> sha module is deprecated; use the hashlib module instead
>
> import sha
>
> Traceback (most recent call last):
>
> File "/usr/bin/sugar-activity", line 21, in <module>
>
> main.main()
>
> File "/usr/lib/python2.6/site-packages/sugar/activity/main.py",
> line 105, in
> main
>
> module = __import__(module_name)
>
> File "/home/liveuser/Activities/OurMusic.activity/ourmusic.py",
> line 41, in
> <module>
>
> import csndsugui
>
> File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py",
> line 36, in
> <module>
>
> import csnd
>
> File "/usr/lib/python2.6/site-packages/csnd.py", line 7, in
> <module>
> import _csnd
>
> ImportError: /usr/lib/libcsnd.so.5.1: undefined symbol:
> csoundGetInputBuffer
>
>
> Thanks -
>
> Art Hunkins
>
>
> -----------------------------------------------------------------
> -------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound

by Victor Lazzarini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Because the 5.10 rpm has a python2.6 dependency. But that might
be the case for 5.08 too (I am not sure).
----- Original Message -----
Sent: Tuesday, June 30, 2009 2:22 AM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound

I just noticed that the current OLPC build includes Python 2.5, whereas SoaS includes Python 2.6
 
Csound 5.08.91 is currently in both. Wouldn't this explain why 5.08.91 doesn't work on SoaS? And why 5.10 should?
 
Art Hunkins
----- Original Message -----
Sent: Monday, June 29, 2009 5:38 PM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound

The message is strange, but it does not say there is a Python
version mismatch. However, having said that, the 5.08.91
rpm was built with 2.5 (unless what you have there is another
build that somehow uses 2.6).

What the message says is that the library module Python
tried to load does not have one of the API functions. The
reason for this I don't know.

Victor

----- Original Message -----
From: Art Hunkins <abhunkin@...>
Date: Monday, June 29, 2009 10:19 pm
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
To: csound-devel@...

> Victor, Brian and Mike G. -
>
> I'd like to ask again regarding this SoaS log, and what it
> suggests about
> the crash of my OurMusic activity.
>
> The version of Csound is 5.08.91, libsndfile is 1.0.17. And as
> you can see
> Python 2.6 and libcsnd.so.5.1 are referenced in the log.
>
> Is the difficulty incompatible versions of Python and/or
> libsndfile/libcsnd.so.5.1?
>
> A member of the sugar-devel list suggested that the problem
> might well be
> solved with Csound5.10 (Fedora 11) which will be available
> through yum
> update later this week. (It's apparently ready to go.) What do
> you imagine?
>
> The log:
>
> /usr/lib/python2.6/site-packages/sugar/util.py:25:
> DeprecationWarning: the
> sha module is deprecated; use the hashlib module instead
>
> import sha
>
> Traceback (most recent call last):
>
> File "/usr/bin/sugar-activity", line 21, in <module>
>
> main.main()
>
> File "/usr/lib/python2.6/site-packages/sugar/activity/main.py",
> line 105, in
> main
>
> module = __import__(module_name)
>
> File "/home/liveuser/Activities/OurMusic.activity/ourmusic.py",
> line 41, in
> <module>
>
> import csndsugui
>
> File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py",
> line 36, in
> <module>
>
> import csnd
>
> File "/usr/lib/python2.6/site-packages/csnd.py", line 7, in
> <module>
> import _csnd
>
> ImportError: /usr/lib/libcsnd.so.5.1: undefined symbol:
> csoundGetInputBuffer
>
>
> Thanks -
>
> Art Hunkins
>
>
> -----------------------------------------------------------------
> -------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Here's the *next* chapter in the saga. Please note that this is not the *Windows* installation saga; it's the *Linux/Sugar* installation saga.
 
In our last episode, we noted that Csound5.08 was (apparently?) incompatible with python2.6. At least this seemed a plausible explanation from the error log we saw.
 
So, now Csound5.10 is available on Fedora(11) for download to SoaS.
 
First, I try update csound; "can't find any csound".
Second, install csound; it tries, but then says, "can't because it interferes with olpcsound" (OK, different name!)
Third, erase olpcsound; good
Fourth, install csound; good
 
Then I run my Activity; it now crashes with the similar, but not exact, error log below.
 
I thought perhaps I'd better start from scratch and did (reformat USB drive, etc). Thought probably the new SoaS iso incorporated Csound5.10. But no, I needed to essentially repeat the above steps, and ended with the same crash.
 
The log: (any new ideas please?)
 

/usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the sha module is deprecated; use the hashlib module instead

import sha

Traceback (most recent call last):

File "/usr/bin/sugar-activity", line 21, in <module>

main.main()

File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line 105, in main

module = __import__(module_name)

File "/home/liveuser/Activities/OurMusic.activity/ourmusic.py", line 41, in <module>

import csndsugui

File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py", line 36, in <module>

import csnd

ImportError: No module named csnd

 

Art Hunkins

----- Original Message -----
Sent: Wednesday, July 01, 2009 1:36 PM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound

Because the 5.10 rpm has a python2.6 dependency. But that might
be the case for 5.08 too (I am not sure).
----- Original Message -----
Sent: Tuesday, June 30, 2009 2:22 AM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound

I just noticed that the current OLPC build includes Python 2.5, whereas SoaS includes Python 2.6
 
Csound 5.08.91 is currently in both. Wouldn't this explain why 5.08.91 doesn't work on SoaS? And why 5.10 should?
 
Art Hunkins
----- Original Message -----
Sent: Monday, June 29, 2009 5:38 PM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound

The message is strange, but it does not say there is a Python
version mismatch. However, having said that, the 5.08.91
rpm was built with 2.5 (unless what you have there is another
build that somehow uses 2.6).

What the message says is that the library module Python
tried to load does not have one of the API functions. The
reason for this I don't know.

Victor

----- Original Message -----
From: Art Hunkins <abhunkin@...>
Date: Monday, June 29, 2009 10:19 pm
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
To: csound-devel@...

> Victor, Brian and Mike G. -
>
> I'd like to ask again regarding this SoaS log, and what it
> suggests about
> the crash of my OurMusic activity.
>
> The version of Csound is 5.08.91, libsndfile is 1.0.17. And as
> you can see
> Python 2.6 and libcsnd.so.5.1 are referenced in the log.
>
> Is the difficulty incompatible versions of Python and/or
> libsndfile/libcsnd.so.5.1?
>
> A member of the sugar-devel list suggested that the problem
> might well be
> solved with Csound5.10 (Fedora 11) which will be available
> through yum
> update later this week. (It's apparently ready to go.) What do
> you imagine?
>
> The log:
>
> /usr/lib/python2.6/site-packages/sugar/util.py:25:
> DeprecationWarning: the
> sha module is deprecated; use the hashlib module instead
>
> import sha
>
> Traceback (most recent call last):
>
> File "/usr/bin/sugar-activity", line 21, in <module>
>
> main.main()
>
> File "/usr/lib/python2.6/site-packages/sugar/activity/main.py",
> line 105, in
> main
>
> module = __import__(module_name)
>
> File "/home/liveuser/Activities/OurMusic.activity/ourmusic.py",
> line 41, in
> <module>
>
> import csndsugui
>
> File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py",
> line 36, in
> <module>
>
> import csnd
>
> File "/usr/lib/python2.6/site-packages/csnd.py", line 7, in
> <module>
> import _csnd
>
> ImportError: /usr/lib/libcsnd.so.5.1: undefined symbol:
> csoundGetInputBuffer
>
>
> Thanks -
>
> Art Hunkins
>
>
> -----------------------------------------------------------------
> -------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------


_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------

_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel