[Sugar-devel] [Cs-dev] Sugar on a Stick - and OLPCsound/Csound

Art Hunkins abhunkin at uncg.edu
Sun Jul 12 15:19:31 EDT 2009


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.

If I can help in any non-technical way, please let me know. I'm much obliged 
to all your help.

Art Hunkins

----- Original Message ----- 
From: "Michael Gogins" <michael.gogins at gmail.com>
To: "Art Hunkins" <abhunkin at uncg.edu>; "Developer discussions" 
<csound-devel at lists.sourceforge.net>
Sent: Sunday, July 12, 2009 11:20 AM
Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound/Csound


>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 at uncg.edu> 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 at gmail.com>
>> To: "Art Hunkins" <abhunkin at uncg.edu>; "Developer discussions"
>> <csound-devel at lists.sourceforge.net>
>> 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 at uncg.edu> 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 at member.fsf.org>
>>>> To: "Art Hunkins" <abhunkin at uncg.edu>
>>>> Cc: <pbrobinson at gmail.com>; <csound at lists.bath.ac.uk>;
>>>> <sugar-devel at lists.sugarlabs.org>
>>>> 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 at gmail.com
>>>>>>   Cc: csound at lists.bath.ac.uk ; sugar-devel at lists.sugarlabs.org
>>>>>>   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 at gmail.com
>>>>>>     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 at lists.bath.ac.uk
>>>>>>     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 at nuim.ie
>>>>>>           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 at uncg.edu>
>>>>>>           Date: Monday, June 29, 2009 10:19 pm
>>>>>>           Subject: Re: [Cs-dev] Sugar on a Stick - and OLPCsound
>>>>>>           To: csound-devel at lists.sourceforge.net
>>>>>>
>>>>>>           > 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 at lists.sourceforge.net
>>>>>>           > 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 at lists.sourceforge.net
>>>>>>           https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>         _______________________________________________
>>>>>>         Csound-devel mailing list
>>>>>>         Csound-devel at lists.sourceforge.net
>>>>>>         https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>       _______________________________________________
>>>>>>       Csound-devel mailing list
>>>>>>       Csound-devel at lists.sourceforge.net
>>>>>>       https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>     _______________________________________________
>>>>>>     Csound-devel mailing list
>>>>>>     Csound-devel at lists.sourceforge.net
>>>>>>     https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>> _______________________________________________
>>>>>> Sugar-devel mailing list
>>>>>> Sugar-devel at lists.sugarlabs.org
>>>>>> 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 at lists.sourceforge.net
>>>> 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 at lists.sourceforge.net
>>> 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 at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
> -- 
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com 



More information about the Sugar-devel mailing list