Re: Sugar on a Stick - and OLPCsound/Csound

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

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

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Victor and Mike G. (especially) -

You're familiar with my problems getting Csound5.10 working on SoaS.

Aleksey, one of the Sugar developers, sent me the "solution" (below) to this
problem (a Scons issue apparently).

I don't know what to do with it, and look to you for either implementation
or explanation.

I'm really interested to get 5.10 working with Sugar.

Art Hunkins

----- Original Message -----
From: "Aleksey Lim" <alsroot@...>
To: "Art Hunkins" <abhunkin@...>
Cc: <pbrobinson@...>; <csound@...>;
<sugar-devel@...>
Sent: Monday, July 06, 2009 3:37 AM
Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound


> looks like its a SConstruct issue
> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>
> this patch fixed "import csnd" in my case
> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>
> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>> As mentioned by a member of the sugar-devel list, it seems that a csound
>> (5.10) install (yum install csound), does not install several crucial
>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>> libcsound).
>>
>> Having to erase olpcsound before installing csound deletes these files
>> and they don't get restored/reinstalled.
>>
>> So, to the procedures described below, before erasing olpcsound, I saved
>> the above-listed files (there were 5 or 6), and once csound was
>> installed, added them back where they came from.
>>
>> This crude procedure didn't work, and the following error log is quite
>> like the one I started with:
>>
>>
>> /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
>>
>>
>> I'd appreciate any suggestions as to how to get this all working. Thanks.
>>
>> Art Hunkins
>>   ----- Original Message -----
>>   From: Art Hunkins
>>   To: pbrobinson@...
>>   Cc: csound@... ; sugar-devel@...
>>   Sent: Friday, July 03, 2009 7:57 PM
>>   Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>
>>
>>   I've just noted that the /usr/lib/python2.6/site-packages folder does
>> not include csnd.py. That folder also contains many fewer files that the
>> corresponding one in python2.5.
>>
>>   As a matter of fact, python2.5 seems about a third the size of 2.6. Is
>> all this correct?
>>
>>   Art Hunkins
>>     ----- Original Message -----
>>     From: Art Hunkins
>>     To: pbrobinson@...
>>     Sent: Friday, July 03, 2009 6:13 PM
>>     Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>
>>
>>     Hello, Peter,
>>
>>     Do you know what may be happening here? (Please see error log below.)
>>
>>     I've no idea why the module referenced (csd.py) is not found. Please
>> also compare the log at the very bottom of this mail; this latter log was
>> generated when running Csound*5.08*, also with python2.6.
>>
>>     Thanks for any insights.
>>
>>     Art Hunkins
>>
>>     ----- Original Message -----
>>     From: Art Hunkins
>>     To: Developer discussions
>>     Cc: csound@...
>>     Sent: Friday, July 03, 2009 5:36 PM
>>     Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>
>>
>>     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 -----
>>       From: victor
>>       To: Art Hunkins ; Developer discussions
>>       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 -----
>>         From: Art Hunkins
>>         To: Developer discussions
>>         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 -----
>>           From: Victor.Lazzarini@...
>>           To: Developer discussions
>>           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
>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel@...
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> Aleksey


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

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

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Peter,

I don't know whether Aleksey's post to the sugar-devel list (regarding a
Scons fix) helped understand why Csound5.10 isn't working in SoaS.
(Unfortunately my technical level doesn't reach anywhere near - to
understand Aleksey.)

Regarding testing, however: I'd be happy to test anything, or send you the
.xo I'm working with (OurMusic.activity). Or there is Victor Lazzarini's
csndsugui (git) package, which includes 4 activities - particularly his
Waves.activity is a great test.

Just run the activity and see whether a screen comes up, nothing more.
Problem solved if it does.

I suspect there are two basic issues:
1) Csound5.10 was designed to interface with python2.6; csound5.08 and
earlier, with python2.5
2) The name change from olpcsound to csound

Thanks for all your work in updating Csound for the SoaS project.

Art Hunkins

----- Original Message -----
From: "Peter Robinson" <pbrobinson@...>
To: "Art Hunkins" <abhunkin@...>
Sent: Monday, July 06, 2009 4:57 AM
Subject: Re: Sugar on a Stick - and OLPCsound/Csound


I think it might be a combination between the Fedora package and the
way upstream deals with python (and probably the Fedora move to python
2.6). When I updated the package I asked on a number of olpc related
mailing lists for people to test it and only got a couple of
responses, all positive. I'm going to have a look at some of the
patches that were ported from 5.03 to 5.10 later this week to see if
there was anything missed but there is only so much testing i can do
myself if people ignore requests.

Peter

On Sun, Jul 5, 2009 at 10:49 PM, Art Hunkins<abhunkin@...> wrote:

> As mentioned by a member of the sugar-devel list, it seems that a csound
> (5.10) install (yum install csound), does not install several crucial
> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
> libcsound).
>
> Having to erase olpcsound before installing csound deletes these files and
> they don't get restored/reinstalled.
>
> So, to the procedures described below, before erasing olpcsound, I saved
> the
> above-listed files (there were 5 or 6), and once csound was installed,
> added
> them back where they came from.
>
> This crude procedure didn't work, and the following error log is quite
> like
> the one I started with:
>
>
>
> /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
>
>
> I'd appreciate any suggestions as to how to get this all working. Thanks.
>
> Art Hunkins
>
> ----- Original Message -----
> From: Art Hunkins
> To: pbrobinson@...
> Cc: csound@... ; sugar-devel@...
> Sent: Friday, July 03, 2009 7:57 PM
> Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
> I've just noted that the /usr/lib/python2.6/site-packages folder does not
> include csnd.py. That folder also contains many fewer files that the
> corresponding one in python2.5.
>
> As a matter of fact, python2.5 seems about a third the size of 2.6. Is all
> this correct?
>
> Art Hunkins
>
> ----- Original Message -----
> From: Art Hunkins
> To: pbrobinson@...
> Sent: Friday, July 03, 2009 6:13 PM
> Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
> Hello, Peter,
>
> Do you know what may be happening here? (Please see error log below.)
>
> I've no idea why the module referenced (csd.py) is not found. Please also
> compare the log at the very bottom of this mail; this latter log was
> generated when running Csound*5.08*, also with python2.6.
>
> Thanks for any insights.
>
> Art Hunkins
>
> ----- Original Message -----
> From: Art Hunkins
> To: Developer discussions
> Cc: csound@...
> Sent: Friday, July 03, 2009 5:36 PM
> Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
> 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 -----
> From: victor
> To: Art Hunkins ; Developer discussions
> 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 -----
> From: Art Hunkins
> To: Developer discussions
> 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 -----
> From: Victor.Lazzarini@...
> To: Developer discussions
> 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
>


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound/Csound

by David Worrall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey that's pretty interesting - and basic!
I wonder if  the python +=  operator is causing other SCons issues.

Perhaps we should try replacing all +='s ans see what other problems  
get cleared up.

D.

On 07/07/2009, at 10:45 AM, Art Hunkins wrote:

> Victor and Mike G. (especially) -
>
> You're familiar with my problems getting Csound5.10 working on SoaS.
>
> Aleksey, one of the Sugar developers, sent me the "solution" (below)  
> to this
> problem (a Scons issue apparently).
>
> I don't know what to do with it, and look to you for either  
> implementation
> or explanation.
>
> I'm really interested to get 5.10 working with Sugar.
>
> Art Hunkins
>
> ----- Original Message -----
> From: "Aleksey Lim" <alsroot@...>
> To: "Art Hunkins" <abhunkin@...>
> Cc: <pbrobinson@...>; <csound@...>;
> <sugar-devel@...>
> Sent: Monday, July 06, 2009 3:37 AM
> Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound
>
>
>> looks like its a SConstruct issue
>> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>>
>> this patch fixed "import csnd" in my case
>> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>>
>> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>>> As mentioned by a member of the sugar-devel list, it seems that a  
>>> csound
>>> (5.10) install (yum install csound), does not install several  
>>> crucial
>>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>>> libcsound).
>>>
>>> Having to erase olpcsound before installing csound deletes these  
>>> files
>>> and they don't get restored/reinstalled.
>>>
>>> So, to the procedures described below, before erasing olpcsound, I  
>>> saved
>>> the above-listed files (there were 5 or 6), and once csound was
>>> installed, added them back where they came from.
>>>
>>> This crude procedure didn't work, and the following error log is  
>>> quite
>>> like the one I started with:
>>>
>>>
>>> /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
>>>
>>>
>>> I'd appreciate any suggestions as to how to get this all working.  
>>> Thanks.
>>>
>>> Art Hunkins
>>>  ----- Original Message -----
>>>  From: Art Hunkins
>>>  To: pbrobinson@...
>>>  Cc: csound@... ; sugar-devel@...
>>>  Sent: Friday, July 03, 2009 7:57 PM
>>>  Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>
>>>
>>>  I've just noted that the /usr/lib/python2.6/site-packages folder  
>>> does
>>> not include csnd.py. That folder also contains many fewer files  
>>> that the
>>> corresponding one in python2.5.
>>>
>>>  As a matter of fact, python2.5 seems about a third the size of  
>>> 2.6. Is
>>> all this correct?
>>>
>>>  Art Hunkins
>>>    ----- Original Message -----
>>>    From: Art Hunkins
>>>    To: pbrobinson@...
>>>    Sent: Friday, July 03, 2009 6:13 PM
>>>    Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>
>>>
>>>    Hello, Peter,
>>>
>>>    Do you know what may be happening here? (Please see error log  
>>> below.)
>>>
>>>    I've no idea why the module referenced (csd.py) is not found.  
>>> Please
>>> also compare the log at the very bottom of this mail; this latter  
>>> log was
>>> generated when running Csound*5.08*, also with python2.6.
>>>
>>>    Thanks for any insights.
>>>
>>>    Art Hunkins
>>>
>>>    ----- Original Message -----
>>>    From: Art Hunkins
>>>    To: Developer discussions
>>>    Cc: csound@...
>>>    Sent: Friday, July 03, 2009 5:36 PM
>>>    Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>
>>>
>>>    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 -----
>>>      From: victor
>>>      To: Art Hunkins ; Developer discussions
>>>      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 -----
>>>        From: Art Hunkins
>>>        To: Developer discussions
>>>        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 -----
>>>          From: Victor.Lazzarini@...
>>>          To: Developer discussions
>>>          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
>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel@...
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>> --
>> Aleksey
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited  
> time,
> vendors submitting new applications to BlackBerry App World(TM) will  
> have
> the opportunity to enter the BlackBerry Developer Challenge. See  
> full prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel

________________________________________________
David Worrall.
- Experimental Polymedia:  www.avatar.com.au
- Education for Financial Independence: www.mindthemarkets.com.au
Australian research affiliations:
- Capital Markets Cooperative Research Centre: www.cmcrc.com
- Sonic Communications Research Group: creative.canberra.edu.au/scrg
- MARCS Auditory Laboratories: marcs.uws.edu.au





------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound/Csound

by Michael Gogins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

He says SConstruct has a bug, which he has patched. I think he's
probably right, and I will patch SConstruct accordingly.

The bug makes the installation not know the right name (soname) for
the csnd extension module shared library.

Regards,
Mike

On 7/6/09, Art Hunkins <abhunkin@...> wrote:

> Victor and Mike G. (especially) -
>
> You're familiar with my problems getting Csound5.10 working on SoaS.
>
> Aleksey, one of the Sugar developers, sent me the "solution" (below) to this
> problem (a Scons issue apparently).
>
> I don't know what to do with it, and look to you for either implementation
> or explanation.
>
> I'm really interested to get 5.10 working with Sugar.
>
> Art Hunkins
>
> ----- Original Message -----
> From: "Aleksey Lim" <alsroot@...>
> To: "Art Hunkins" <abhunkin@...>
> Cc: <pbrobinson@...>; <csound@...>;
> <sugar-devel@...>
> Sent: Monday, July 06, 2009 3:37 AM
> Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound
>
>
>> looks like its a SConstruct issue
>> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>>
>> this patch fixed "import csnd" in my case
>> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>>
>> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>>> As mentioned by a member of the sugar-devel list, it seems that a csound
>>> (5.10) install (yum install csound), does not install several crucial
>>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>>> libcsound).
>>>
>>> Having to erase olpcsound before installing csound deletes these files
>>> and they don't get restored/reinstalled.
>>>
>>> So, to the procedures described below, before erasing olpcsound, I saved
>>> the above-listed files (there were 5 or 6), and once csound was
>>> installed, added them back where they came from.
>>>
>>> This crude procedure didn't work, and the following error log is quite
>>> like the one I started with:
>>>
>>>
>>> /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
>>>
>>>
>>> I'd appreciate any suggestions as to how to get this all working. Thanks.
>>>
>>> Art Hunkins
>>>   ----- Original Message -----
>>>   From: Art Hunkins
>>>   To: pbrobinson@...
>>>   Cc: csound@... ; sugar-devel@...
>>>   Sent: Friday, July 03, 2009 7:57 PM
>>>   Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>
>>>
>>>   I've just noted that the /usr/lib/python2.6/site-packages folder does
>>> not include csnd.py. That folder also contains many fewer files that the
>>> corresponding one in python2.5.
>>>
>>>   As a matter of fact, python2.5 seems about a third the size of 2.6. Is
>>> all this correct?
>>>
>>>   Art Hunkins
>>>     ----- Original Message -----
>>>     From: Art Hunkins
>>>     To: pbrobinson@...
>>>     Sent: Friday, July 03, 2009 6:13 PM
>>>     Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>
>>>
>>>     Hello, Peter,
>>>
>>>     Do you know what may be happening here? (Please see error log below.)
>>>
>>>     I've no idea why the module referenced (csd.py) is not found. Please
>>> also compare the log at the very bottom of this mail; this latter log was
>>>
>>> generated when running Csound*5.08*, also with python2.6.
>>>
>>>     Thanks for any insights.
>>>
>>>     Art Hunkins
>>>
>>>     ----- Original Message -----
>>>     From: Art Hunkins
>>>     To: Developer discussions
>>>     Cc: csound@...
>>>     Sent: Friday, July 03, 2009 5:36 PM
>>>     Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>
>>>
>>>     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 -----
>>>       From: victor
>>>       To: Art Hunkins ; Developer discussions
>>>       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 -----
>>>         From: Art Hunkins
>>>         To: Developer discussions
>>>         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 -----
>>>           From: Victor.Lazzarini@...
>>>           To: Developer discussions
>>>           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
>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel@...
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>> --
>> Aleksey
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks, Mike.

Please let me know how this develops. I'm really eager to get 5.10 working
on SoaS. As it is, I gather, Csound is not available for use on SoaS, and
only still works on the OLPC because they are at 5.08.

I'm so much wanting 5.10 because it's the one that permits multiple MIDI
controllers, and I've got to offer my Sugar activity either with *or*
without this multiple. I'm betwixt and between currently, but since SoaS has
already committed to 5.10 making Csound not work at all, I guess I'll just
keep my patient hat on for a while.

OTOH, do keep me appraised. I have joined the Sugar development list, and
can perhaps help move things along on that side.

Art Hunkins
----- Original Message -----
From: "Michael Gogins" <michael.gogins@...>
To: "Art Hunkins" <abhunkin@...>; "Developer discussions"
<csound-devel@...>
Sent: Tuesday, July 07, 2009 3:13 PM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


> He says SConstruct has a bug, which he has patched. I think he's
> probably right, and I will patch SConstruct accordingly.
>
> The bug makes the installation not know the right name (soname) for
> the csnd extension module shared library.
>
> Regards,
> Mike
>
> On 7/6/09, Art Hunkins <abhunkin@...> wrote:
>> Victor and Mike G. (especially) -
>>
>> You're familiar with my problems getting Csound5.10 working on SoaS.
>>
>> Aleksey, one of the Sugar developers, sent me the "solution" (below) to
>> this
>> problem (a Scons issue apparently).
>>
>> I don't know what to do with it, and look to you for either
>> implementation
>> or explanation.
>>
>> I'm really interested to get 5.10 working with Sugar.
>>
>> Art Hunkins
>>
>> ----- Original Message -----
>> From: "Aleksey Lim" <alsroot@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Cc: <pbrobinson@...>; <csound@...>;
>> <sugar-devel@...>
>> Sent: Monday, July 06, 2009 3:37 AM
>> Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound
>>
>>
>>> looks like its a SConstruct issue
>>> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>>>
>>> this patch fixed "import csnd" in my case
>>> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>>>
>>> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>>>> As mentioned by a member of the sugar-devel list, it seems that a
>>>> csound
>>>> (5.10) install (yum install csound), does not install several crucial
>>>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>>>> libcsound).
>>>>
>>>> Having to erase olpcsound before installing csound deletes these files
>>>> and they don't get restored/reinstalled.
>>>>
>>>> So, to the procedures described below, before erasing olpcsound, I
>>>> saved
>>>> the above-listed files (there were 5 or 6), and once csound was
>>>> installed, added them back where they came from.
>>>>
>>>> This crude procedure didn't work, and the following error log is quite
>>>> like the one I started with:
>>>>
>>>>
>>>> /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
>>>>
>>>>
>>>> I'd appreciate any suggestions as to how to get this all working.
>>>> Thanks.
>>>>
>>>> Art Hunkins
>>>>   ----- Original Message -----
>>>>   From: Art Hunkins
>>>>   To: pbrobinson@...
>>>>   Cc: csound@... ; sugar-devel@...
>>>>   Sent: Friday, July 03, 2009 7:57 PM
>>>>   Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>   I've just noted that the /usr/lib/python2.6/site-packages folder does
>>>> not include csnd.py. That folder also contains many fewer files that
>>>> the
>>>> corresponding one in python2.5.
>>>>
>>>>   As a matter of fact, python2.5 seems about a third the size of 2.6.
>>>> Is
>>>> all this correct?
>>>>
>>>>   Art Hunkins
>>>>     ----- Original Message -----
>>>>     From: Art Hunkins
>>>>     To: pbrobinson@...
>>>>     Sent: Friday, July 03, 2009 6:13 PM
>>>>     Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>     Hello, Peter,
>>>>
>>>>     Do you know what may be happening here? (Please see error log
>>>> below.)
>>>>
>>>>     I've no idea why the module referenced (csd.py) is not found.
>>>> Please
>>>> also compare the log at the very bottom of this mail; this latter log
>>>> was
>>>>
>>>> generated when running Csound*5.08*, also with python2.6.
>>>>
>>>>     Thanks for any insights.
>>>>
>>>>     Art Hunkins
>>>>
>>>>     ----- Original Message -----
>>>>     From: Art Hunkins
>>>>     To: Developer discussions
>>>>     Cc: csound@...
>>>>     Sent: Friday, July 03, 2009 5:36 PM
>>>>     Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>     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 -----
>>>>       From: victor
>>>>       To: Art Hunkins ; Developer discussions
>>>>       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 -----
>>>>         From: Art Hunkins
>>>>         To: Developer discussions
>>>>         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 -----
>>>>           From: Victor.Lazzarini@...
>>>>           To: Developer discussions
>>>>           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
>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel@...
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>>> --
>>> Aleksey
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/blackberry
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound/Csound

by Felipe Sateler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm sorry for not looking into this, but I'm away from home and
connect only on cibercafes... so my involvement is limited to
answering e-mails for now...
Anyways, this looks like a problem we had in debian, which we patched
but I never committed the patch here because it seemed so hackish. As
usual, when things are done hackishly they are never properly fixed,
and the patch still lies there. You may want to see the patch at
http://patch-tracking.debian.net/patch/series/view/csound/1:5.10.1~dfsg1-3/2003-fix-_csnd.diff

For anyone interested, the complete list of patches we apply is available here
http://patch-tracking.debian.net/package/csound/1:5.10.1~dfsg1-3

Saludos,
Felipe Sateler



On Wed, Jul 8, 2009 at 02:13, Michael Gogins<michael.gogins@...> wrote:

> He says SConstruct has a bug, which he has patched. I think he's
> probably right, and I will patch SConstruct accordingly.
>
> The bug makes the installation not know the right name (soname) for
> the csnd extension module shared library.
>
> Regards,
> Mike
>
> On 7/6/09, Art Hunkins <abhunkin@...> wrote:
>> Victor and Mike G. (especially) -
>>
>> You're familiar with my problems getting Csound5.10 working on SoaS.
>>
>> Aleksey, one of the Sugar developers, sent me the "solution" (below) to this
>> problem (a Scons issue apparently).
>>
>> I don't know what to do with it, and look to you for either implementation
>> or explanation.
>>
>> I'm really interested to get 5.10 working with Sugar.
>>
>> Art Hunkins
>>
>> ----- Original Message -----
>> From: "Aleksey Lim" <alsroot@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Cc: <pbrobinson@...>; <csound@...>;
>> <sugar-devel@...>
>> Sent: Monday, July 06, 2009 3:37 AM
>> Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound
>>
>>
>>> looks like its a SConstruct issue
>>> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>>>
>>> this patch fixed "import csnd" in my case
>>> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>>>
>>> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>>>> As mentioned by a member of the sugar-devel list, it seems that a csound
>>>> (5.10) install (yum install csound), does not install several crucial
>>>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>>>> libcsound).
>>>>
>>>> Having to erase olpcsound before installing csound deletes these files
>>>> and they don't get restored/reinstalled.
>>>>
>>>> So, to the procedures described below, before erasing olpcsound, I saved
>>>> the above-listed files (there were 5 or 6), and once csound was
>>>> installed, added them back where they came from.
>>>>
>>>> This crude procedure didn't work, and the following error log is quite
>>>> like the one I started with:
>>>>
>>>>
>>>> /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
>>>>
>>>>
>>>> I'd appreciate any suggestions as to how to get this all working. Thanks.
>>>>
>>>> Art Hunkins
>>>>   ----- Original Message -----
>>>>   From: Art Hunkins
>>>>   To: pbrobinson@...
>>>>   Cc: csound@... ; sugar-devel@...
>>>>   Sent: Friday, July 03, 2009 7:57 PM
>>>>   Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>   I've just noted that the /usr/lib/python2.6/site-packages folder does
>>>> not include csnd.py. That folder also contains many fewer files that the
>>>> corresponding one in python2.5.
>>>>
>>>>   As a matter of fact, python2.5 seems about a third the size of 2.6. Is
>>>> all this correct?
>>>>
>>>>   Art Hunkins
>>>>     ----- Original Message -----
>>>>     From: Art Hunkins
>>>>     To: pbrobinson@...
>>>>     Sent: Friday, July 03, 2009 6:13 PM
>>>>     Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>     Hello, Peter,
>>>>
>>>>     Do you know what may be happening here? (Please see error log below.)
>>>>
>>>>     I've no idea why the module referenced (csd.py) is not found. Please
>>>> also compare the log at the very bottom of this mail; this latter log was
>>>>
>>>> generated when running Csound*5.08*, also with python2.6.
>>>>
>>>>     Thanks for any insights.
>>>>
>>>>     Art Hunkins
>>>>
>>>>     ----- Original Message -----
>>>>     From: Art Hunkins
>>>>     To: Developer discussions
>>>>     Cc: csound@...
>>>>     Sent: Friday, July 03, 2009 5:36 PM
>>>>     Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>     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 -----
>>>>       From: victor
>>>>       To: Art Hunkins ; Developer discussions
>>>>       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 -----
>>>>         From: Art Hunkins
>>>>         To: Developer discussions
>>>>         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 -----
>>>>           From: Victor.Lazzarini@...
>>>>           To: Developer discussions
>>>>           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
>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel@...
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>>> --
>>> Aleksey
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full prize
>> details at: http://p.sf.net/sfu/blackberry
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mike,

Sorry, I'm technically way over my head here. I'm referring to the thread
below.

Sugar on a Stick includes Csound5.10 and Python2.6. The incompatibilities,
apparently relating to Scons, are cited below. I'm not building anything; I
just need the SoaS download or update to handle my Python script with
Csound5.10 correctly.

5.10 doesn't work with a Python2.6 script currently. (I need 5.10 to be able
to use multiple MIDI controllers.)

I don't know how to explain any better, and also don't know where (else) to
turn. Should I be looking elsewhere? (I feel really stuck currently.)

Art Hunkins

Mike G. wrote:
Art - the Python version is controllable in Sconstruct. It works with
2.3, 2.4, 2.5, and 2.6 at present. Which version of Python do you need
Csound to work with, and how do you obtain or build Csound?

----- Original Message -----
From: "Michael Gogins" <michael.gogins@...>
To: "Art Hunkins" <abhunkin@...>; "Developer discussions"
<csound-devel@...>
Sent: Tuesday, July 07, 2009 3:13 PM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


> He says SConstruct has a bug, which he has patched. I think he's
> probably right, and I will patch SConstruct accordingly.
>
> The bug makes the installation not know the right name (soname) for
> the csnd extension module shared library.
>
> Regards,
> Mike
>
> On 7/6/09, Art Hunkins <abhunkin@...> wrote:
>> Victor and Mike G. (especially) -
>>
>> You're familiar with my problems getting Csound5.10 working on SoaS.
>>
>> Aleksey, one of the Sugar developers, sent me the "solution" (below) to
>> this
>> problem (a Scons issue apparently).
>>
>> I don't know what to do with it, and look to you for either
>> implementation
>> or explanation.
>>
>> I'm really interested to get 5.10 working with Sugar.
>>
>> Art Hunkins
>>
>> ----- Original Message -----
>> From: "Aleksey Lim" <alsroot@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Cc: <pbrobinson@...>; <csound@...>;
>> <sugar-devel@...>
>> Sent: Monday, July 06, 2009 3:37 AM
>> Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound
>>
>>
>>> looks like its a SConstruct issue
>>> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>>>
>>> this patch fixed "import csnd" in my case
>>> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>>>
>>> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>>>> As mentioned by a member of the sugar-devel list, it seems that a
>>>> csound
>>>> (5.10) install (yum install csound), does not install several crucial
>>>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>>>> libcsound).
>>>>
>>>> Having to erase olpcsound before installing csound deletes these files
>>>> and they don't get restored/reinstalled.
>>>>
>>>> So, to the procedures described below, before erasing olpcsound, I
>>>> saved
>>>> the above-listed files (there were 5 or 6), and once csound was
>>>> installed, added them back where they came from.
>>>>
>>>> This crude procedure didn't work, and the following error log is quite
>>>> like the one I started with:
>>>>
>>>>
>>>> /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
>>>>
>>>>
>>>> I'd appreciate any suggestions as to how to get this all working.
>>>> Thanks.
>>>>
>>>> Art Hunkins
>>>>   ----- Original Message -----
>>>>   From: Art Hunkins
>>>>   To: pbrobinson@...
>>>>   Cc: csound@... ; sugar-devel@...
>>>>   Sent: Friday, July 03, 2009 7:57 PM
>>>>   Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>   I've just noted that the /usr/lib/python2.6/site-packages folder does
>>>> not include csnd.py. That folder also contains many fewer files that
>>>> the
>>>> corresponding one in python2.5.
>>>>
>>>>   As a matter of fact, python2.5 seems about a third the size of 2.6.
>>>> Is
>>>> all this correct?
>>>>
>>>>   Art Hunkins
>>>>     ----- Original Message -----
>>>>     From: Art Hunkins
>>>>     To: pbrobinson@...
>>>>     Sent: Friday, July 03, 2009 6:13 PM
>>>>     Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>     Hello, Peter,
>>>>
>>>>     Do you know what may be happening here? (Please see error log
>>>> below.)
>>>>
>>>>     I've no idea why the module referenced (csd.py) is not found.
>>>> Please
>>>> also compare the log at the very bottom of this mail; this latter log
>>>> was
>>>>
>>>> generated when running Csound*5.08*, also with python2.6.
>>>>
>>>>     Thanks for any insights.
>>>>
>>>>     Art Hunkins
>>>>
>>>>     ----- Original Message -----
>>>>     From: Art Hunkins
>>>>     To: Developer discussions
>>>>     Cc: csound@...
>>>>     Sent: Friday, July 03, 2009 5:36 PM
>>>>     Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>
>>>>
>>>>     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 -----
>>>>       From: victor
>>>>       To: Art Hunkins ; Developer discussions
>>>>       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 -----
>>>>         From: Art Hunkins
>>>>         To: Developer discussions
>>>>         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 -----
>>>>           From: Victor.Lazzarini@...
>>>>           To: Developer discussions
>>>>           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
>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel@...
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>>> --
>>> Aleksey
>>
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/blackberry
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full
> prize
> details at: http://p.sf.net/sfu/blackberry
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: Sugar on a Stick - and OLPCsound/Csound

by Michael Gogins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I patched SConstruct as suggested in the thread below. Somebody needs
to update SConstruct from Csound CVS, rebuild Csound 5.10 using this
patched SConstruct for Python 2.6, and then you need to install this
new build.

Hope this helps,
Mike

1/09, Art Hunkins <abhunkin@...> wrote:

> Mike,
>
> Sorry, I'm technically way over my head here. I'm referring to the thread
> below.
>
> Sugar on a Stick includes Csound5.10 and Python2.6. The incompatibilities,
> apparently relating to Scons, are cited below. I'm not building anything; I
> just need the SoaS download or update to handle my Python script with
> Csound5.10 correctly.
>
> 5.10 doesn't work with a Python2.6 script currently. (I need 5.10 to be able
> to use multiple MIDI controllers.)
>
> I don't know how to explain any better, and also don't know where (else) to
> turn. Should I be looking elsewhere? (I feel really stuck currently.)
>
> Art Hunkins
>
> Mike G. wrote:
> Art - the Python version is controllable in Sconstruct. It works with
> 2.3, 2.4, 2.5, and 2.6 at present. Which version of Python do you need
> Csound to work with, and how do you obtain or build Csound?
>
> ----- Original Message -----
> From: "Michael Gogins" <michael.gogins@...>
> To: "Art Hunkins" <abhunkin@...>; "Developer discussions"
> <csound-devel@...>
> Sent: Tuesday, July 07, 2009 3:13 PM
> Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound/Csound
>
>
>> He says SConstruct has a bug, which he has patched. I think he's
>> probably right, and I will patch SConstruct accordingly.
>>
>> The bug makes the installation not know the right name (soname) for
>> the csnd extension module shared library.
>>
>> Regards,
>> Mike
>>
>> On 7/6/09, Art Hunkins <abhunkin@...> wrote:
>>> Victor and Mike G. (especially) -
>>>
>>> You're familiar with my problems getting Csound5.10 working on SoaS.
>>>
>>> Aleksey, one of the Sugar developers, sent me the "solution" (below) to
>>> this
>>> problem (a Scons issue apparently).
>>>
>>> I don't know what to do with it, and look to you for either
>>> implementation
>>> or explanation.
>>>
>>> I'm really interested to get 5.10 working with Sugar.
>>>
>>> Art Hunkins
>>>
>>> ----- Original Message -----
>>> From: "Aleksey Lim" <alsroot@...>
>>> To: "Art Hunkins" <abhunkin@...>
>>> Cc: <pbrobinson@...>; <csound@...>;
>>> <sugar-devel@...>
>>> Sent: Monday, July 06, 2009 3:37 AM
>>> Subject: Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound
>>>
>>>
>>>> looks like its a SConstruct issue
>>>> https://sourceforge.net/tracker/index.php?func=detail&aid=2817271&group_id=81968&atid=564599
>>>>
>>>> this patch fixed "import csnd" in my case
>>>> http://git.sugarlabs.org/projects/jhconvert/repos/mainline/blobs/master/patches/csound-2817271-soname.patch
>>>>
>>>> On Sun, Jul 05, 2009 at 05:49:23PM -0400, Art Hunkins wrote:
>>>>> As mentioned by a member of the sugar-devel list, it seems that a
>>>>> csound
>>>>> (5.10) install (yum install csound), does not install several crucial
>>>>> site-specific and library packages (csnd, _csnd, libcsnd and perhaps
>>>>> libcsound).
>>>>>
>>>>> Having to erase olpcsound before installing csound deletes these files
>>>>> and they don't get restored/reinstalled.
>>>>>
>>>>> So, to the procedures described below, before erasing olpcsound, I
>>>>> saved
>>>>> the above-listed files (there were 5 or 6), and once csound was
>>>>> installed, added them back where they came from.
>>>>>
>>>>> This crude procedure didn't work, and the following error log is quite
>>>>> like the one I started with:
>>>>>
>>>>>
>>>>> /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
>>>>>
>>>>>
>>>>> I'd appreciate any suggestions as to how to get this all working.
>>>>> Thanks.
>>>>>
>>>>> Art Hunkins
>>>>>   ----- Original Message -----
>>>>>   From: Art Hunkins
>>>>>   To: pbrobinson@...
>>>>>   Cc: csound@... ; sugar-devel@...
>>>>>   Sent: Friday, July 03, 2009 7:57 PM
>>>>>   Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>>
>>>>>
>>>>>   I've just noted that the /usr/lib/python2.6/site-packages folder does
>>>>> not include csnd.py. That folder also contains many fewer files that
>>>>> the
>>>>> corresponding one in python2.5.
>>>>>
>>>>>   As a matter of fact, python2.5 seems about a third the size of 2.6.
>>>>> Is
>>>>> all this correct?
>>>>>
>>>>>   Art Hunkins
>>>>>     ----- Original Message -----
>>>>>     From: Art Hunkins
>>>>>     To: pbrobinson@...
>>>>>     Sent: Friday, July 03, 2009 6:13 PM
>>>>>     Subject: Fw: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>>
>>>>>
>>>>>     Hello, Peter,
>>>>>
>>>>>     Do you know what may be happening here? (Please see error log
>>>>> below.)
>>>>>
>>>>>     I've no idea why the module referenced (csd.py) is not found.
>>>>> Please
>>>>> also compare the log at the very bottom of this mail; this latter log
>>>>> was
>>>>>
>>>>> generated when running Csound*5.08*, also with python2.6.
>>>>>
>>>>>     Thanks for any insights.
>>>>>
>>>>>     Art Hunkins
>>>>>
>>>>>     ----- Original Message -----
>>>>>     From: Art Hunkins
>>>>>     To: Developer discussions
>>>>>     Cc: csound@...
>>>>>     Sent: Friday, July 03, 2009 5:36 PM
>>>>>     Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>>
>>>>>
>>>>>     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 -----
>>>>>       From: victor
>>>>>       To: Art Hunkins ; Developer discussions
>>>>>       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 -----
>>>>>         From: Art Hunkins
>>>>>         To: Developer discussions
>>>>>         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 -----
>>>>>           From: Victor.Lazzarini@...
>>>>>           To: Developer discussions
>>>>>           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
>>>>
>>>>> _______________________________________________
>>>>> Sugar-devel mailing list
>>>>> Sugar-devel@...
>>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>>
>>>>
>>>> --
>>>> Aleksey
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes! For a limited time,
>>> vendors submitting new applications to BlackBerry App World(TM) will have
>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>> prize
>>> details at: http://p.sf.net/sfu/blackberry
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@...
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full
>> prize
>> details at: http://p.sf.net/sfu/blackberry
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@...
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@...
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aleksey,

Thanks for undertaking this task.

Please let me know when the revised build of Csound5.10 is available for
update on SoaS. I'm eager to be assured that it solves the compatibility
issue with python 2.6.

Art Hunkins

----- Original Message -----
From: "Aleksey Lim" <alsroot@...>
To: "Art Hunkins" <abhunkin@...>
Cc: "Michael Gogins" <michael.gogins@...>;
<sugar-devel@...>
Sent: Monday, July 13, 2009 12:02 AM
Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


> On Sun, Jul 12, 2009 at 03:19:31PM -0400, Art Hunkins wrote:
>> Mike Gogins, a Csound developer, has taken care of the Scons issue with
>> Csound5.10, as discussed below.
>>
>> I'd be overjoyed if one of you Sugar developers could take it from there
>> so
>> that we can have SoaS with a Csound that works with python2.6.
>
> I can build rpm for soas env. but I'm waiting for fixing my problems with
> ISP
> so, I can't do it in nearest few days.
>
> Just an option, using Mandriva of Suse ;)
>
> --
> Aleksey


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound

by Peter Robinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I've tested and applied the patch to F11 and pushed it out as a
updates-testing. Please test.
https://admin.fedoraproject.org/updates/csound-5.10.1-9.fc11

Or if your too impatient to wait for the updates-testing push you can
grab the rpms from koji directly
http://koji.fedoraproject.org/koji/buildinfo?buildID=114648

Peter

On Mon, Jul 13, 2009 at 4:03 PM, Art Hunkins<abhunkin@...> wrote:

> Aleksey,
>
> Thanks for undertaking this task.
>
> Please let me know when the revised build of Csound5.10 is available for
> update on SoaS. I'm eager to be assured that it solves the compatibility
> issue with python 2.6.
>
> Art Hunkins
>
> ----- Original Message -----
> From: "Aleksey Lim" <alsroot@...>
> To: "Art Hunkins" <abhunkin@...>
> Cc: "Michael Gogins" <michael.gogins@...>;
> <sugar-devel@...>
> Sent: Monday, July 13, 2009 12:02 AM
> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound
>
>
>> On Sun, Jul 12, 2009 at 03:19:31PM -0400, Art Hunkins wrote:
>>> Mike Gogins, a Csound developer, has taken care of the Scons issue with
>>> Csound5.10, as discussed below.
>>>
>>> I'd be overjoyed if one of you Sugar developers could take it from there
>>> so
>>> that we can have SoaS with a Csound that works with python2.6.
>>
>> I can build rpm for soas env. but I'm waiting for fixing my problems with
>> ISP
>> so, I can't do it in nearest few days.
>>
>> Just an option, using Mandriva of Suse ;)
>>
>> --
>> Aleksey
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@...
> http://lists.sugarlabs.org/listinfo/sugar-devel
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

Thanks for this.

Can you, or anyone, point me to specific instructions as to how to download
and install either of these options?

I've tried the "obvious" methods, such as:
yum updates-testing csound
and yum update csound
but have hit a blank wall.

I've never tried anything in testing mode before.

Art Hunkins

----- Original Message -----
From: "Peter Robinson" <pbrobinson@...>
To: "Art Hunkins" <abhunkin@...>
Cc: <sugar-devel@...>; <csound-devel@...>
Sent: Thursday, July 16, 2009 7:43 AM
Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


> Hi All,
>
> I've tested and applied the patch to F11 and pushed it out as a
> updates-testing. Please test.
> https://admin.fedoraproject.org/updates/csound-5.10.1-9.fc11
>
> Or if your too impatient to wait for the updates-testing push you can
> grab the rpms from koji directly
> http://koji.fedoraproject.org/koji/buildinfo?buildID=114648
>
> Peter
>
> On Mon, Jul 13, 2009 at 4:03 PM, Art Hunkins<abhunkin@...> wrote:
>> Aleksey,
>>
>> Thanks for undertaking this task.
>>
>> Please let me know when the revised build of Csound5.10 is available for
>> update on SoaS. I'm eager to be assured that it solves the compatibility
>> issue with python 2.6.
>>
>> Art Hunkins
>>
>> ----- Original Message -----
>> From: "Aleksey Lim" <alsroot@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Cc: "Michael Gogins" <michael.gogins@...>;
>> <sugar-devel@...>
>> Sent: Monday, July 13, 2009 12:02 AM
>> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and
>> OLPCsound/Csound
>>
>>
>>> On Sun, Jul 12, 2009 at 03:19:31PM -0400, Art Hunkins wrote:
>>>> Mike Gogins, a Csound developer, has taken care of the Scons issue with
>>>> Csound5.10, as discussed below.
>>>>
>>>> I'd be overjoyed if one of you Sugar developers could take it from
>>>> there
>>>> so
>>>> that we can have SoaS with a Csound that works with python2.6.
>>>
>>> I can build rpm for soas env. but I'm waiting for fixing my problems
>>> with
>>> ISP
>>> so, I can't do it in nearest few days.
>>>
>>> Just an option, using Mandriva of Suse ;)
>>>
>>> --
>>> Aleksey
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel@...
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@...
> http://lists.sugarlabs.org/listinfo/sugar-devel 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound

by Aleksey Lim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 17, 2009 at 09:49:33PM -0400, Art Hunkins wrote:

> Peter,
>
> Thanks for this.
>
> Can you, or anyone, point me to specific instructions as to how to download
> and install either of these options?
>
> I've tried the "obvious" methods, such as:
> yum updates-testing csound
> and yum update csound
> but have hit a blank wall.

not sure(I'm not a fedora user) but I guess you can just
download all *.i586.rpm(if you are using i586) from
http://koji.fedoraproject.org/koji/buildinfo?buildID=114648
that you have in your system("rpm -qa | grep csound")
and install them by "rpm -i <rpm>" command.

--
Aleksey

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Parent Message unknown Re: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

It seems the latest Csound5.10 has not yet made it into updates-testing.
I'll try again on at least a daily basis.

I've learned a lot about Fedora/Sugar since July 1; I did get your message
then, but I don't think I understood its full meaning. At any rate, I did
wait for the "regular" update to appear (which it did shortly). I'll do the
same now for the testing version.

I appreciate your bearing with this newbee.

Art Hunkins

----- Original Message -----
From: "Peter Robinson" <pbrobinson@...>
To: "Art Hunkins" <abhunkin@...>
Cc: <sugar-devel@...>
Sent: Saturday, July 18, 2009 3:54 AM
Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


> Art,
>
> You need to enable the testing repo. "yum --help" is your friend here.
> To enable it on a temporary basis you can do "yum
> --enablerepo=updates-testing update csound" or to enable it
> permanently you edit the /etc/yum.repos.d/fedora-updates-testing.repo
> changing the first "enable=" line from 0 to 1.
>
> I emailed you the details of how to do that back on Jul 1st.
>
> Peter
>
> On Sat, Jul 18, 2009 at 2:49 AM, Art Hunkins<abhunkin@...> wrote:
>> Peter,
>>
>> Thanks for this.
>>
>> Can you, or anyone, point me to specific instructions as to how to
>> download
>> and install either of these options?
>>
>> I've tried the "obvious" methods, such as:
>> yum updates-testing csound
>> and yum update csound
>> but have hit a blank wall.
>>
>> I've never tried anything in testing mode before.
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: "Peter Robinson"
>> <pbrobinson@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Cc: <sugar-devel@...>;
>> <csound-devel@...>
>> Sent: Thursday, July 16, 2009 7:43 AM
>> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and
>> OLPCsound/Csound
>>
>>
>>> Hi All,
>>>
>>> I've tested and applied the patch to F11 and pushed it out as a
>>> updates-testing. Please test.
>>> https://admin.fedoraproject.org/updates/csound-5.10.1-9.fc11
>>>
>>> Or if your too impatient to wait for the updates-testing push you can
>>> grab the rpms from koji directly
>>> http://koji.fedoraproject.org/koji/buildinfo?buildID=114648
>>>
>>> Peter
>>>
>>> On Mon, Jul 13, 2009 at 4:03 PM, Art Hunkins<abhunkin@...> wrote:
>>>>
>>>> Aleksey,
>>>>
>>>> Thanks for undertaking this task.
>>>>
>>>> Please let me know when the revised build of Csound5.10 is available
>>>> for
>>>> update on SoaS. I'm eager to be assured that it solves the
>>>> compatibility
>>>> issue with python 2.6.
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message -----
>>>> From: "Aleksey Lim" <alsroot@...>
>>>> To: "Art Hunkins" <abhunkin@...>
>>>> Cc: "Michael Gogins" <michael.gogins@...>;
>>>> <sugar-devel@...>
>>>> Sent: Monday, July 13, 2009 12:02 AM
>>>> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and
>>>> OLPCsound/Csound
>>>>
>>>>
>>>>> On Sun, Jul 12, 2009 at 03:19:31PM -0400, Art Hunkins wrote:
>>>>>>
>>>>>> Mike Gogins, a Csound developer, has taken care of the Scons issue
>>>>>> with
>>>>>> Csound5.10, as discussed below.
>>>>>>
>>>>>> I'd be overjoyed if one of you Sugar developers could take it from
>>>>>> there
>>>>>> so
>>>>>> that we can have SoaS with a Csound that works with python2.6.
>>>>>
>>>>> I can build rpm for soas env. but I'm waiting for fixing my problems
>>>>> with
>>>>> ISP
>>>>> so, I can't do it in nearest few days.
>>>>>
>>>>> Just an option, using Mandriva of Suse ;)
>>>>>
>>>>> --
>>>>> Aleksey
>>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel@...
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel@...
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

amRe: [Sugar-devel] Sugar on a Stick - and OLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Peter et al. -

Your latest Csound5.10 patch finally made it out to updates-testing today,
and I was able to install it on SoaS (Sugar 84) and test it out.

Unfortunately it aborts with much the same (if not exactly) as before. 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 42, 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



Observations: /usr/lib/ contains libcsound.so.5.1 and 5.2, but only
libcsnd.so.5.1. (I've no idea if this is significant or not.) I note that
Sugar 82 - designed for 5.08 - (at least on my OLPC) contains none of these
files.

TamTamMini plays fine on both 82 and 84; of course it only plays samples.

TamTamSynthLab seems to work fine with 82 (no errors), but not in 84 - where
the log shows a multitude of .so files incompatible with Csound5.10 (stated
as 2.0 and 1.6??). And, following that, an even larger list of illegal
opcodes and errors.

If I were to guess something, it would be this: is perhaps libcsnd.so.5.2
required for Csound5.10?

Needless to say, I'd sure like this to work. Thanks, as always, for any and
all insights.

Art Hunkins

----- Original Message -----
From: "Peter Robinson" <pbrobinson@...>
To: "Art Hunkins" <abhunkin@...>
Cc: <sugar-devel@...>; <csound-devel@...>
Sent: Thursday, July 16, 2009 7:43 AM
Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


> Hi All,
>
> I've tested and applied the patch to F11 and pushed it out as a
> updates-testing. Please test.
> https://admin.fedoraproject.org/updates/csound-5.10.1-9.fc11
>
> Or if your too impatient to wait for the updates-testing push you can
> grab the rpms from koji directly
> http://koji.fedoraproject.org/koji/buildinfo?buildID=114648
>
> Peter
>
> On Mon, Jul 13, 2009 at 4:03 PM, Art Hunkins<abhunkin@...> wrote:
>> Aleksey,
>>
>> Thanks for undertaking this task.
>>
>> Please let me know when the revised build of Csound5.10 is available for
>> update on SoaS. I'm eager to be assured that it solves the compatibility
>> issue with python 2.6.
>>
>> Art Hunkins
>>
>> ----- Original Message -----
>> From: "Aleksey Lim" <alsroot@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Cc: "Michael Gogins" <michael.gogins@...>;
>> <sugar-devel@...>
>> Sent: Monday, July 13, 2009 12:02 AM
>> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and
>> OLPCsound/Csound
>>
>>
>>> On Sun, Jul 12, 2009 at 03:19:31PM -0400, Art Hunkins wrote:
>>>> Mike Gogins, a Csound developer, has taken care of the Scons issue with
>>>> Csound5.10, as discussed below.
>>>>
>>>> I'd be overjoyed if one of you Sugar developers could take it from
>>>> there
>>>> so
>>>> that we can have SoaS with a Csound that works with python2.6.
>>>
>>> I can build rpm for soas env. but I'm waiting for fixing my problems
>>> with
>>> ISP
>>> so, I can't do it in nearest few days.
>>>
>>> Just an option, using Mandriva of Suse ;)
>>>
>>> --
>>> Aleksey
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel@...
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@...
> http://lists.sugarlabs.org/listinfo/sugar-devel 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Csound-devel mailing list
Csound-devel@...
https://lists.sourceforge.net/lists/listinfo/csound-devel

Re: [Sugar-devel] amRe: Sugar on a Stick - and OLPCsound/Csound

by Tomeu Vizoso-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jul 21, 2009 at 04:03, Art Hunkins<abhunkin@...> wrote:

> Hello, Peter et al. -
>
> Your latest Csound5.10 patch finally made it out to updates-testing today,
> and I was able to install it on SoaS (Sugar 84) and test it out.
>
> Unfortunately it aborts with much the same (if not exactly) as before. 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 42, 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
>
>
>
> Observations: /usr/lib/ contains libcsound.so.5.1 and 5.2, but only
> libcsnd.so.5.1. (I've no idea if this is significant or not.) I note that
> Sugar 82 - designed for 5.08 - (at least on my OLPC) contains none of these
> files.
>
> TamTamMini plays fine on both 82 and 84; of course it only plays samples.
>
> TamTamSynthLab seems to work fine with 82 (no errors), but not in 84 - where
> the log shows a multitude of .so files incompatible with Csound5.10 (stated
> as 2.0 and 1.6??). And, following that, an even larger list of illegal
> opcodes and errors.
>
> If I were to guess something, it would be this: is perhaps libcsnd.so.5.2
> required for Csound5.10?

That sounds like a good idea to me.

Regards,

Tomeu

> Needless to say, I'd sure like this to work. Thanks, as always, for any and
> all insights.
>
> Art Hunkins
>
> ----- Original Message -----
> From: "Peter Robinson" <pbrobinson@...>
> To: "Art Hunkins" <abhunkin@...>
> Cc: <sugar-devel@...>; <csound-devel@...>
> Sent: Thursday, July 16, 2009 7:43 AM
> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound
>
>
>> Hi All,
>>
>> I've tested and applied the patch to F11 and pushed it out as a
>> updates-testing. Please test.
>> https://admin.fedoraproject.org/updates/csound-5.10.1-9.fc11
>>
>> Or if your too impatient to wait for the updates-testing push you can
>> grab the rpms from koji directly
>> http://koji.fedoraproject.org/koji/buildinfo?buildID=114648
>>
>> Peter
>>
>> On Mon, Jul 13, 2009 at 4:03 PM, Art Hunkins<abhunkin@...> wrote:
>>> Aleksey,
>>>
>>> Thanks for undertaking this task.
>>>
>>> Please let me know when the revised build of Csound5.10 is available for
>>> update on SoaS. I'm eager to be assured that it solves the compatibility
>>> issue with python 2.6.
>>>
>>> Art Hunkins
>>>
>>> ----- Original Message -----
>>> From: "Aleksey Lim" <alsroot@...>
>>> To: "Art Hunkins" <abhunkin@...>
>>> Cc: "Michael Gogins" <michael.gogins@...>;
>>> <sugar-devel@...>
>>> Sent: Monday, July 13, 2009 12:02 AM
>>> Subject: Re: [Sugar-devel] [Cs-dev] Sugar on a Stick - and
>>> OLPCsound/Csound
>>>
>>>
>>>> On Sun, Jul 12, 2009 at 03:19:31PM -0400, Art Hunkins wrote:
>>>>> Mike Gogins, a Csound developer, has taken care of the Scons issue with
>>>>> Csound5.10, as discussed below.
>>>>>
>>>>> I'd be overjoyed if one of you Sugar developers could take it from
>>>>> there
>>>>> so
>>>>> that we can have SoaS with a Csound that works with python2.6.
>>>>
>>>> I can build rpm for soas env. but I'm waiting for fixing my problems
>>>> with
>>>> ISP
>>>> so, I can't do it in nearest few days.
>>>>
>>>> Just an option, using Mandriva of Suse ;)
>>>>
>>>> --
>>>> Aleksey
>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel@...
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel@...
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@...
> http://lists.sugarlabs.org/listinfo/sugar-devel
>

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

Re: [Sugar-devel] amRe: Sugar on a Stick - and OLPCsound/Csound

by Peter Robinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> Hello, Peter et al. -
>>
>> Your latest Csound5.10 patch finally made it out to updates-testing today,
>> and I was able to install it on SoaS (Sugar 84) and test it out.
>>
>> Unfortunately it aborts with much the same (if not exactly) as before. 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 42, 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
>>
>>
>>
>> Observations: /usr/lib/ contains libcsound.so.5.1 and 5.2, but only
>> libcsnd.so.5.1. (I've no idea if this is significant or not.) I note that
>> Sugar 82 - designed for 5.08 - (at least on my OLPC) contains none of these
>> files.
>>
>> TamTamMini plays fine on both 82 and 84; of course it only plays samples.
>>
>> TamTamSynthLab seems to work fine with 82 (no errors), but not in 84 - where
>> the log shows a multitude of .so files incompatible with Csound5.10 (stated
>> as 2.0 and 1.6??). And, following that, an even larger list of illegal
>> opcodes and errors.
>>
>> If I were to guess something, it would be this: is perhaps libcsnd.so.5.2
>> required for Csound5.10?
>
> That sounds like a good idea to me.

That's what's compiled out of the csound 5.10.1 pacakge. Its not
something you can accidentally pick the wrong one because the Fedora
build system build everything in a fresh chroot env.

I wonder if the issue isn't due to a API change in the newer release?

Peter

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

Parent Message unknown Re: [Sugar-devel] amRe: Sugar on a Stick-andOLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Peter,

At last the new csound-python became available and I installed it.

There is still an issue. The current log consists of:
/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 42, 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 25, in <module>

_csnd = swig_import_helper()

File "/usr/lib/python2.6/site-packages/csnd.py", line 17, in
swig_import_helper

import _csnd

ImportError: No module named _csnd



You will get the same error if you run cb.py from python.

I think I see some of the cause. My /usr/lib/python2.6/site-packages/ now
includes: csnd.py, csnd.pyo, csnd.pyc, and _csnd.so - but _csnd.so is listed
in red with a black background. It is indeed an empty file, unlike the
others. (Other .so files in the same directory display content.)

(FWIW, when I try to install csound-python again, the response is that it is
already installed - so I'm not absolutely sure the download was good. It
seemed completely normal, however.)

Sorry to have to report this; I was so hopeful.

Art Hunkins

----- Original Message -----
From: "Peter Robinson" <pbrobinson@...>
To: "Art Hunkins" <abhunkin@...>
Cc: "Sugar devel" <sugar-devel@...>
Sent: Wednesday, July 22, 2009 4:20 AM
Subject: Re: [Sugar-devel] amRe: [Cs-dev] Sugar on a
Stick-andOLPCsound/Csound


> Hi Art,
>
> The csound-python should have gone out at the same time as the csound
> as the former is just a sub package. Going forward they will be
> updated simultaneously. Once we have the issue fixed I'll review the
> package requires on various packages to ensure its always pulled in
> where needed.
>
> Peter
>
> On Wed, Jul 22, 2009 at 2:24 AM, Art Hunkins<abhunkin@...> wrote:
>> Hello, Peter,
>>
>> The new csound-python isn't out there yet, but I'll keep trying.
>>
>> I presume when all is tested and working, the updated Csound and
>> csound-python should automatically be updated together. (Basically,
>> whenever
>> csound is updated, csound-python would update as well.)
>>
>> Am I correct?
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: "Peter Robinson"
>> <pbrobinson@...>
>> To: "Art Hunkins" <abhunkin@...>
>> Sent: Tuesday, July 21, 2009 5:48 PM
>> Subject: Re: [Sugar-devel] amRe: [Cs-dev] Sugar on a Stick
>> -andOLPCsound/Csound
>>
>>
>>> Hi Art,
>>>
>>>> Interesting result - no doubt suggestive (from terminal output):
>>>
>>>> ---> Package csound-python.i586 0:5.10.1-7.fc11 set to be updated
>>>>
>>>> --> Processing Dependency: csound = 5.10.1-7.fc11 for package:
>>>> csound-python-5.10.1-7.fc11.i586
>>>>
>>>> --> Finished Dependency Resolution
>>>>
>>>> csound-python-5.10.1-7.fc11.i586 from updates has depsolving problems
>>>>
>>>> --> Missing Dependency: csound = 5.10.1-7.fc11 is needed by package
>>>> csound-python-5.10.1-7.fc11.i586 (updates)
>>>>
>>>> Error: Missing Dependency: csound = 5.10.1-7.fc11 is needed by package
>>>> csound-python-5.10.1-7.fc11.i586 (updates)
>>>
>>> Not that interesting, it looks like an out of date mirror. The -7.fc11
>>> as opposed -9.fc11 is just the build number. The later is the one that
>>> has the compile fix in it. The former the previous build of csound.
>>>
>>>> Another observation (that I meant to mention before): I have no
>>>> /usr/lib64 -
>>>> just a /usr/lib. As you may know, there are two versions of Csound, a
>>>> floats
>>>> and a doubles. The doubles version is identified generally with the
>>>> "64"
>>>> suffix. I wonder if these two versions have gotten mixed up in
>>>> distribution
>>>> somehow? To my knowledge, only the float (32bit) version is part of
>>>> OLPCsound (and SoaS).
>>>
>>> The /usr/lib64 is if your running the 64 bit of Fedora. I run that on
>>> my main laptop. Its nothing to do with 2 different versions of csound
>>> as the 32 and 64 bits of csound are built through the same build
>>> system on Fedora so are build the same way and is of no consequence
>>> here. I have multiple 32 and 64 bit machines.
>>>
>>>> Finally, I have none of the 4 files you list in my
>>>> python2.6/site-packages
>>>> folder (maybe because of the failed csound-python install?).
>>>
>>> Yes. That's because the csound-python package isn't installed. If you
>>> try again (or a couple of times) you should get an up to date mirror
>>> and hence the right build number.
>>>
>>> Peter
>>
>>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@...
> http://lists.sugarlabs.org/listinfo/sugar-devel 


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

Re: [Sugar-devel] amRe: Sugar on a Stick-andOLPCsound/Csound

by Peter Robinson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Art,

> At last the new csound-python became available and I installed it.
>
> There is still an issue. The current log consists of:
> /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 42, 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 25, in <module>
>
> _csnd = swig_import_helper()
>
> File "/usr/lib/python2.6/site-packages/csnd.py", line 17, in
> swig_import_helper
>
> import _csnd
>
> ImportError: No module named _csnd
>
>
>
> You will get the same error if you run cb.py from python.
>
> I think I see some of the cause. My /usr/lib/python2.6/site-packages/ now
> includes: csnd.py, csnd.pyo, csnd.pyc, and _csnd.so - but _csnd.so is listed
> in red with a black background. It is indeed an empty file, unlike the
> others. (Other .so files in the same directory display content.)
>
> (FWIW, when I try to install csound-python again, the response is that it is
> already installed - so I'm not absolutely sure the download was good. It
> seemed completely normal, however.)
>
> Sorry to have to report this; I was so hopeful.

No problem, it gets us further down the line.

Can you try the following:
"mv /usr/lib/csound/plugins/libcsnd.so /usr/lib"

And let me know how you go.

Peter

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

Re: [Sugar-devel] amRe: Sugar on aStick-andOLPCsound/Csound

by Art Hunkins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, Peter,

It gets us this far:

/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 42, 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 25, in <module>

_csnd = swig_import_helper()

File "/usr/lib/python2.6/site-packages/csnd.py", line 24, in
swig_import_helper

return _mod

UnboundLocalError: local variable '_mod' referenced before assignment


Art Hunkins
----- Original Message -----
From: "Peter Robinson" <pbrobinson@...>
To: "Art Hunkins" <abhunkin@...>
Cc: "Sugar devel" <sugar-devel@...>;
<csound-devel@...>
Sent: Thursday, July 23, 2009 3:41 PM
Subject: Re: [Sugar-devel] amRe: [Cs-dev] Sugar on
aStick-andOLPCsound/Csound


> Hi Art,
>
>> At last the new csound-python became available and I installed it.
>>
>> There is still an issue. The current log consists of:
>> /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 42,
>> 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 25, in <module>
>>
>> _csnd = swig_import_helper()
>>
>> File "/usr/lib/python2.6/site-packages/csnd.py", line 17, in
>> swig_import_helper
>>
>> import _csnd
>>
>> ImportError: No module named _csnd
>>
>>
>>
>> You will get the same error if you run cb.py from python.
>>
>> I think I see some of the cause. My /usr/lib/python2.6/site-packages/ now
>> includes: csnd.py, csnd.pyo, csnd.pyc, and _csnd.so - but _csnd.so is
>> listed
>> in red with a black background. It is indeed an empty file, unlike the
>> others. (Other .so files in the same directory display content.)
>>
>> (FWIW, when I try to install csound-python again, the response is that it
>> is
>> already installed - so I'm not absolutely sure the download was good. It
>> seemed completely normal, however.)
>>
>> Sorry to have to report this; I was so hopeful.
>
> No problem, it gets us further down the line.
>
> Can you try the following:
> "mv /usr/lib/csound/plugins/libcsnd.so /usr/lib"
>
> And let me know how you go.
>
> Peter
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@...
> http://lists.sugarlabs.org/listinfo/sugar-devel 


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