| It's not hard-coded. I'll test the Linux build of all this stuff when I get a chance, probably next week sometime.
These are the requirements as I recall them:
The PYTHONPATH environment variable needs to point to a directory containing both csnd.py and _csnd.so or _csnd.pyd (not sure what it is on Linux but it looks like it is .so). csnd.py dynamically loads _csnd.so. I would try the PYTHONPATH approach if the site-packages setup is not working.
_csnd.so is linked with libcsound64.so.5.1 by the compiler. This shared library needs to be configured for loading or be or in a directory pointed to by LD_LIBRARY_PATH. It's OK for there to be a soft link. I thought, however, that the real file was libcsound64.so.5.1 and the link was libcsound64.so.
Hope this helps, more later,
Mike
-----Original Message-----
>From: Dave Phillips
>Sent: May 17, 2008 7:49 AM
>To: csound@lists.bath.ac.uk
>Subject: [Csnd] testing the example Python scripts
>
>Greetings,
>
>I finally got around to testing the Python examples in 5.08. They didn't
>work.
>
>To recap, here's the scenario: I've built and installed 5.08 with
>double-precision, the interface wrappers, and the Python extensions. The
>file _csnd.so is built but not installed with install.py. The file
>libcsnd.so is built and found in OPCODEDIR64. The csnd.py file has been
>placed in the site packages directory at /usr/local/lib/python2.5.
>According to directions from this list I also placed _csnd.so in the
>site packages directory.
>
>I tested TrappedCsd.py and received this error:
>
>dlphilp@64studio:~/src/csound5.08/examples$ python TrappedCsd.py
>Traceback (most recent call last):
> File "TrappedCsd.py", line 6, 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
>
>
>OPCODEDIR64 is set in my .bashrc file. I softlinked libcsnd.so
>libcsnd.so.5.1 but that didn't make a difference. Is _csnd.so hard-coded
>to look for libcsnd.so.5.1 elsewheres ? Perhaps I'm missing an
>environment variable ?
>
>At this point I think I've done everything I've been directed to do, but
>still get no joy with any Python/Csound scripts. Further suggestions are
>most welcome. :)
>
>Double-precision Csound is a no-go with AlgoScore. Is it perhaps a
>problem with Python too ?
>
>Best,
>
>dp
>
>
>
>Send bugs reports to this list.
>To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|