Csound Csound-dev Csound-tekno Search About

[Csnd-dev] ctcsound error on import

Date2021-10-16 01:51
From"Worrall, David"
Subject[Csnd-dev] ctcsound error on import

Hello everybody,


One of my students is having a problem with the latest version of csound (OSX 64bit as per the csound website)


Her process:

  1. Install Anaconda python3

  2. Install csound

Try to import ctcsound in to python.

Error is:


Python 3.8.8 (default, Apr 13 2021, 12:59:45) 

[Clang 10.0.0 ] :: Anaconda, Inc. on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> import ctcsound

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/Users/jrostollan/Desktop/dson/ctcsound.py", line 2705, in <module>

    libcspt.NewCsoundPT.restype = ct.c_void_p

  File "/opt/anaconda3/lib/python3.8/ctypes/__init__.py", line 394, in __getattr__

    func = self.__getitem__(name)

  File "/opt/anaconda3/lib/python3.8/ctypes/__init__.py", line 399, in __getitem__

    func = self._FuncPtr((name_or_ordinal, self))

AttributeError: dlsym(RTLD_DEFAULT, NewCsoundPT): symbol not found


So python is finding the file but there’s a config or versioning problem, perhaps.

Anyone have any clue what to do?


Many thanks,




Dr David Worrall

Professor, Audio Arts and Acoustics

Columbia College Chicago

33 E. Ida B. Wells Drive Room 601A

Chicago, ILLINOIS, USA 60605

Wikipedia    Facebook    Soundcloud     Youtube    

Personal research/creative practice website: avatar.com.au

Organised Sound issue (25/1): Computation in the Sonic Arts

Book: Sonification Design: From data to intelligible soundfields (Springer)