Csound Csound-dev Csound-tekno Search About

[Csnd] Csound on OS X 10.6.8 / illegal instruction

Date2013-01-26 18:49
Fromzappfinger
Subject[Csnd] Csound on OS X 10.6.8 / illegal instruction
Ok, so I finallly upgraded my Macbook 10.5.8 to OS X 10.6.8. 
(besides from a slow startup and the mouse being not responsive for a while
this seems to work)

But now I a trying to download Csound from Sourceforge. Weird things happen.
I cannot download a version for OS X 10.6.8, download stops but the file is
way too small.
So I tried csound5.19.02-OSX10.7-universal. This download works, but after
installing it and running csound in the terminal I get only : Illegal
instruction. 
So I guess the OSX10.7 version is not compatible with 10.6.8?

Richard





--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-01-26 21:24
Fromzappfinger
Subject[Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
I downloaded csound5.19.01-OSX10.6 and that works on the command line.

But in Python, 'import cnsd' gives 'no module named csnd'.

I have struggled with this before...




--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719606.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-01-27 00:33
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
The python module is installed in 

/Library/Python//site-packages

check what you have installed in your disk. If the  dir does match your version,  copy the contents of the latest version installed
into the correction  dir.

On 26 Jan 2013, at 21:24, zappfinger wrote:

> I downloaded csound5.19.01-OSX10.6 and that works on the command line.
> 
> But in Python, 'import cnsd' gives 'no module named csnd'.
> 
> I have struggled with this before...
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719606.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 00:43
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
*does not match*
On 27 Jan 2013, at 00:33, Victor Lazzarini wrote:

> The python module is installed in 
> 
> /Library/Python//site-packages
> 
> check what you have installed in your disk. If the  dir does match your version,  copy the contents of the latest version installed
> into the correction  dir.
> 
> On 26 Jan 2013, at 21:24, zappfinger wrote:
> 
>> I downloaded csound5.19.01-OSX10.6 and that works on the command line.
>> 
>> But in Python, 'import cnsd' gives 'no module named csnd'.
>> 
>> I have struggled with this before...
>> 
>> 
>> 
>> 
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719606.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 11:11
Fromzappfinger
Subject[Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
Python is looking in the right folder now, the import of csnd works, but now
it complains about _csnd.so 'no suitable image found'. (seen that one before
also)

Where is the correct version of csnd.py and _csnd.so installed?

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719617.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-01-27 11:36
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
it should work with 2.7. It does work here in my machine with MacPython 2.7.3.
It used to work with 2.6, but it now seems that that's not the case anymore. Anyway, if you want to use Python, it's best to have the latest Python 2 version anyway. 

Victor
On 27 Jan 2013, at 11:11, zappfinger wrote:

> Python is looking in the right folder now, the import of csnd works, but now
> it complains about _csnd.so 'no suitable image found'. (seen that one before
> also)
> 
> Where is the correct version of csnd.py and _csnd.so installed?
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719617.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 13:05
Fromzappfinger
Subject[Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
I installed python2.7.3-macOS10.6, so that is not the Mac python.
But this version is not installed in /library/python/2.7
It is installed in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7.
I think this is a well known problem with python 2.7 on Mac
So I created 'Users/richard/Library/Python/2.7/lib/python/site-packages' and
put the contents of my existing site-packages (that contained csnd.py and
_csnd.so) in there.
But apparently this was not the correct version.

It's messy...




--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719620.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-01-27 14:16
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
This is the Python you need to install:

http://www.python.org/ftp/python/2.7.3/python-2.7.3-macosx10.6.dmg

This is the one I have and it is working here.

Regards

Victor
On 27 Jan 2013, at 13:05, zappfinger wrote:

> I installed python2.7.3-macOS10.6, so that is not the Mac python.
> But this version is not installed in /library/python/2.7
> It is installed in
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7.
> I think this is a well known problem with python 2.7 on Mac
> So I created 'Users/richard/Library/Python/2.7/lib/python/site-packages' and
> put the contents of my existing site-packages (that contained csnd.py and
> _csnd.so) in there.
> But apparently this was not the correct version.
> 
> It's messy...
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719620.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 20:19
Fromzappfinger
Subject[Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
That is the one i have used also.
Installed it again, then installed Csound again, to no avail...

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719640.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-01-27 20:21
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
Let me try reinstalling it to see if I can replicate. Could you paste here the error message?

On 27 Jan 2013, at 20:19, zappfinger wrote:

> That is the one i have used also.
> Installed it again, then installed Csound again, to no avail...
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719640.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 20:27
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
I have re-installed Python and it still works. I wonder if you should try replicating what I have here:

coltrane:~ victor$ ls -l /Library/Python/2.7/site-packages/
total 416
lrwxr-xr-x  1 root    admin      78 27 Jan 15:14 CsoundAC.py -> /Library/Frameworks/CsoundLib64.framework/Resources/Python/Current/CsoundAC.py
-rw-rw-r--  1 root    admin     119  8 Jul  2009 README
lrwxr-xr-x  1 root    admin      79 27 Jan 15:14 _CsoundAC.so -> /Library/Frameworks/CsoundLib64.framework/Resources/Python/Current/_CsoundAC.so
lrwxr-xr-x  1 root    admin      75 27 Jan 15:14 _csnd.so -> /Library/Frameworks/CsoundLib64.framework/Resources/Python/Current/_csnd.so
lrwxr-xr-x  1 root    admin      74 27 Jan 15:14 csnd.py -> /Library/Frameworks/CsoundLib64.framework/Resources/Python/Current/csnd.py
-rw-r--r--  1 victor  admin  195265 27 Jan 15:15 csnd.pyc

If you create the directory /Library/Python/2.7/site-packages/, then the Csound installer will see it and put the links above when
you install it.

Victor
On 27 Jan 2013, at 20:19, zappfinger wrote:

> That is the one i have used also.
> Installed it again, then installed Csound again, to no avail...
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719640.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 20:28
Fromzappfinger
Subject[Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
The original error message was:
import csnd
Traceback (most recent call last):
  File "", line 1, in 
  File "/Users/richard/Library/Python/2.7/lib/python/site-packages/csnd.py",
line 5, in 
    import _csnd
ImportError:
dlopen(/Users/richard/Library/Python/2.7/lib/python/site-packages/_csnd.so,
2): no suitable image found.  Did find:
	/Users/richard/Library/Python/2.7/lib/python/site-packages/_csnd.so:
unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01
0x00

(After that I found another version of _csnd.so in a dir somewhere and
overwrote the original, which made it worse. But that's not relevant, I
thought that a fresh install of csound would correct that)

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719642.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-01-27 20:35
FromVictor Lazzarini
SubjectRe: [Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
Looks like things are not in the right places. Try following my suggestion, it will place things correctly.
On 27 Jan 2013, at 20:28, zappfinger wrote:

> The original error message was:
> import csnd
> Traceback (most recent call last):
>  File "", line 1, in 
>  File "/Users/richard/Library/Python/2.7/lib/python/site-packages/csnd.py",
> line 5, in 
>    import _csnd
> ImportError:
> dlopen(/Users/richard/Library/Python/2.7/lib/python/site-packages/_csnd.so,
> 2): no suitable image found.  Did find:
> 	/Users/richard/Library/Python/2.7/lib/python/site-packages/_csnd.so:
> unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x01 0x01 0x01
> 0x00
> 
> (After that I found another version of _csnd.so in a dir somewhere and
> overwrote the original, which made it worse. But that's not relevant, I
> thought that a fresh install of csound would correct that)
> 
> Richard
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719642.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-01-27 20:37
Fromzappfinger
Subject[Csnd] Re: Csound on OS X 10.6.8 / illegal instruction
YES!
This did the trick!

thanks,


Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-OS-X-10-6-8-illegal-instruction-tp5719597p5719645.html
Sent from the Csound - General mailing list archive at Nabble.com.