Csound Csound-dev Csound-tekno Search About

[Csnd] Python Csound binding error on Ubuntu 9.10 64b

Date2010-01-29 08:14
FromAkira Bergman
Subject[Csnd] Python Csound binding error on Ubuntu 9.10 64b
Hello,

I get the following on ipython interface;

***************************************************************************************************

In [1]: import csnd
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/nuri/<ipython console> in <module>()

/usr/lib/python2.6/dist-packages/csnd.py in <module>()
      5 # This file is compatible with both classic and new-style classes.

      6 
----> 7 import _csnd
      8 import new
      9 new_instancemethod = new.instancemethod

ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback

In [2]: 

******************************************************************************************************

In [2]: import CsoundAC
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/nuri/<ipython console> in <module>()

/usr/lib/python2.6/dist-packages/CsoundAC.py in <module>()
      5 # This file is compatible with both classic and new-style classes.

      6 
----> 7 import _CsoundAC
      8 import new
      9 new_instancemethod = new.instancemethod

ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback

In [3]: 

***************************************************************************************************

In other words I can not use Csound and CsoundAC from python. I reported this at Ubuntu Forums with no replies;


But I can use Python from Csound, through PYINIT+PYRUN...

Could you suggest a way of getting this working please? 
Would this work on 32b 9.10 or earlier Ubuntu versions? 

I have upgraded my PC to i5 recently and the earlier Ubuntu versions do not work on it. I can go back to my old Pentium machine to run Csound but I don't really want to do that.

Best regards.

Date2010-01-29 08:28
FromChristopher Micallef
Subject[Csnd] Re: Python Csound binding error on Ubuntu 9.10 64b
Hi Akira,

I had the exact same errors on ubuntu 9.10 too. I tried 32 bit and 64 bit editions. No luck.

I got around this by using the win32 version of csound and running it through wine. You'll need to install the win32 of python too! :)

But this really isn't a fix. It's just a work around solution :)

Cheers
Chris

On 29/01/2010, at 7:15 PM, "Akira Bergman" <akirabergman@gmail.com> wrote:

Hello,

I get the following on ipython interface;

***************************************************************************************************

In [1]: import csnd
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/nuri/<ipython console> in <module>()

/usr/lib/python2.6/dist-packages/csnd.py in <module>()
      5 # This file is compatible with both classic and new-style classes.

      6 
----> 7 import _csnd
      8 import new
      9 new_instancemethod = new.instancemethod

ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback

In [2]: 

******************************************************************************************************

In [2]: import CsoundAC
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/nuri/<ipython console> in <module>()

/usr/lib/python2.6/dist-packages/CsoundAC.py in <module>()
      5 # This file is compatible with both classic and new-style classes.

      6 
----> 7 import _CsoundAC
      8 import new
      9 new_instancemethod = new.instancemethod

ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback

In [3]: 

***************************************************************************************************

In other words I can not use Csound and CsoundAC from python. I reported this at Ubuntu Forums with no replies;


But I can use Python from Csound, through PYINIT+PYRUN...

Could you suggest a way of getting this working please? 
Would this work on 32b 9.10 or earlier Ubuntu versions? 

I have upgraded my PC to i5 recently and the earlier Ubuntu versions do not work on it. I can go back to my old Pentium machine to run Csound but I don't really want to do that.

Best regards.

Date2010-01-29 08:36
FromAkira Bergman
Subject[Csnd] Re: Re: Python Csound binding error on Ubuntu 9.10 64b
Hi Chris,

It seems someone has to bite the bullet and compile it. I don't have much experience and wanted to ask the list first. If it is as easy as compiling Sagemath I will give it a go. I saw the CVS and all that at the Csound sources site and got scared.


On Fri, Jan 29, 2010 at 7:28 PM, Christopher Micallef <chris@micallef.net.au> wrote:
Hi Akira,

I had the exact same errors on ubuntu 9.10 too. I tried 32 bit and 64 bit editions. No luck.

I got around this by using the win32 version of csound and running it through wine. You'll need to install the win32 of python too! :)

But this really isn't a fix. It's just a work around solution :)

Cheers
Chris

On 29/01/2010, at 7:15 PM, "Akira Bergman" <akirabergman@gmail.com> wrote:

Hello,

I get the following on ipython interface;

***************************************************************************************************

In [1]: import csnd
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/nuri/<ipython console> in <module>()

/usr/lib/python2.6/dist-packages/csnd.py in <module>()
      5 # This file is compatible with both classic and new-style classes.

      6 
----> 7 import _csnd
      8 import new
      9 new_instancemethod = new.instancemethod

ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback

In [2]: 

******************************************************************************************************

In [2]: import CsoundAC
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/nuri/<ipython console> in <module>()

/usr/lib/python2.6/dist-packages/CsoundAC.py in <module>()
      5 # This file is compatible with both classic and new-style classes.

      6 
----> 7 import _CsoundAC
      8 import new
      9 new_instancemethod = new.instancemethod

ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback

In [3]: 

***************************************************************************************************

In other words I can not use Csound and CsoundAC from python. I reported this at Ubuntu Forums with no replies;


But I can use Python from Csound, through PYINIT+PYRUN...

Could you suggest a way of getting this working please? 
Would this work on 32b 9.10 or earlier Ubuntu versions? 

I have upgraded my PC to i5 recently and the earlier Ubuntu versions do not work on it. I can go back to my old Pentium machine to run Csound but I don't really want to do that.

Best regards.


Date2010-01-29 08:58
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: Re: Python Csound binding error on Ubuntu 9.10 64b
AttachmentsNone  None  

Date2010-02-01 02:19
FromAkira Bergman
Subject[Csnd] Re: Re: Re: Python Csound binding error on Ubuntu 9.10 64b
No reply from Felipe. Does this mean we will have to compile Csound for ourselves to get the Python binding in Ubuntu Linux work?

On Fri, Jan 29, 2010 at 7:58 PM, <Victor.Lazzarini@nuim.ie> wrote:
Not sure this is a solution at all. The best thing is to alert the package maintainer (I think it's Felipe from this list) and see if he can fix it.
 
Victor


----- Original Message -----
From: Christopher Micallef <chris@micallef.net.au>
Date: Friday, January 29, 2010 8:28 am
Subject: [Csnd] Re: Python Csound binding error on Ubuntu 9.10 64b
To: "<csound@lists.bath.ac.uk>" <csound@lists.bath.ac.uk>

> Hi Akira,
>
> I had the exact same errors on ubuntu 9.10 too. I tried 32 bit and 64 bit editions. No luck.
>
> I got around this by using the win32 version of csound and running it through wine. You'll need to install the win32 of python too! :)
>
> But this really isn't a fix. It's just a work around solution :)
>
> Cheers
> Chris
>
> On 29/01/2010, at 7:15 PM, "Akira Bergman" <akirabergman@gmail.com> wrote:
>
> Hello,

> I get the following on ipython interface;
>
> ***************************************************************************************************
>
> In [1]: import csnd
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
>
> /home/nuri/<ipython console> in <module>()
>
> /usr/lib/python2.6/dist-packages/csnd.py in <module>()
>       5 # This file is compatible with both classic and new-style classes.
>
>       6 
> ----> 7 import _csnd
>       8 import new
>       9 new_instancemethod = new.instancemethod
>
> ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback
>
> In [2]: 
>
> ******************************************************************************************************
>
> In [2]: import CsoundAC
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
>
> /home/nuri/<ipython console> in <module>()
>
> /usr/lib/python2.6/dist-packages/CsoundAC.py in <module>()
>       5 # This file is compatible with both classic and new-style classes.
>
>       6 
> ----> 7 import _CsoundAC
>       8 import new
>       9 new_instancemethod = new.instancemethod
>
> ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol: csoundSetKillXYinCallback
>
> In [3]: 
>
> ***************************************************************************************************
>
> In other words I can not use Csound and CsoundAC from python. I reported this at Ubuntu Forums with no replies;
>
>
> But I can use Python from Csound, through PYINIT+PYRUN...
>
> Could you suggest a way of getting this working please? 
> Would this work on 32b 9.10 or earlier Ubuntu versions? 
>
> I have upgraded my PC to i5 recently and the earlier Ubuntu versions do not work on it. I can go back to my old Pentium machine to run Csound but I don't really want to do that.
>
> Best regards.

 
 
Dr Victor Lazzarini, Senior Lecturer, Dept. of Music,
National University of Ireland, Maynooth




Date2010-02-01 09:16
Frommenno
Subject[Csnd] Re: Re: Re: Python Csound binding error on Ubuntu 9.10 64b
Hi, 
i asked Felipe a few weeks ago about creating a Ubuntu package of Csound
5.11. Csound 5.12 was not published yet.
He told me that Ubuntu 5.11 was already in Debian, so it should not be too
difficult for someone to transform it into an Ubuntu package. I should track
that person that can make this package on the MOTU-list, but did not find
someone that was interested in doing so i'm afraid.

greetings,
Menno

Date2010-02-01 09:41
FromAndres Cabrera
Subject[Csnd] Re: Re: Re: Re: Python Csound binding error on Ubuntu 9.10 64b
Hi,

It's also likely that if you bet the .deb file from Debian, it will
install properly on Ubuntu.

Cheers,
Andrés

On Mon, Feb 1, 2010 at 9:16 AM, menno  wrote:
>
> Hi,
> i asked Felipe a few weeks ago about creating a Ubuntu package of Csound
> 5.11. Csound 5.12 was not published yet.
> He told me that Ubuntu 5.11 was already in Debian, so it should not be too
> difficult for someone to transform it into an Ubuntu package. I should track
> that person that can make this package on the MOTU-list, but did not find
> someone that was interested in doing so i'm afraid.
>
> greetings,
> Menno
> --
> View this message in context: http://old.nabble.com/Python-Csound-binding-error-on-Ubuntu-9.10-64b-tp27368661p27401414.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 


Andrés


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-01 10:13
FromErik de Castro Lopo
Subject[Csnd] Re: Python Csound binding error on Ubuntu 9.10 64b
Andres Cabrera wrote:

> Hi,
> 
> It's also likely that if you bet the .deb file from Debian, it will
> install properly on Ubuntu.

Actually, in general thats not true.

However, if you grab the debian source files:

    csound_W.X.Y-Z.dsc 
    csound_W.X.Y.orig.tar.gz 
    csound_W.X.Y-Z.diff.gz

then you should be able to do:

    apt-get build-deps csound
    dpkg-source -x csound_W.X.Y-Z.dsc
    cd csound-W.X.Y
    dpkg-buildpackage -us -us -rfakeroot

and build the debs on your system.

Erik

Date2010-02-01 10:41
Frombecks
Subject[Csnd] Re: Python Csound binding error on Ubuntu 9.10 64b
On Fri, Jan 29, 2010 at 9:14 AM, Akira Bergman  wrote:
> ImportError: /usr/lib/libcsnd.so.5.2: undefined symbol:
> csoundSetKillXYinCallback

i have the same problem since 5/2009 ....
see here: https://bugs.launchpad.net/ubuntu/+source/csound/+bug/378235

i solved with a custom csound deb build
ciao

Date2010-02-01 20:45
FromAkira Bergman
Subject[Csnd] Re: Re: Python Csound binding error on Ubuntu 9.10 64b
Thanks Eric, I will try that.

On Mon, Feb 1, 2010 at 9:13 PM, Erik de Castro Lopo <mle+la@mega-nerd.com> wrote:
Andres Cabrera wrote:

> Hi,
>
> It's also likely that if you bet the .deb file from Debian, it will
> install properly on Ubuntu.

Actually, in general thats not true.

However, if you grab the debian source files:

   csound_W.X.Y-Z.dsc
   csound_W.X.Y.orig.tar.gz
   csound_W.X.Y-Z.diff.gz

then you should be able to do:

   apt-get build-deps csound
   dpkg-source -x csound_W.X.Y-Z.dsc
   cd csound-W.X.Y
   dpkg-buildpackage -us -us -rfakeroot

and build the debs on your system.

Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-13 23:02
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Python Csound binding error on Ubuntu 9.10 64b
Hi all. I've been helping someone trying to use Rationale, and come to
this conclusion. He's on Ubuntu 9.10, and gets the
csoundSetKillXYinCallback undefined symbol error.

We tried what Felipe suggested to me before, LD_LIBRARY_PATH, set to
the location of libcsound64 (and added to .bashrc), but it made no
difference.
I could get him to try a .deb package, but compiling is almost
certainly outside his range of options. Has anyone heard of any
progress on this?

Thanks a lot.
-Chuckk

On Mon, Feb 1, 2010 at 10:45 PM, Akira Bergman  wrote:
> Thanks Eric, I will try that.
>
> On Mon, Feb 1, 2010 at 9:13 PM, Erik de Castro Lopo 
> wrote:
>>
>> Andres Cabrera wrote:
>>
>> > Hi,
>> >
>> > It's also likely that if you bet the .deb file from Debian, it will
>> > install properly on Ubuntu.
>>
>> Actually, in general thats not true.
>>
>> However, if you grab the debian source files:
>>
>>    csound_W.X.Y-Z.dsc
>>    csound_W.X.Y.orig.tar.gz
>>    csound_W.X.Y-Z.diff.gz
>>
>> then you should be able to do:
>>
>>    apt-get build-deps csound
>>    dpkg-source -x csound_W.X.Y-Z.dsc
>>    cd csound-W.X.Y
>>    dpkg-buildpackage -us -us -rfakeroot
>>
>> and build the debs on your system.
>>
>> Erik
>> --
>> ----------------------------------------------------------------------
>> Erik de Castro Lopo
>> http://www.mega-nerd.com/
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>



-- 
http://www.badmuthahubbard.com


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-02-14 01:50
FromAkira Bergman
Subject[Csnd] Re: Re: Re: Re: Python Csound binding error on Ubuntu 9.10 64b
I attempted what Eric suggested but I could not find one of the files at debian site (I think it was .diff file). I tried to use the .deb file but ran into a 'public key' key problem. I asked Ubuntu Forum and got nowhere.

I have not got much experience in Linux, nor in Csound, so drifted into doing other things.


On Sun, Feb 14, 2010 at 10:02 AM, Chuckk Hubbard <badmuthahubbard@gmail.com> wrote:
Hi all. I've been helping someone trying to use Rationale, and come to
this conclusion. He's on Ubuntu 9.10, and gets the
csoundSetKillXYinCallback undefined symbol error.

We tried what Felipe suggested to me before, LD_LIBRARY_PATH, set to
the location of libcsound64 (and added to .bashrc), but it made no
difference.
I could get him to try a .deb package, but compiling is almost
certainly outside his range of options. Has anyone heard of any
progress on this?

Thanks a lot.
-Chuckk

On Mon, Feb 1, 2010 at 10:45 PM, Akira Bergman <akirabergman@gmail.com> wrote:
> Thanks Eric, I will try that.
>
> On Mon, Feb 1, 2010 at 9:13 PM, Erik de Castro Lopo <mle+la@mega-nerd.com>
> wrote:
>>
>> Andres Cabrera wrote:
>>
>> > Hi,
>> >
>> > It's also likely that if you bet the .deb file from Debian, it will
>> > install properly on Ubuntu.
>>
>> Actually, in general thats not true.
>>
>> However, if you grab the debian source files:
>>
>>    csound_W.X.Y-Z.dsc
>>    csound_W.X.Y.orig.tar.gz
>>    csound_W.X.Y-Z.diff.gz
>>
>> then you should be able to do:
>>
>>    apt-get build-deps csound
>>    dpkg-source -x csound_W.X.Y-Z.dsc
>>    cd csound-W.X.Y
>>    dpkg-buildpackage -us -us -rfakeroot
>>
>> and build the debs on your system.
>>
>> Erik
>> --
>> ----------------------------------------------------------------------
>> Erik de Castro Lopo
>> http://www.mega-nerd.com/
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>



--
http://www.badmuthahubbard.com


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-02-14 07:15
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: Re: Python Csound binding error on Ubuntu 9.10 64b
All right, sorry to hear that. If I find some solution I'll certainly
post here, although I don't have high hopes for that.
-Chuckk

On Sun, Feb 14, 2010 at 3:50 AM, Akira Bergman  wrote:
> I attempted what Eric suggested but I could not find one of the files at
> debian site (I think it was .diff file). I tried to use the .deb file but
> ran into a 'public key' key problem. I asked Ubuntu Forum and got nowhere.
> I have not got much experience in Linux, nor in Csound, so drifted into
> doing other things.
>
> On Sun, Feb 14, 2010 at 10:02 AM, Chuckk Hubbard 
> wrote:
>>
>> Hi all. I've been helping someone trying to use Rationale, and come to
>> this conclusion. He's on Ubuntu 9.10, and gets the
>> csoundSetKillXYinCallback undefined symbol error.
>>
>> We tried what Felipe suggested to me before, LD_LIBRARY_PATH, set to
>> the location of libcsound64 (and added to .bashrc), but it made no
>> difference.
>> I could get him to try a .deb package, but compiling is almost
>> certainly outside his range of options. Has anyone heard of any
>> progress on this?
>>
>> Thanks a lot.
>> -Chuckk
>>
>> On Mon, Feb 1, 2010 at 10:45 PM, Akira Bergman 
>> wrote:
>> > Thanks Eric, I will try that.
>> >
>> > On Mon, Feb 1, 2010 at 9:13 PM, Erik de Castro Lopo
>> > 
>> > wrote:
>> >>
>> >> Andres Cabrera wrote:
>> >>
>> >> > Hi,
>> >> >
>> >> > It's also likely that if you bet the .deb file from Debian, it will
>> >> > install properly on Ubuntu.
>> >>
>> >> Actually, in general thats not true.
>> >>
>> >> However, if you grab the debian source files:
>> >>
>> >>    csound_W.X.Y-Z.dsc
>> >>    csound_W.X.Y.orig.tar.gz
>> >>    csound_W.X.Y-Z.diff.gz
>> >>
>> >> then you should be able to do:
>> >>
>> >>    apt-get build-deps csound
>> >>    dpkg-source -x csound_W.X.Y-Z.dsc
>> >>    cd csound-W.X.Y
>> >>    dpkg-buildpackage -us -us -rfakeroot
>> >>
>> >> and build the debs on your system.
>> >>
>> >> Erik
>> >> --
>> >> ----------------------------------------------------------------------
>> >> Erik de Castro Lopo
>> >> http://www.mega-nerd.com/
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>> >
>>
>>
>>
>> --
>> http://www.badmuthahubbard.com
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>



-- 
http://www.badmuthahubbard.com


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"