[Numpy-discussion] F2PY error : ... on platform 'posix' with 'gcc' compiler
Robert Kern
robert.kern at gmail.com
Fri Sep 25 15:30:15 EDT 2009
On Fri, Sep 25, 2009 at 14:08, Arthur Bousquet <arthbous at indiana.edu> wrote:
> Ok, so I re-compiled python (without framework), numpy,... So I can compile
> my lib (libsw) now, bu I can't called it from python. I got this error :
>
> Arths-MacBook-Pro:run_1 arthbous$ ./run.sh
> Traceback (most recent call last):
> File "../main.py", line 23, in <module>
> import libsw as lsw
> ImportError: dlopen(/Users/arthbous/Documents/SW/sw-v2.3/libsw.so, 2): no
> suitable image found. Did find:
> /Users/arthbous/Documents/SW/sw-v2.3/libsw.so: mach-o, but wrong
> architecture
>
> It seems to compile for the wrong architecture. Do you know about this ?
Find the architecture of libsw.so using file:
$ file /Users/arthbous/Documents/SW/sw-v2.3/libsw.so
It is likely that it is only x86 while your Python is running using
the x86_64 architecture.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion
mailing list