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

Art Hunkins abhunkin at uncg.edu
Thu Jul 23 17:17:46 EDT 2009


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 at gmail.com>
To: "Art Hunkins" <abhunkin at uncg.edu>
Cc: "Sugar devel" <sugar-devel at lists.sugarlabs.org>; 
<csound-devel at lists.sourceforge.net>
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 at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel 



More information about the Sugar-devel mailing list