Csound Csound-dev Csound-tekno Search About

[Csnd] Problem with python extension

Date2008-01-23 10:29
FromShadow_silver
Subject[Csnd] Problem with python extension
Hi to all, i've been read other post befor posting.
I've compiled csound from source in Ubuntu 7.10 with this command:
scons   usePortAudio=0 buildInterfaces=1 buildPythonOpcodes=1
after this i exported right paths for OPCODEDIR.
When i run the test in /interfaces/test.py i got the following:

  File "csnd.py", line 5, in 
    import _csnd
ImportError: No module named _csnd

but i've linked the .so file with this command:
sudo ln -s /usr/local/lib/lib_csnd.so
/usr/lib/python2.5/lib-dynload/_csnd.so
and i've tried also with
sudo ln -s /usr/local/lib/lib_csnd.so /usr/local/lib/_csnd.so
but there is the same error.
How i can solve?


-- 
View this message in context: http://www.nabble.com/Problem-with-python-extension-tp15028917p15028917.html
Sent from the Csound - General mailing list archive at Nabble.com.


Date2008-01-23 11:32
FromRory Walsh
Subject[Csnd] Re: Problem with python extension
Did scons report 'Building Csound interfaces library' when you compiled? 
  I can remember having a similar problem which I sorted by editing the 
SConstruct file so that it build the interfaces by default, I can't 
remember now exactly what changes I made but I everywhere 
buildInterfaces appeared in SConstruct I put a value of 1. On a side 
issue can anyone tell me why I need fltk to build interfaces? I just 
tried buildInterfaces on windows and it bawked with a can't find 
fltk_images error.

Rory.


Shadow_silver wrote:
> Hi to all, i've been read other post befor posting.
> I've compiled csound from source in Ubuntu 7.10 with this command:
> scons   usePortAudio=0 buildInterfaces=1 buildPythonOpcodes=1
> after this i exported right paths for OPCODEDIR.
> When i run the test in /interfaces/test.py i got the following:
> 
>   File "csnd.py", line 5, in 
>     import _csnd
> ImportError: No module named _csnd
> 
> but i've linked the .so file with this command:
> sudo ln -s /usr/local/lib/lib_csnd.so
> /usr/lib/python2.5/lib-dynload/_csnd.so
> and i've tried also with
> sudo ln -s /usr/local/lib/lib_csnd.so /usr/local/lib/_csnd.so
> but there is the same error.
> How i can solve?
> 
>