[Csnd] ctcsound..

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Csnd] ctcsound..

rorywalsh
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
|

Re: [Csnd] ctcsound..

Francois PINOT
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
|

Re: [Csnd] ctcsound..

rorywalsh

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
|

Re: [Csnd] ctcsound..

Francois PINOT
Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
|

Re: [Csnd] ctcsound..

Victor Lazzarini-2
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
I tried earlier versions of Python 3 but I still get the same error.

On Fri, 21 Sep 2018 at 20:52, Rory Walsh <[hidden email]> wrote:
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
|

Re: [Csnd] ctcsound..

Francois PINOT
In reply to this post by rorywalsh
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
|

Re: [Csnd] ctcsound..

Francois PINOT
That's what I did on my ubuntu 18.04 system and I got the problem. Then I installed Anaconda...

Le ven. 21 sept. 2018 à 22:15, Rory Walsh <[hidden email]> a écrit :
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
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
|

Re: [Csnd] ctcsound..

Victor Lazzarini-2
In reply to this post by rorywalsh
python 3  instead of  2.7?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 20:53, Rory Walsh <[hidden email]> wrote:

It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
In reply to this post by Francois PINOT
I'll give that a go

On Fri 21 Sep 2018, 21:26 Francois PINOT, <[hidden email]> wrote:
That's what I did on my ubuntu 18.04 system and I got the problem. Then I installed Anaconda...

Le ven. 21 sept. 2018 à 22:15, Rory Walsh <[hidden email]> a écrit :
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
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
|

Re: [Csnd] ctcsound..

Francois PINOT
In reply to this post by Victor Lazzarini-2
On a recent ubuntu 18.04 system I used  the python2.7.15 and python3.6.5 shipped with the system and I installed numpy using pip for both versions of Python. I got the "p' is not a valid pep 3118 buffer format string" problem with python2.7 and python3.6 as well. I then uninstalled numpy and installed Anaconda and got ctcsound working with both versions of Python from Anaconda.

Le ven. 21 sept. 2018 à 22:29, Victor Lazzarini <[hidden email]> a écrit :
python 3  instead of  2.7?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 20:53, Rory Walsh <[hidden email]> wrote:

It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
|

Re: [Csnd] ctcsound..

Victor Lazzarini-2
In reply to this post by Victor Lazzarini-2
I see you are using Python 3. Must be a numpy issue with ctcsound

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 21:29, Victor Lazzarini <[hidden email]> wrote:

python 3  instead of  2.7?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 20:53, Rory Walsh <[hidden email]> wrote:

It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
In reply to this post by rorywalsh
I'm running Python 3 Victor. I'll give anaconda a shot. 

On Fri 21 Sep 2018, 21:34 Rory Walsh, <[hidden email]> wrote:
I'll give that a go

On Fri 21 Sep 2018, 21:26 Francois PINOT, <[hidden email]> wrote:
That's what I did on my ubuntu 18.04 system and I got the problem. Then I installed Anaconda...

Le ven. 21 sept. 2018 à 22:15, Rory Walsh <[hidden email]> a écrit :
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
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
|

Re: [Csnd] ctcsound..

Victor Lazzarini-2
I think the problem does not appear on OSX.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 21:57, Rory Walsh <[hidden email]> wrote:

I'm running Python 3 Victor. I'll give anaconda a shot. 

On Fri 21 Sep 2018, 21:34 Rory Walsh, <[hidden email]> wrote:
I'll give that a go

On Fri 21 Sep 2018, 21:26 Francois PINOT, <[hidden email]> wrote:
That's what I did on my ubuntu 18.04 system and I got the problem. Then I installed Anaconda...

Le ven. 21 sept. 2018 à 22:15, Rory Walsh <[hidden email]> a écrit :
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
Thanks I'll try OSX again on Monday.

On Fri 21 Sep 2018, 22:06 Victor Lazzarini, <[hidden email]> wrote:
I think the problem does not appear on OSX.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 21:57, Rory Walsh <[hidden email]> wrote:

I'm running Python 3 Victor. I'll give anaconda a shot. 

On Fri 21 Sep 2018, 21:34 Rory Walsh, <[hidden email]> wrote:
I'll give that a go

On Fri 21 Sep 2018, 21:26 Francois PINOT, <[hidden email]> wrote:
That's what I did on my ubuntu 18.04 system and I got the problem. Then I installed Anaconda...

Le ven. 21 sept. 2018 à 22:15, Rory Walsh <[hidden email]> a écrit :
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
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
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
|

Re: [Csnd] ctcsound..

rorywalsh
I just installed anaconda on Windows, but still get the same error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File "vco2.py", line 16, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\Miniconda3\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.039s, CPU: 0.039s
no sound written to disk

Looks like it also installs '1.15.1'

On Fri, 21 Sep 2018 at 22:22, Rory Walsh <[hidden email]> wrote:
Thanks I'll try OSX again on Monday.

On Fri 21 Sep 2018, 22:06 Victor Lazzarini, <[hidden email]> wrote:
I think the problem does not appear on OSX.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 21:57, Rory Walsh <[hidden email]> wrote:

I'm running Python 3 Victor. I'll give anaconda a shot. 

On Fri 21 Sep 2018, 21:34 Rory Walsh, <[hidden email]> wrote:
I'll give that a go

On Fri 21 Sep 2018, 21:26 Francois PINOT, <[hidden email]> wrote:
That's what I did on my ubuntu 18.04 system and I got the problem. Then I installed Anaconda...

Le ven. 21 sept. 2018 à 22:15, Rory Walsh <[hidden email]> a écrit :
'1.15.1'

I just did a pip install numpy after installing Python3..

On Fri, 21 Sep 2018 at 21:07, Francois PINOT <[hidden email]> wrote:
Which version of Numpy? It seems it's a known bug between numpy and ctypes. See https://github.com/toinsson/pyrealsense/issues/82. I had recently this issue on a linux ubuntu 18.04 system. I installed anaconda and this solved the problem. What puzzled me was that this bug was referenced in 2013. It seems it re-appeared in recent versions of ctypes.

Le ven. 21 sept. 2018 à 21:52, Rory Walsh <[hidden email]> a écrit :
It's importing Ok, but the following script:
returns the following error:

0dBFS level = 32768.0
--Csound version 6.11 (double samples) May  9 2018
[commit: 9b981ce5160313175575b24cddb513ab322b5815]
libsndfile-1.0.29pre1
graphics suppressed, ascii substituted
0dBFS level = 32768.0
orch now loaded
audio buffered in 4096 sample-frame blocks
not writing to sound disk
SECTION 1:
Traceback (most recent call last):
  File ".\vco2.py", line 15, in <module>
    spout = cs.spout()
  File "C:\Program Files\Csound6_x64\bin\ctcsound.py", line 1208, in spout
    return np.ctypeslib.as_array(p)
  File "C:\Users\rory\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\ctypeslib.py", line 363, in as_array
    return array(obj, copy=False)
ValueError: '<P' is not a valid PEP 3118 buffer format string
inactive allocs returned to freespace
end of score.              overall amps:      0.0
           overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.018s, CPU: 0.018s
no sound written to disk


Any ideas?

On Fri, 21 Sep 2018 at 20:20, Rory Walsh <[hidden email]> wrote:
Works out of the box on Windows. There's a first.

On Fri, 21 Sep 2018 at 18:45, Rory Walsh <[hidden email]> wrote:
Thanks guys I'll try that. Next up Windows!

On Fri 21 Sep 2018, 17:40 Victor Lazzarini, <[hidden email]> wrote:
I think the ctcsound.py is not the one installed by the installer, but a manually installed with make install.

The installer places things in /Library/Python
and not in ~/Library/Python.

Remove that file and try again

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 21 Sep 2018, at 17:36, Francois PINOT <[hidden email]> wrote:

Is CsoundLib64 in the right place on your system?

Le ven. 21 sept. 2018 à 17:25, Rory Walsh <[hidden email]> a écrit :

For what it's worth, it doesn't run out of the box on OSX either, although the error is different. I get the following error after installing the very latest version of Csound for OSX. 

>>> import ctcsound

Traceback (most recent call last):

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

  File "/Users/walshr/Library/Python/2.7/lib/python/site-packages/ctcsound.py", line 33, in <module>

    libcsound = CDLL("CsoundLib64.framework/CsoundLib64")

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__

    self._handle = _dlopen(self._name, mode)

OSError: dlopen(CsoundLib64.framework/CsoundLib64, 6): image not found


I fail to see how it can't find the image when running Csound from the command line works just fine. 

On Fri, 21 Sep 2018 at 08:05, Francois PINOT <[hidden email]> wrote:
Hello Rory,

I just built on linux (Ubuntu 16.04) from the develop branch and I could not reproduce your problem. Maybe there's an old version of libcsnd6.so remaining somewhere in your system?

François

Le jeu. 20 sept. 2018 à 22:38, Rory Walsh <[hidden email]> a écrit :
I'm having issues with ctcsound on Linux. I just can't get it to play ball. Here's the output:

>>> import ctcsound
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/rory/.local/lib/python2.7/site-packages/ctcsound.py", line 2560, in <module>
    libcspt.NewCsoundPT.restype = c_void_p
  File "/usr/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: libcsnd6.so: undefined symbol: NewCsoundPT

I just built from the dev branch? I will try from the master branch and see if that's any better..
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
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
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
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
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
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
12