ctcsound mystery

classic Classic list List threaded Threaded
7 messages Options
öh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ctcsound mystery

öh
Hello list,

Maybe someone here can help me clear this up, since I read that csnd6 will be deprecated in the near future.

If I try to import as usual, this happens:

Python 2.7.5 (default, Nov  6 2016, 12:19:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 216, in <module>
    libcsound.csoundGetA4.restype = MYFLT
  File "C:\Program Files\Side Effects Software\Houdini 16.0.671\python27\lib\ctypes\__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "C:\Program Files\Side Effects Software\Houdini 16.0.671\python27\lib\ctypes\__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'csoundGetA4' not found
>>>

However, if I import csnd6 first, everything works. Just curious as to why this is happening and what to do when csnd6 is no more.

cheers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] ctcsound mystery

Victor Lazzarini-2
Can you outline platform, csound version, etc.?

csnd6 will not be deprecated as such, but when Csound moves version 7, it is likely that there will not be a csnd7, only ctcsound.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 2 Aug 2017, at 13:10, öh <[hidden email]> wrote:
>
> Hello list,
>
> Maybe someone here can help me clear this up, since I read that csnd6 will
> be deprecated in the near future.
>
> If I try to import as usual, this happens:
>
>
>
> However, if I import csnd6 first, everything works. Just curious as to why
> this is happening and what to do when csnd6 is no more.
>
> cheers
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/ctcsound-mystery-tp5757375.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> Csound mailing list
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] ctcsound mystery

Francois PINOT
In reply to this post by öh
csnd6 is still active but it is recommended to use ctcsound instead. ctcsound can work with python 2.7 and python 3.x as well, and it uses numpy arrays as data structures ; so if you use ctcsound, numpy is needed.

What does happen when you import ctcsound (your message does not show anything)?

François

2017-08-02 14:10 GMT+02:00 öh <[hidden email]>:
Hello list,

Maybe someone here can help me clear this up, since I read that csnd6 will
be deprecated in the near future.

If I try to import as usual, this happens:



However, if I import csnd6 first, everything works. Just curious as to why
this is happening and what to do when csnd6 is no more.

cheers



--
View this message in context: http://csound.1045644.n5.nabble.com/ctcsound-mystery-tp5757375.html
Sent from the Csound - General mailing list archive at Nabble.com.

Csound mailing list
[hidden email]
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 [hidden email] 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
öh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] ctcsound mystery

öh
Ok, seems raw text disappears in nabble...?

anyway, here's what happens:

Python 2.7.5 (default, Nov  6 2016, 12:19:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 216, in <module>
    libcsound.csoundGetA4.restype = MYFLT
  File "C:\Program Files\Side Effects Software\Houdini 16.0.671\python27\lib\ctypes\__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "C:\Program Files\Side Effects Software\Houdini 16.0.671\python27\lib\ctypes\__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'csoundGetA4' not found

I'm on Windows 10 64 bit, Csound 6.09.1, Python as above

öh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] ctcsound mystery

Victor Lazzarini-2
Looks like a mismatch between ctcsound.py and the installed Csound. You might have an old version
of Csound that ctcsound tries to load, and it can’t find an API function introduced in a later version.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 2 Aug 2017, at 13:53, öh <[hidden email]> wrote:
>
> Ok, seems raw text disappears in nabble...?
>
> anyway, here's what happens:
>
> Python 2.7.5 (default, Nov  6 2016, 12:19:41) [MSC v.1900 64 bit (AMD64)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import ctcsound
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 216, in <module>
>    libcsound.csoundGetA4.restype = MYFLT
>  File "C:\Program Files\Side Effects Software\Houdini
> 16.0.671\python27\lib\ctypes\__init__.py", line 378, in __getattr__
>    func = self.__getitem__(name)
>  File "C:\Program Files\Side Effects Software\Houdini
> 16.0.671\python27\lib\ctypes\__init__.py", line 383, in __getitem__
>    func = self._FuncPtr((name_or_ordinal, self))
> AttributeError: function 'csoundGetA4' not found
>
> I'm on Windows 10 64 bit, Csound 6.09.1, Python as above
>
> öh
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/ctcsound-mystery-tp5757375p5757379.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> Csound mailing list
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] ctcsound mystery

Francois PINOT
In reply to this post by öh
The function csoundGetA4 was added recently in the API. It should be present in csound 6.09.1. Maybe an older version of the csound64.dll is still there on your system and is called in place of the more recent one?

François

2017-08-02 14:53 GMT+02:00 öh <[hidden email]>:
Ok, seems raw text disappears in nabble...?

anyway, here's what happens:

Python 2.7.5 (default, Nov  6 2016, 12:19:41) [MSC v.1900 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 216, in <module>
    libcsound.csoundGetA4.restype = MYFLT
  File "C:\Program Files\Side Effects Software\Houdini
16.0.671\python27\lib\ctypes\__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "C:\Program Files\Side Effects Software\Houdini
16.0.671\python27\lib\ctypes\__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'csoundGetA4' not found

I'm on Windows 10 64 bit, Csound 6.09.1, Python as above

öh



--
View this message in context: http://csound.1045644.n5.nabble.com/ctcsound-mystery-tp5757375p5757379.html
Sent from the Csound - General mailing list archive at Nabble.com.

Csound mailing list
[hidden email]
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 [hidden email] 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
öh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Csnd] ctcsound mystery

öh
This post has NOT been accepted by the mailing list yet.
well,

The ctcsound.py I'm using is the one shipping with 6.09.1. I did a proper uninstall of the previous Csound before installing this one.

I did a search for the csound64.dll on my system drive, and I do have another one, but it's part of Cabbage and - hopefully - should not conflict with the main Csound installation. I mean, I've had no other issues between the two. I have also checked environment variables, and it's all looking good.

The weird thing is that all works smoothly if I import csnd6 first.

So, this is really no problem, I just wonder why it happens or if anyone had the same issue.

Many thanks for the fast response btw!

öh
Loading...