dodiku
dodiku

Reputation: 141

Can't import csnd6 for Csound's python API

I try to use Csound's Python API. Therefore, I try to import the 'csnd6' package:
import csnd6.

For some reason, the package is not installed on my machine:
ImportError: No module named csnd6.

This is my setup:
- Python 2.7.11
- Csound 6.08
- Mac OS X 10.12.1

How can I fix it?
(or) How can I install this package?

Thanks!!

Upvotes: 1

Views: 835

Answers (1)

dodiku
dodiku

Reputation: 141

I found the problem.

From the Csound 6.08 release notes:

"ctcsound.py, a new FFI interface for Python was introduced in version 6.07.
It is now the recommended interface for Python,
csnd6.py being deprecated."

Here is the link to the ctcsound.py package repository -
https://github.com/fggp/ctcsound

NOTE: You might have to add the ctcsound.py file to the Python packages folder manually: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7

Upvotes: 1

Related Questions