Csound Csound-dev Csound-tekno Search About

[Csnd] ctcsound gives error with Python2.x, not 3.x

Date2019-03-03 18:28
FromRichard
Subject[Csnd] ctcsound gives error with Python2.x, not 3.x
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/ctcsound.py", line 33, in 

     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

It works fine with Python 3.5

Richard

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

Date2019-03-03 20:43
FromFrancois PINOT
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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

Date2019-03-03 21:05
FromRichard
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x

Yes, it is 64 bit...

Richard

On 03/03/2019 21:43, Francois PINOT wrote:
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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

Date2019-03-04 07:44
FromFrancois PINOT
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x
Are you using the ctcsound.py file shipped with the release of Csound you're using?  What's happening if you try to use csnd6?

François

Le dim. 3 mars 2019 à 22:05, Richard <zappfinger@gmail.com> a écrit :

Yes, it is 64 bit...

Richard

On 03/03/2019 21:43, Francois PINOT wrote:
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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

Date2019-03-04 08:01
FromVictor Lazzarini
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x
This seems to be the Apple-supplied Python. Why don't you try installing 2.7 from python.org? Maybe that's the problem.

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

On 4 Mar 2019, at 07:46, Francois PINOT <fggpinot@gmail.com> wrote:

Are you using the ctcsound.py file shipped with the release of Csound you're using?  What's happening if you try to use csnd6?

François

Le dim. 3 mars 2019 à 22:05, Richard <zappfinger@gmail.com> a écrit :

Yes, it is 64 bit...

Richard

On 03/03/2019 21:43, Francois PINOT wrote:
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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

Date2019-03-04 20:25
FromRichard
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x

I have installed Python 2.7 from the official site, but PyCharm does not see it.

Apparently installing Python on OS X is not that easy. Many references even talk about installing XCode and homebrew first. Not going to do that (to much space required). Is there an easy way?

Richard

On 04/03/2019 09:01, Victor Lazzarini wrote:
This seems to be the Apple-supplied Python. Why don't you try installing 2.7 from python.org? Maybe that's the problem.

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

On 4 Mar 2019, at 07:46, Francois PINOT <fggpinot@gmail.com> wrote:

Are you using the ctcsound.py file shipped with the release of Csound you're using?  What's happening if you try to use csnd6?

François

Le dim. 3 mars 2019 à 22:05, Richard <zappfinger@gmail.com> a écrit :

Yes, it is 64 bit...

Richard

On 03/03/2019 21:43, Francois PINOT wrote:
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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

Date2019-03-04 20:42
FromVictor Lazzarini
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x
I  never had any issues, always installed from
python.org, nothing else.


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

On 4 Mar 2019, at 20:25, Richard <zappfinger@gmail.com> wrote:

I have installed Python 2.7 from the official site, but PyCharm does not see it.

Apparently installing Python on OS X is not that easy. Many references even talk about installing XCode and homebrew first. Not going to do that (to much space required). Is there an easy way?

Richard

On 04/03/2019 09:01, Victor Lazzarini wrote:
This seems to be the Apple-supplied Python. Why don't you try installing 2.7 from python.org? Maybe that's the problem.

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

On 4 Mar 2019, at 07:46, Francois PINOT <fggpinot@gmail.com> wrote:

Are you using the ctcsound.py file shipped with the release of Csound you're using?  What's happening if you try to use csnd6?

François

Le dim. 3 mars 2019 à 22:05, Richard <zappfinger@gmail.com> a écrit :

Yes, it is 64 bit...

Richard

On 03/03/2019 21:43, Francois PINOT wrote:
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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

Date2019-03-04 22:14
FromRory Walsh
SubjectRe: [Csnd] ctcsound gives error with Python2.x, not 3.x
I always seem to have issues with python on OSX, therefore I usually go down the homebrew option.  

On Mon, 4 Mar 2019 at 20:42, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
I  never had any issues, always installed from
python.org, nothing else.


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

On 4 Mar 2019, at 20:25, Richard <zappfinger@gmail.com> wrote:

I have installed Python 2.7 from the official site, but PyCharm does not see it.

Apparently installing Python on OS X is not that easy. Many references even talk about installing XCode and homebrew first. Not going to do that (to much space required). Is there an easy way?

Richard

On 04/03/2019 09:01, Victor Lazzarini wrote:
This seems to be the Apple-supplied Python. Why don't you try installing 2.7 from python.org? Maybe that's the problem.

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

On 4 Mar 2019, at 07:46, Francois PINOT <fggpinot@gmail.com> wrote:

Are you using the ctcsound.py file shipped with the release of Csound you're using?  What's happening if you try to use csnd6?

François

Le dim. 3 mars 2019 à 22:05, Richard <zappfinger@gmail.com> a écrit :

Yes, it is 64 bit...

Richard

On 03/03/2019 21:43, Francois PINOT wrote:
Is your Python 2.7 32 bit or 64 bit ? Csound is 64 bit so it will need a 64 bit version of Python...

François


Le dim. 3 mars 2019 à 19:28, Richard <zappfinger@gmail.com> a écrit :
When I try to use ctcsound with Python 2.7, I get this error:

   File "/Users/richard/PycharmProjects/ESMS/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

It works fine with Python 3.5

Richard

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