Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcsound64.so not found #6

Closed
levinericzimmermann opened this issue Nov 15, 2017 · 2 comments
Closed

libcsound64.so not found #6

levinericzimmermann opened this issue Nov 15, 2017 · 2 comments

Comments

@levinericzimmermann
Copy link

levinericzimmermann commented Nov 15, 2017

Hello everybody,

when I try to import the ctcsound module in a python3 interpreter, I got the following error message:

import ctcsound

OSError: libcsound64.so: cannot open shared object file: No such file or directory

I use Ubuntu 17.10 64 bit Version and I have a installed Csound version 6.09.1 (double samples) (installed via apt-get) on my computer.

I tried to import the ctcsound module, which I cloned from this Github repository. The shell doesn't find the libcsound64.so - file neither:

find / libcsound64.so

find: ‘libcsound64.so’: No such file or directory

Do I have to install Csound differently?

@levinericzimmermann
Copy link
Author

I found libcsound64.so.6.0 in usr/lib. I changed the ctcsound.py - file to:

if sys.platform.startswith('linux'):
    libcsound = CDLL("libcsound64.so.6.0")

Unfortunately I get an error:

import ctcsound

AttributeError: /usr/lib/libcsound64.so.6.0: undefined symbol: csoundCompileTreeAsync

@fggp
Copy link
Collaborator

fggp commented Nov 17, 2017

You should create a symlink to libcsound64.so.6.0 in usr/lib:
cd /usr/lib
sudo ln -s libcsound64.so.6.0 libcsound64.so

It's a cleaner way.

Then the Attribute error is due to the fact that the csoundCompileTreeAsync method didn't exist in Csound6.09.01. You should use the ctcsound.py file shipped within the apt package instead. The ctcsound.py file in the github repo is synced with the develop branch of Csound and thus it can refer to methods that don't exist in earlier versions of Csound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants