Csound Csound-dev Csound-tekno Search About

[Csnd] where does the Python stuff go ?

Date2008-05-08 18:09
FromDave Phillips
Subject[Csnd] where does the Python stuff go ?
Greetings,

I tried running Oeyvind's Barebones package, but apparently Csound 5.08 
does not install all the necessary Python opcodes, modules, and whatnot:

dlphilp@64studio:~/barebones$ python main.py
Traceback (most recent call last):
  File "main.py", line 13, in 
    import csnd
  File "/usr/local/lib/python2.5/site-packages/csnd.py", line 7, in 
    import _csnd
ImportError: No module named _csnd

So, in order to get that package and Improsculpt working under Linux, 
what else should be in the site packages directory ?

I Googled for an answer, but the information I found was outdated. 
Cesare's suggestions, for example, didn't work because there's no 
lib_csnd.so. I do have a _csnd.so sitting in the top directory of the 
Csound 5.08 sources, but simply placing it in the site-packages 
directory got me this far:

dlphilp@64studio:~/barebones$ python main.py
Traceback (most recent call last):
  File "main.py", line 13, in 
    import csnd
  File "/usr/local/lib/python2.5/site-packages/csnd.py", line 7, in 
    import _csnd
ImportError: libcsnd.so.5.1: cannot open shared object file: No such 
file or directory


And indeed, there is no such file anywhere. Sigh...

Btw, am I correct to assume that Improsculpt will work with a 
double-precision build of Csound ?

All helpful suggestions are welcome.

Best,

dp


Date2008-05-08 18:38
FromVictor Lazzarini
Subject[Csnd] Re: where does the Python stuff go ?
There should be a libcsnd.so.5.1 because if you build it from
sources, then _csnd.so is linked to it and if it doesn't exist,
the build would have failed.

Victor

At 18:09 08/05/2008, you wrote:
>Greetings,
>
>I tried running Oeyvind's Barebones package, but apparently Csound 5.08 
>does not install all the necessary Python opcodes, modules, and whatnot:
>
>dlphilp@64studio:~/barebones$ python main.py
>Traceback (most recent call last):
>  File "main.py", line 13, in 
>    import csnd
>  File "/usr/local/lib/python2.5/site-packages/csnd.py", line 7, in 
>    import _csnd
>ImportError: No module named _csnd
>
>So, in order to get that package and Improsculpt working under Linux, what 
>else should be in the site packages directory ?
>
>I Googled for an answer, but the information I found was outdated. 
>Cesare's suggestions, for example, didn't work because there's no 
>lib_csnd.so. I do have a _csnd.so sitting in the top directory of the 
>Csound 5.08 sources, but simply placing it in the site-packages directory 
>got me this far:
>
>dlphilp@64studio:~/barebones$ python main.py
>Traceback (most recent call last):
>  File "main.py", line 13, in 
>    import csnd
>  File "/usr/local/lib/python2.5/site-packages/csnd.py", line 7, in 
>    import _csnd
>ImportError: libcsnd.so.5.1: cannot open shared object file: No such file 
>or directory
>
>
>And indeed, there is no such file anywhere. Sigh...
>
>Btw, am I correct to assume that Improsculpt will work with a 
>double-precision build of Csound ?
>
>All helpful suggestions are welcome.
>
>Best,
>
>dp
>
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>csound"

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth


Date2008-05-08 19:55
From"Bruce H. McCosar"
Subject[Csnd] Re: where does the Python stuff go ?
I encountered the same thing, and had to install the python
modules by hand.

http://www.nabble.com/Re%3A-Re%3A-Re%3A-Tentative-request-p17094654.html

Briefly, after the build, follow up with this post-install
script:

[script must be used in the Csound5 build directory] 

sudo mv /usr/lib/python2.5/site-packages/csnd.py 
/usr/local/lib/python2.5/site-packages/ 

sudo mv CompositionBase.py CsoundAC.py 
/usr/local/lib/python2.5/site-packages/ 

sudo mv _csnd.so _CsoundAC.so lib_CsoundAC.so 
/usr/local/lib/python2.5/site-packages/

--- Dave Phillips  wrote:

> Greetings,
> 
> I tried running Oeyvind's Barebones package, but apparently
> Csound 5.08 
> does not install all the necessary Python opcodes, modules,
> and whatnot:


Date2008-05-08 21:24
FromDave Phillips
Subject[Csnd] Re: Re: where does the Python stuff go ?
Victor Lazzarini wrote:
> There should be a libcsnd.so.5.1 because if you build it from
> sources, then _csnd.so is linked to it and if it doesn't exist,
> the build would have failed. 
Sorry, yes it is there. However, it is not linked to _csnd.so, they are 
separate files.

I tried Bruce's script, got a no-go after that too. I try this:

python main.py

And I get this:

dlphilp@64studio:~/barebones$ python main.py
Traceback (most recent call last):
  File "main.py", line 13, in 
    import csnd
  File "/usr/local/lib/python2.5/site-packages/csnd.py", line 7, in 
    import _csnd
ImportError: libcsnd.so.5.1: cannot open shared object file: No such 
file or directory


Libcsnd.so is in the plugins directory, AFAICT it's a stripped copy of 
libcsnd.so.5.1. There is a file named _csnd.so sitting in the top level 
of my Csound source build. Is it supposed to be somewhere else ?

Sorry, I'm still not clear about what exactly is supposed to go from 
Csound into the Python site-packages folder in order to run Oeyvind's code.

Best,

dp


Date2008-05-08 21:38
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Re: where does the Python stuff go ?
AttachmentsNone  

Date2008-05-08 22:13
From"Steven Yi"
Subject[Csnd] Re: Re: Re: where does the Python stuff go ?
AttachmentsNone  

Date2008-05-09 01:58
FromFelipe Sateler
Subject[Csnd] Re: Re: Re: where does the Python stuff go ?
AttachmentsNone  

Date2008-05-10 19:07
From"Chuckk Hubbard"
Subject[Csnd] Re: Re: Re: Re: where does the Python stuff go ?
AttachmentsNone  

Date2008-05-11 00:38
FromFelipe Sateler
Subject[Csnd] Re: Re: Re: Re: Re: where does the Python stuff go ?
AttachmentsNone