Csound Csound-dev Csound-tekno Search About

[Csnd] _csnd6.so: mach-o, but wrong architecture

Date2013-06-12 18:43
Fromzappfinger
Subject[Csnd] _csnd6.so: mach-o, but wrong architecture
I am trying to follow Jake's "Ipython proof of concept" with Csound6, but I
get:
In [3]:

import sys
sys.path.append('/Library/Python/2.7/site-packages/')
import csnd6 as csnd
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
 in ()
      1 import sys
      2 sys.path.append('/Library/Python/2.7/site-packages/')
----> 3 import csnd6 as csnd

/Library/Python/2.7/site-packages/csnd6.py in ()
     24                 fp.close()
     25             return _mod
---> 26     _csnd6 = swig_import_helper()
     27     del swig_import_helper
     28 else:

/Library/Python/2.7/site-packages/csnd6.py in swig_import_helper()
     20         if fp is not None:
     21             try:
---> 22                 _mod = imp.load_module('_csnd6', fp, pathname,
description)
     23             finally:
     24                 fp.close()

ImportError: dlopen(/Library/Python/2.7/site-packages/_csnd6.so, 2): no
suitable image found.  Did find:
	/Library/Python/2.7/site-packages/_csnd6.so: mach-o, but wrong architecture


Is this because for Ipython I use the 32-bit Enthought Canopy version and
_csnd6.so is 64 bits?

Richard




--
View this message in context: http://csound.1045644.n5.nabble.com/csnd6-so-mach-o-but-wrong-architecture-tp5724457.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-06-12 18:47
FromSteven Yi
SubjectRe: [Csnd] _csnd6.so: mach-o, but wrong architecture
Hi Richard,

That's exactly it.  I had moved to distributing x86_64-only releases
as I had planned on using homebrew-built everything for the release.
That was problematic so I switched back to custom-built libraries.  I
can probably go back to i386/x86_64 fat binaries now, but I need to
get through the Android RC3 build first.  I wrote a todo to take a
look at that later today. For now though, you should be able to use an
x86_64 python.  I'll reply to this thread when I sort through the fat
binary build and have something posted on Sourceforge.

Thanks!
steven

On Wed, Jun 12, 2013 at 1:43 PM, zappfinger  wrote:
> I am trying to follow Jake's "Ipython proof of concept" with Csound6, but I
> get:
> In [3]:
>
> import sys
> sys.path.append('/Library/Python/2.7/site-packages/')
> import csnd6 as csnd
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
>  in ()
>       1 import sys
>       2 sys.path.append('/Library/Python/2.7/site-packages/')
> ----> 3 import csnd6 as csnd
>
> /Library/Python/2.7/site-packages/csnd6.py in ()
>      24                 fp.close()
>      25             return _mod
> ---> 26     _csnd6 = swig_import_helper()
>      27     del swig_import_helper
>      28 else:
>
> /Library/Python/2.7/site-packages/csnd6.py in swig_import_helper()
>      20         if fp is not None:
>      21             try:
> ---> 22                 _mod = imp.load_module('_csnd6', fp, pathname,
> description)
>      23             finally:
>      24                 fp.close()
>
> ImportError: dlopen(/Library/Python/2.7/site-packages/_csnd6.so, 2): no
> suitable image found.  Did find:
>         /Library/Python/2.7/site-packages/_csnd6.so: mach-o, but wrong architecture
>
>
> Is this because for Ipython I use the 32-bit Enthought Canopy version and
> _csnd6.so is 64 bits?
>
> Richard
>
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/csnd6-so-mach-o-but-wrong-architecture-tp5724457.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"
>

Date2013-06-12 18:49
FromVictor Lazzarini
SubjectRe: [Csnd] _csnd6.so: mach-o, but wrong architecture
yes, _csnd6.so is x86_64, so it only works with x86_64 (or universal) binaries.

For the official release, we might build universal binaries again, but for the moment,
the pre-release binaries are only x86_64.

Victor
On 12 Jun 2013, at 18:43, zappfinger wrote:

> Is this because for Ipython I use the 32-bit Enthought Canopy version and
> _csnd6.so is 64 bits?
> 
> Richard

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





Date2013-06-13 00:04
FromSteven Yi
SubjectRe: [Csnd] _csnd6.so: mach-o, but wrong architecture
Hi Richard,

I've updated the rc3 for OSX 10.8.  Could you try downloading that and
giving it a try?  Hopefully everything should be compiled for i386 and
x86_64 now.

Thanks!
steven

On Wed, Jun 12, 2013 at 1:49 PM, Victor Lazzarini
 wrote:
> yes, _csnd6.so is x86_64, so it only works with x86_64 (or universal) binaries.
>
> For the official release, we might build universal binaries again, but for the moment,
> the pre-release binaries are only x86_64.
>
> Victor
> On 12 Jun 2013, at 18:43, zappfinger wrote:
>
>> Is this because for Ipython I use the 32-bit Enthought Canopy version and
>> _csnd6.so is 64 bits?
>>
>> Richard
>
> 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"
>

Date2013-06-13 20:00
FromRichard van Bemmelen
SubjectRe: [Csnd] _csnd6.so: mach-o, but wrong architecture
Hi Steven,

I downloaded and installed again, but I get:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-0bfc3c890163> in <module>()
      1 import sys
      2 sys.path.append('/Library/Python/2.7/site-packages/')
----> 3 import csnd6 as csnd

/Library/Python/2.7/site-packages/csnd6.py in <module>()
     24                 fp.close()
     25             return _mod
---> 26     _csnd6 = swig_import_helper()
     27     del swig_import_helper
     28 else:

/Library/Python/2.7/site-packages/csnd6.py in swig_import_helper()
     20         if fp is not None:
     21             try:
---> 22                 _mod = imp.load_module('_csnd6', fp, pathname, description)
     23             finally:
     24                 fp.close()

ImportError: dlopen(/Library/Python/2.7/site-packages/_csnd6.so, 2): Library not loaded: libcsnd.6.0.dylib
  Referenced from: /Library/Python/2.7/site-packages/_csnd6.so
  Reason: image not found

I must say that yesterday I switched to a 64 version of Python (Anaconda) and removed Enthought (32 bit). But then when I tried to run the notebook example the Ipython kernel died. So I tried your new rc3 version just now with the above error. But what has changed? Is this not also a 64-bit version? Then in theory it should run with Anaconda python. But maybe, because of the Anaconda install, the libcsnd.6.0.dylib got installed somewhere else...

Richard


2013/6/13 Steven Yi <stevenyi@gmail.com>
Hi Richard,

I've updated the rc3 for OSX 10.8.  Could you try downloading that and
giving it a try?  Hopefully everything should be compiled for i386 and
x86_64 now.

Thanks!
steven

On Wed, Jun 12, 2013 at 1:49 PM, Victor Lazzarini
<Victor.Lazzarini@nuim.ie> wrote:
> yes, _csnd6.so is x86_64, so it only works with x86_64 (or universal) binaries.
>
> For the official release, we might build universal binaries again, but for the moment,
> the pre-release binaries are only x86_64.
>
> Victor
> On 12 Jun 2013, at 18:43, zappfinger wrote:
>
>> Is this because for Ipython I use the 32-bit Enthought Canopy version and
>> _csnd6.so is 64 bits?
>>
>> Richard
>
> 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"
>


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"