Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] ctcsound7 import error

joachim heintz <[email protected]>
Newsgroups gmane.comp.audio.csound.devel
Message-ID <[email protected]>
in line 77-78 of ctcsound.py i see:

APIVERSION = libcsound.csoundGetAPIVersion()
VERSION = libcsound.csoundGetVersion()

is there no difference any more between API version and version, or is 
there another function to return the version?

On 08/01/2025 20:27, Victor Lazzarini wrote:
> That function was removed. There is a csoundGetVersion().
> 
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 8 Jan 2025, at 19:03, joachim heintz <[email protected]> wrote:
>>
>> *Warning*
>>
>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>
>> i have csound7 in latest develop installed.  when i try to import
>> ctcsound7 i get this error:
>>
>>>>> import ctcsound7
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/home/jh/.local/lib/python3.11/site-packages/ctcsound7.py",
>> line 77, in <module>
>>     APIVERSION = libcsound.csoundGetAPIVersion()
>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>   File "/usr/lib/python3.11/ctypes/__init__.py", line 389, in __getattr__
>>     func = self.__getitem__(name)
>>            ^^^^^^^^^^^^^^^^^^^^^^
>>   File "/usr/lib/python3.11/ctypes/__init__.py", line 394, in __getitem__
>>     func = self._FuncPtr((name_or_ordinal, self))
>>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> AttributeError: /usr/local/lib/libcsound64.so: undefined symbol:
>> csoundGetAPIVersion
>>
>> any idea how to solve?
>> thanks -
>>        joachim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.