kelleydv / Eidyia

A scientific python environment configured with Vagrant
MIT License
20 stars 0 forks source link

f2py not found #3

Open kelleydv opened 10 years ago

kelleydv commented 10 years ago

This should be installed with numpy. I installed gfortran explicitly in hopes that it would be available https://github.com/stemdev/Eidyia/commit/3da4f53e8bc472f50739485a0eff7ac5734e8bb6 - to no avail.

From Lecture-6A-Fortran-and-C:

In [4]:  !f2py -c -m hellofortran hellofortran.f
         /bin/sh: 1: f2py: not found
kelleydv commented 10 years ago

/usr/bin/f2py3/f2py3 exists... so I tried:

In [4]:  !f2py3 -c -m hellofortran hellofortran.f
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "hellofortran" sources
f2py options: []
f2py:> /tmp/tmpz0chxm/src.linux-x86_64-3.3/hellofortranmodule.c
creating /tmp/tmpz0chxm
creating /tmp/tmpz0chxm/src.linux-x86_64-3.3
IOError: [Errno 2] No such file or directory: 'hellofortran.f'. Skipping file "hellofortran.f".
Reading fortran codes...
Post-processing...
Post-processing (stage 2)...
Building modules...
error: f2py target file '/tmp/tmpz0chxm/src.linux-x86_64-3.3/hellofortranmodule.c' not generated

I don't fully understand the last line. Could be a permissions issue?