Csound Csound-dev Csound-tekno Search About

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

Date2009-07-23 22:17
From"Art Hunkins"
SubjectRe: amRe: [Cs-dev] Sugar on aStick-andOLPCsound/Csound
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 

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 


import csndsugui

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


import csnd

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

_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" 
To: "Art Hunkins" 
Cc: "Sugar 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 
>>
>> 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
>> 
>>
>> import csndsugui
>>
>> File "/home/liveuser/Activities/OurMusic.activity/csndsugui.py", line 36, 
>> in
>> 
>>
>> import csnd
>>
>> File "/usr/lib/python2.6/site-packages/csnd.py", line 25, in 
>>
>> _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@lists.sugarlabs.org