[f2py] Hello; f2py on Mac OS X with gfortran
jdgleeson at mac.com
Fri Jul 22 09:08:30 EEST 2005
On Jul 21, 2005, at 3:34 PM, Andreas Voellmy wrote:
> I compiled (manually) without the -lcc_dynamic option. So I
> compiled this:
> /usr/local/bin/gfortran -Wl,-framework -Wl,Python -bundle
> -L/usr/local/lib/gcc/powerpc-apple-darwin9.1.0/4.1.0 -lg2c -o
> The command was successful and it built my hello.so file.
> However, when I start up python and type "import hello", I get this
> Fatal Python error: Interpreter not initialzed (version mismatch?)
> Abort trap
> I am using Python 2.3.5.
> Does anybody know how I can fix this?
> Thanks, Andreas
The problem is that python was compiled with gcc 3.3:
Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Switch from gcc 4.0 to 3.3 using the command 'gcc_select 3.3'.
You can get a compatible g77 binary (v. 3.4) at HPC for OS X <http://
More information about the f2py-users