Csound Csound-dev Csound-tekno Search About

[Csnd] Rationale error

Date2009-05-05 11:03
FromDave Phillips
Subject[Csnd] Rationale error
Greetings,

When I tried to run Rationale I received this error :

dlphilp@The3800:~/src/rationale-0.2> python rationale.py
Traceback (most recent call last):
  File "rationale.py", line 40, in 
    import csnd
  File "/usr/lib/python2.5/site-packages/csnd.py", line 5, in 
    import _csnd
ImportError: dynamic module does not define init function (init_csnd)


The same error occurs on 32-bit and 64-bit Linux boxes with Csound 5.10 
compiled for double precision.

Any suggestions for a fix ?

Best,

dp


Date2009-05-05 11:36
FromOeyvind Brandtsegg
Subject[Csnd] Re: Rationale error
This looks like the usual "Python can't find Csound" error.
Can you run other Python/Csound apps? (e.g. wxController.py)
best
Oeyvind

2009/5/5 Dave Phillips :
> Greetings,
>
> When I tried to run Rationale I received this error :
>
> dlphilp@The3800:~/src/rationale-0.2> python rationale.py
> Traceback (most recent call last):
>  File "rationale.py", line 40, in 
>   import csnd
>  File "/usr/lib/python2.5/site-packages/csnd.py", line 5, in 
>   import _csnd
> ImportError: dynamic module does not define init function (init_csnd)
>
>
> The same error occurs on 32-bit and 64-bit Linux boxes with Csound 5.10
> compiled for double precision.
>
> Any suggestions for a fix ?
>
> Best,
>
> dp
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>


Date2009-05-05 11:51
FromDave Phillips
Subject[Csnd] Re: Re: Rationale error
Oeyvind Brandtsegg wrote:
> This looks like the usual "Python can't find Csound" error.
> Can you run other Python/Csound apps? (e.g. wxController.py)
>   

Grrr.... Nope, wxController.py didn't work either. The installation of 
5.10 here is by the book, csnd.py is in the right location, but 
obviously something didn't get put in the right spot.

So what's to do next ?

Best,

dp


Date2009-05-05 12:19
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: Re: Rationale error
I seem to recall that you had this issue recently too (a few weeks or
months back), did you fix it by manually creating a symlink? (maybe I
don't remember correctly?). I remember that you had done everything by
the book bac kthen also, and I was surprised that the Python csnd
module could not be found on Linux after a standard install procedure.

This should really work out of the box, the install procedure for
Linux should be checked.
Sorry not to be of more help.

Oeyvind


2009/5/5 Dave Phillips :
> Oeyvind Brandtsegg wrote:
>>
>> This looks like the usual "Python can't find Csound" error.
>> Can you run other Python/Csound apps? (e.g. wxController.py)
>>
>
> Grrr.... Nope, wxController.py didn't work either. The installation of 5.10
> here is by the book, csnd.py is in the right location, but obviously
> something didn't get put in the right spot.
>
> So what's to do next ?
>
> Best,
>
> dp
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2009-05-05 12:51
FromDave Phillips
Subject[Csnd] Re: Re: Re: Re: Rationale error
Oeyvind Brandtsegg wrote:
> I seem to recall that you had this issue recently too (a few weeks or
> months back), did you fix it by manually creating a symlink? (maybe I
> don't remember correctly?). I remember that you had done everything by
> the book bac kthen also, and I was surprised that the Python csnd
> module could not be found on Linux after a standard install procedure.
>
> This should really work out of the box, the install procedure for
> Linux should be checked.
> Sorry not to be of more help.
>
>   
Hi Oeyvind,

Thanks for your attention, I appreciate it. Alas, my former trick of 
copying libcsnd.so to /usr/lib did nothing to help, I get the same error 
regarding the init function.

It really is kind of ridiculous. The same error occurs on two machines, 
both of which have Csound 5.10 installed as per the official 
instructions, and I always end up with a PITA re: Python finding stuff. 
Is the problem with Python, Csound, or both ?

Well, I'm at a loss again. Anyone have further suggestions ?

Best,

dp


Date2009-05-05 13:38
FromVictor.Lazzarini@nuim.ie
Subject[Csnd] Re: Re: Re: Re: Rationale error
AttachmentsNone  None  

Date2009-05-05 13:57
FromDave Phillips
Subject[Csnd] Re: Re: Re: Re: Re: Rationale error
Victor.Lazzarini@nuim.ie wrote:
> ... my libcsnd.so and _csnd.so are always in my build
> directory, which in turn is in the PYTHONPATH and
> LD_LIBRARY_PATH. 

Thank you, Victor, that was the key. The PYTHONPATH included only 
/usr/lib/python2.5, nothing else. I added my Csound build directory to 
that path, Rationale 0.2 now opens and appears to be functioning properly.

Sheesh. Sorry for the noise.

Best,

dp


Date2009-05-05 14:07
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: Re: Re: Re: Re: Rationale error
Should the setting of PYTHONPATH be automated when installing on Linux ?
best
Oeyvind

2009/5/5 Dave Phillips :
> Victor.Lazzarini@nuim.ie wrote:
>>
>> ... my libcsnd.so and _csnd.so are always in my build
>> directory, which in turn is in the PYTHONPATH and
>> LD_LIBRARY_PATH.
>
> Thank you, Victor, that was the key. The PYTHONPATH included only
> /usr/lib/python2.5, nothing else. I added my Csound build directory to that
> path, Rationale 0.2 now opens and appears to be functioning properly.
>
> Sheesh. Sorry for the noise.
>
> Best,
>
> dp
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2009-05-05 14:28
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Rationale error
There should be no need for that, if _csnd.so and csnd.py go into
the usual site-packages directory.
----- Original Message ----- 
From: "Oeyvind Brandtsegg" 
To: 
Sent: Tuesday, May 05, 2009 2:07 PM
Subject: [Csnd] Re: Re: Re: Re: Re: Re: Rationale error


> Should the setting of PYTHONPATH be automated when installing on Linux ?
> best
> Oeyvind
>
> 2009/5/5 Dave Phillips :
>> Victor.Lazzarini@nuim.ie wrote:
>>>
>>> ... my libcsnd.so and _csnd.so are always in my build
>>> directory, which in turn is in the PYTHONPATH and
>>> LD_LIBRARY_PATH.
>>
>> Thank you, Victor, that was the key. The PYTHONPATH included only
>> /usr/lib/python2.5, nothing else. I added my Csound build directory to 
>> that
>> path, Rationale 0.2 now opens and appears to be functioning properly.
>>
>> Sheesh. Sorry for the noise.
>>
>> Best,
>>
>> dp
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-05 16:46
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: Re: Rationale error
Good. I'm curious about this because of 2 things:

1) if _csnd.so & csnd.py are in /usr/lib/python2.5/site-packages
you should not need to set PYTHONPATH

2) The error you reported does not make too much sense
to me: if _csnd.so was found it should contain init_csnd

ImportError: dynamic module does not define init function (init_csnd)

Regards

Victor
----- Original Message ----- 
From: "Dave Phillips" 
To: 
Sent: Tuesday, May 05, 2009 1:57 PM
Subject: [Csnd] Re: Re: Re: Re: Re: Rationale error


> Victor.Lazzarini@nuim.ie wrote:
>> ... my libcsnd.so and _csnd.so are always in my build
>> directory, which in turn is in the PYTHONPATH and
>> LD_LIBRARY_PATH.
>
> Thank you, Victor, that was the key. The PYTHONPATH included only 
> /usr/lib/python2.5, nothing else. I added my Csound build directory to 
> that path, Rationale 0.2 now opens and appears to be functioning properly.
>
> Sheesh. Sorry for the noise.
>
> Best,
>
> dp
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-05-05 20:46
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: Re: Re: Rationale error
On Tue, May 5, 2009 at 3:57 PM, Dave Phillips  wrote:
> Victor.Lazzarini@nuim.ie wrote:
>>
>> ... my libcsnd.so and _csnd.so are always in my build
>> directory, which in turn is in the PYTHONPATH and
>> LD_LIBRARY_PATH.
>
> Thank you, Victor, that was the key. The PYTHONPATH included only
> /usr/lib/python2.5, nothing else. I added my Csound build directory to that
> path, Rationale 0.2 now opens and appears to be functioning properly.
>
> Sheesh. Sorry for the noise.

Good to know; if you had this issue I can only expect other people
will.  I would bet most Rationale users won't have previous Csound
installations, though, if that was part of the problem.
I'm glad to hear it works so far.

-Chuckk

-- 
http://www.badmuthahubbard.com