Csound Csound-dev Csound-tekno Search About

[Csnd] python csnd oddity

Date2008-01-23 15:45
FromJulian Peterson
Subject[Csnd] python csnd oddity
Hello.

I compiled cs5.07 from source so that I could use it with python2.5  
on my powerbook (osx 10.4).  I am now getting a peculiar error with  
the csnd python module.

Trapped.py fails with the following:
Localisation of messages is disabled, using default language.
Traceback (most recent call last):
   File "./Trapped.py", line 12, in 
     csound.setCommand('csound -RWdfo ./Trapped.py.wav test.orc  
test.sco')
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/csnd.py", line 2638, in 
     __getattr__ = lambda self, name: _swig_getattr(self, CppSound,  
name)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/csnd.py", line 34, in _swig_getattr
     raise AttributeError,name
AttributeError: setCommand


Sure enough, pydoc(csnd) reveals that there is no setCommand  
attribute (or setOrchestra, setScore, etc.).

Any suggestions?  I used the following options:

scons usePortAudio=0 usePortMIDI=0 useALSA=0 useJack=1 useFLTK=1  
pythonVersion=2.5 buildLoris=0 useOSC=1 useUDP=1 buildPythonOpcodes=1  
buildRelease=1 gcc3opt=7450 dynamicCsoundLibrary=1 buildPDClass=1  
useCoreAudio=1 useAltivec=1 buildDSSI=0 buildUtilities=1  
buildVirtual=1 buildInterfaces=1

I modified custom.py to read customCPPPATH.append('/usr/include/ 
python2.5')

I have swig 1.3.31.

Thanks for your help,
Julian