I\'m trying (and failing) to compile a fortran module (specifically igrf12.f from the BGS) using f2py and Python 3.6 on Windows 10. Python was installed using Anaconda 4.4.1
I had the same issue, in particular the: ValueError: Symbol table not found of Method 3.
dsholes' answer was the solution, plus 2 minor points:
x86_64-8.1.0-posix-seh-rt_v6-rev0 ), install itmingw64/bin to PATHf2py -c fortran_file.F90 -m module_name --compiler=mingw32
runs fine, and can be imported properly in Python: import module_nameHowever:
your modules should be compiled in the same windows partition as Mingw32 is installed. Else (mingw was under C:\, my project under D:\, I get the following error, due to Relative paths not being read from one partition to another: f2py target file 'C:\\...' not generated
the compiled file may still require some external librairies. In my case, the libquadmath-0.dll in mingw64\bin is needed and should remain in the PATH at all time. Else I get a the following error: ImportError: DLL load failed:. I ended up identifying these dll and copying them within my project.