Csound Csound-dev Csound-tekno Search About

ctcsound

Date2016-07-24 13:44
FromMitch Kaufman
Subjectctcsound
Hi,

I tried to import the latest version of ctcsound in the Jupyter notebook and I received the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-1-b46b98f49e5f> in <module>()
----> 1 import ctcsound

/home/mitch/anaconda3/lib/python3.5/site-packages/ctcsound.py in <module>()
    353 libcsound.csoundGetTable.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
    354 libcsound.csoundGetTableArgs.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
--> 355 libcsound.csoundIsNamedGEN.argtypes = [c_void_p, c_int]
    356 libcsound.csoundGetNamedGEN.argtypes = [c_void_p, c_int, c_char_p, c_int]
    357 

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getattr__(self, name)
    358         if name.startswith('__') and name.endswith('__'):
    359             raise AttributeError(name)
--> 360         func = self.__getitem__(name)
    361         setattr(self, name, func)
    362         return func

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getitem__(self, name_or_ordinal)
    363 
    364     def __getitem__(self, name_or_ordinal):
--> 365         func = self._FuncPtr((name_or_ordinal, self))
    366         if not isinstance(name_or_ordinal, int):
    367             func.__name__ = name_or_ordinal

AttributeError: /usr/local/lib/libcsound64.so: undefined symbol: csoundIsNamedGEN
Is there something wrong with my setup?

Regards,
Mitch

Date2016-07-24 15:32
FromFrancois PINOT
SubjectRe: ctcsound
csoundIsNamedGEN and csoundGetNamedGen have been added by Victor in the API after the 6.07 release. The latest version of ctcsound.py in github reflects this.

So if you want to use this latest version, you have to rebuild Csound from source. If you don't want to rebuild Csound, you should use the ctcsound.py file shipped with the 6.07 release.

Regards

François

2016-07-24 14:44 GMT+02:00 Mitch Kaufman <mitch.kaufman@hotmail.com>:
Hi,

I tried to import the latest version of ctcsound in the Jupyter notebook and I received the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-1-b46b98f49e5f> in <module>()
----> 1 import ctcsound

/home/mitch/anaconda3/lib/python3.5/site-packages/ctcsound.py in <module>()
    353 libcsound.csoundGetTable.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
    354 libcsound.csoundGetTableArgs.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
--> 355 libcsound.csoundIsNamedGEN.argtypes = [c_void_p, c_int]
    356 libcsound.csoundGetNamedGEN.argtypes = [c_void_p, c_int, c_char_p, c_int]
    357 

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getattr__(self, name)
    358         if name.startswith('__') and name.endswith('__'):
    359             raise AttributeError(name)
--> 360         func = self.__getitem__(name)
    361         setattr(self, name, func)
    362         return func

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getitem__(self, name_or_ordinal)
    363 
    364     def __getitem__(self, name_or_ordinal):
--> 365         func = self._FuncPtr((name_or_ordinal, self))
    366         if not isinstance(name_or_ordinal, int):
    367             func.__name__ = name_or_ordinal

AttributeError: /usr/local/lib/libcsound64.so: undefined symbol: csoundIsNamedGEN
Is there something wrong with my setup?

Regards,
Mitch
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-07-24 15:39
FromMitch Kaufman
SubjectRe: ctcsound
Thanks Francois.  Will the 6.07 version be up to date on the icsound that was recently incorporated.

On Jul 24, 2016, at 10:33 AM, Francois PINOT <fggpinot@GMAIL.COM> wrote:

csoundIsNamedGEN and csoundGetNamedGen have been added by Victor in the API after the 6.07 release. The latest version of ctcsound.py in github reflects this.

So if you want to use this latest version, you have to rebuild Csound from source. If you don't want to rebuild Csound, you should use the ctcsound.py file shipped with the 6.07 release.

Regards

François

2016-07-24 14:44 GMT+02:00 Mitch Kaufman <mitch.kaufman@hotmail.com>:
Hi,

I tried to import the latest version of ctcsound in the Jupyter notebook and I received the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-1-b46b98f49e5f> in <module>()
----> 1 import ctcsound

/home/mitch/anaconda3/lib/python3.5/site-packages/ctcsound.py in <module>()
    353 libcsound.csoundGetTable.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
    354 libcsound.csoundGetTableArgs.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
--> 355 libcsound.csoundIsNamedGEN.argtypes = [c_void_p, c_int]
    356 libcsound.csoundGetNamedGEN.argtypes = [c_void_p, c_int, c_char_p, c_int]
    357 

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getattr__(self, name)
    358         if name.startswith('__') and name.endswith('__'):
    359             raise AttributeError(name)
--> 360         func = self.__getitem__(name)
    361         setattr(self, name, func)
    362         return func

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getitem__(self, name_or_ordinal)
    363 
    364     def __getitem__(self, name_or_ordinal):
--> 365         func = self._FuncPtr((name_or_ordinal, self))
    366         if not isinstance(name_or_ordinal, int):
    367             func.__name__ = name_or_ordinal

AttributeError: /usr/local/lib/libcsound64.so: undefined symbol: csoundIsNamedGEN
Is there something wrong with my setup?

Regards,
Mitch
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-07-24 15:45
FromFrancois PINOT
SubjectRe: ctcsound
Icsound is now a class in the csoundmagics extension that I wrote for Jupyter (see https://github.com/fggp/ctcsound/blob/master/cookbook/07-icsound.ipynb). This class does not use the two new NamedGen functions. So it should work with the ctcsound.py file shipped with the 6.07 release.

2016-07-24 16:39 GMT+02:00 Mitch Kaufman <mitch.kaufman@hotmail.com>:
Thanks Francois.  Will the 6.07 version be up to date on the icsound that was recently incorporated.

On Jul 24, 2016, at 10:33 AM, Francois PINOT <fggpinot@GMAIL.COM> wrote:

csoundIsNamedGEN and csoundGetNamedGen have been added by Victor in the API after the 6.07 release. The latest version of ctcsound.py in github reflects this.

So if you want to use this latest version, you have to rebuild Csound from source. If you don't want to rebuild Csound, you should use the ctcsound.py file shipped with the 6.07 release.

Regards

François

2016-07-24 14:44 GMT+02:00 Mitch Kaufman <mitch.kaufman@hotmail.com>:
Hi,

I tried to import the latest version of ctcsound in the Jupyter notebook and I received the following error:

AttributeError                            Traceback (most recent call last)
<ipython-input-1-b46b98f49e5f> in <module>()
----> 1 import ctcsound

/home/mitch/anaconda3/lib/python3.5/site-packages/ctcsound.py in <module>()
    353 libcsound.csoundGetTable.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
    354 libcsound.csoundGetTableArgs.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int]
--> 355 libcsound.csoundIsNamedGEN.argtypes = [c_void_p, c_int]
    356 libcsound.csoundGetNamedGEN.argtypes = [c_void_p, c_int, c_char_p, c_int]
    357 

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getattr__(self, name)
    358         if name.startswith('__') and name.endswith('__'):
    359             raise AttributeError(name)
--> 360         func = self.__getitem__(name)
    361         setattr(self, name, func)
    362         return func

/home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getitem__(self, name_or_ordinal)
    363 
    364     def __getitem__(self, name_or_ordinal):
--> 365         func = self._FuncPtr((name_or_ordinal, self))
    366         if not isinstance(name_or_ordinal, int):
    367             func.__name__ = name_or_ordinal

AttributeError: /usr/local/lib/libcsound64.so: undefined symbol: csoundIsNamedGEN
Is there something wrong with my setup?

Regards,
Mitch
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here