Csound Csound-dev Csound-tekno Search About

[Csnd] issue associated with importing ctcsound in python

Date2019-10-26 19:29
FromMike M
Subject[Csnd] issue associated with importing ctcsound in python
I have enjoyed Cabbage and CsoundQt for a quite a while, but wanted to use a Python API to do some more complex stuff with interfacing Csound with different python controlled hardware. I am a currently using a raspberry pi for my project. Unfortunately, I am a novice with building programs and generally in installing things in linux and so I am seriosuly struggling to get ctcsound to work.  

I created a symlink to libcsound64.so.6.0 in usr/lib as suggested in the following thread...

https://github.com/csound/ctcsound/issues/6

and I still get an AttributeError: /usr/lib/libcsound64.so: undefined symbol: csoundCompileTreeAsync

according to the github thread this is associated with using the wrong version of ctcsound, but I used the ctcsound.py file from my csound-6.13.0/interfaces folder, not github so I am confused as to why I am still getting this error.  

If anyone has ideas of how to fix this problem I would be very thankful.  

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-10-26 21:06
FromVictor Lazzarini
SubjectRe: [Csnd] issue associated with importing ctcsound in python
Hi Mike,

I think the problem might be that the ctcsound.py you are using is a newer version
to the csoundlib you are linking to.

The error msg says ctcsound can't find a
certain API function that was probably introduced in a later version of Csound.

François might know more.

Prof. Victor Lazzarini
Maynooth University
Ireland
> On 26 Oct 2019, at 19:39, Mike M  wrote:
> 
> I have enjoyed Cabbage and CsoundQt for a quite a while, but wanted to use a Python API to do some more complex stuff with interfacing Csound with different python controlled hardware. I am a currently using a raspberry pi for my project. Unfortunately, I am a novice with building programs and generally in installing things in linux and so I am seriosuly struggling to get ctcsound to work.  
> 
> I created a symlink to libcsound64.so.6.0 in usr/lib as suggested in the following thread...
> 
> https://github.com/csound/ctcsound/issues/6
> 
> and I still get an AttributeError: /usr/lib/libcsound64.so: undefined symbol: csoundCompileTreeAsync
> 
> according to the github thread this is associated with using the wrong version of ctcsound, but I used the ctcsound.py file from my csound-6.13.0/interfaces folder, not github so I am confused as to why I am still getting this error.  
> 
> If anyone has ideas of how to fix this problem I would be very thankful.  
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-10-26 21:13
FromRichard
SubjectRe: [Csnd] issue associated with importing ctcsound in python
How did you install Csound on the Rpi?

Did you do a 'sudo apt-get update' and a 'sudo apt-get upgrade' first?

Richard

On 26/10/2019 20:29, Mike M wrote:
> I have enjoyed Cabbage and CsoundQt for a quite a while, but wanted to use a Python API to do some more complex stuff with interfacing Csound with different python controlled hardware. I am a currently using a raspberry pi for my project. Unfortunately, I am a novice with building programs and generally in installing things in linux and so I am seriosuly struggling to get ctcsound to work.
>
> I created a symlink to libcsound64.so.6.0 in usr/lib as suggested in the following thread...
>
> https://github.com/csound/ctcsound/issues/6
>
> and I still get an AttributeError: /usr/lib/libcsound64.so: undefined symbol: csoundCompileTreeAsync
>
> according to the github thread this is associated with using the wrong version of ctcsound, but I used the ctcsound.py file from my csound-6.13.0/interfaces folder, not github so I am confused as to why I am still getting this error.
>
> If anyone has ideas of how to fix this problem I would be very thankful.
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here