Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashpy instalation - fortran problem #7

Open
DianKusumawati opened this issue Mar 14, 2017 · 7 comments
Open

hashpy instalation - fortran problem #7

DianKusumawati opened this issue Mar 14, 2017 · 7 comments

Comments

@DianKusumawati
Copy link

Greetings,

I installed HashPy. Before that I installed gfortran via Cygwin (gcc-fortran package from Cygwin, I only installed gcc-fortran) following this tutorial link http://stackoverflow.com/questions/36250303/fortran-sources-but-no-fortran-compiler-found. Then I add the Path system.
path

But, when I installed HashPy I encountered this problem:

hashpy problem fortran

Should I installed different fortran compiler?

Thank you

@markcwill
Copy link
Owner

I don't use Anaconda, so I'm not sure... Are you running it inside cygwin? Maybe Anaconda has a separate path system? I can't see your whole error message. You may need libgfortran installed, and you may also need the python headers. You must have numpy installed before you try to build. If you already have obspy installed, you already have numpy.

@markcwill
Copy link
Owner

The phrase unresolved external symbol means that you are either missing a library (possible) or more likely, the Fortran compiler is using symbols your linker doesn't understand. I don't think you need a different compiler, but you may need to do more steps to get the compiler and linker to understand each other.

This software was built for use on a Linux system, so because you are on Windows, you may need to give the compiler special instructions. The build script uses numpy.distutils which is the same procedure as f2py. You may find some help here: https://www.scivision.co/f2py-running-fortran-code-in-python-on-windows/

@DianKusumawati
Copy link
Author

Thank you for your reply,

I don't know whether my cygwin and anaconda have different path system. But, environmental variable showing these for the cygwin and Anaconda2:
pathanaandcyg

I have libgfortran3 and gccfortran in cygwin:

dell@Dian ~
$ cygcheck -c
Cygwin Package Information
Package                  Version            Status
_autorebase              001004-1           OK
alternatives             1.3.30c-10         OK
base-cygwin              3.8-1              OK
base-files               4.2-4              OK
bash                     4.4.12-3           OK
binutils                 2.25-4             OK
bzip2                    1.0.6-3            OK
ca-certificates          2.11-1             OK
coreutils                8.26-2             OK
cygutils                 1.4.15-2           OK
cygwin                   2.7.0-1            OK
cygwin-devel             2.7.0-1            OK
dash                     0.5.9.1-1          OK
diffutils                3.5-2              OK
editrights               1.03-1             OK
file                     5.25-1             OK
findutils                4.6.0-1            OK
gawk                     4.1.4-3            OK
gcc-core                 5.4.0-1            OK
gcc-fortran              5.4.0-1            OK
getent                   2.18.90-4          OK
grep                     3.0-2              OK
groff                    1.22.3-1           OK
gzip                     1.8-1              OK
hostname                 3.13-1             OK
info                     6.3-1              OK
ipc-utils                1.0-2              OK
less                     481-1              OK
libargp                  20110921-3         OK
libatomic1               5.4.0-1            OK
libattr1                 2.4.46-1           OK
libblkid1                2.25.2-2           OK
libbz2_1                 1.0.6-3            OK
libffi6                  3.2.1-2            OK
libgcc1                  5.4.0-1            OK
libgdbm4                 1.12-1             OK
libgfortran3             5.4.0-1            OK
libgmp10                 6.1.2-1            OK
libgomp1                 5.4.0-1            OK
libiconv                 1.14-3             OK
libiconv2                1.14-3             OK
libintl8                 0.19.8.1-2         OK
libisl13                 0.14.1-1           OK
liblzma5                 5.2.2-1            OK
libmpc3                  1.0.3-1            OK
libmpfr4                 3.1.5-1            OK
libncursesw10            6.0-9.20170121     OK
libopenssl100            1.0.2k-1           OK
libp11-kit0              0.22.1-1           OK
libpcre1                 8.40-2             OK
libpipeline1             1.4.0-1            OK
libpopt-common           1.16-2             OK
libpopt0                 1.16-2             OK
libquadmath0             5.4.0-1            OK
libreadline7             7.0.3-3            OK
libsigsegv2              2.10-2             OK
libsmartcols1            2.25.2-2           OK
libssp0                  5.4.0-1            OK
libstdc++6               5.4.0-1            OK
libtasn1_6               4.9-1              OK
libuuid1                 2.25.2-2           OK
libvtv0                  5.4.0-1            OK
login                    1.11-1             OK
man-db                   2.7.5-2            OK
mintty                   2.7.5-0            OK
ncurses                  6.0-9.20170121     OK
openssl                  1.0.2k-1           OK
p11-kit                  0.22.1-1           OK
p11-kit-trust            0.22.1-1           OK
rebase                   4.4.2-1            OK
run                      1.3.4-2            OK
sed                      4.4-1              OK
tar                      1.29-1             OK
terminfo                 6.0-9.20170121     OK
tzcode                   2016j-1            OK
tzdata                   2017a-1            OK
util-linux               2.25.2-2           OK
vim-minimal              8.0.0329-1         OK
w32api-headers           4.0.4-1            OK
w32api-runtime           4.0.4-1            OK
which                    2.20-2             OK
windows-default-manifest 6.4-1              OK
xz                       5.2.2-1            OK
zlib0                    1.2.8-3            OK

dell@Dian ~
$

I have numpy installed, but I cannot find f2py in my obspy environment.

Here is the full error code from the Anaconda Prompt:

(C:\Users\dell\Anaconda2) C:\Users\dell>activate obspy

(obspy) C:\Users\dell>pip install https://github.com/markcwill/hashpy/archive/ma
ster.zip
Collecting https://github.com/markcwill/hashpy/archive/master.zip
Downloading https://github.com/markcwill/hashpy/archive/master.zip (1.2MB)
100% |################################| 1.2MB 52kB/s
Installing collected packages: HASHpy
Running setup.py install for HASHpy ... error
Complete output from command C:\Users\dell\Anaconda2\envs\obspy\python.exe -
u -c "import setuptools, tokenize;file='c:\users\dell\appdata\local\tem
p\pip-7iea6s-build\setup.py';f=getattr(tokenize, 'open', open)(file);code=
f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))"
install --record c:\users\dell\appdata\local\temp\pip-jfi2q_-record\install-reco
rd.txt --single-version-externally-managed --compile:
running install
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 "hashpy.libhashpy" sources
f2py options: []
adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
adding 'build\src.win-amd64-2.7' to include_dirs.
adding 'build\src.win-amd64-2.7\hashpy\libhashpy-f2pywrappers.f' to source
s.
build_src: building npy-pkg config files
running build_py
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\hashpy
copying hashpy\doublecouple.py -> build\lib.win-amd64-2.7\hashpy
copying hashpy\hashpype.py -> build\lib.win-amd64-2.7\hashpy
copying hashpy_init_.py -> build\lib.win-amd64-2.7\hashpy
creating build\lib.win-amd64-2.7\hashpy\io
copying hashpy\io\antelopeIO.py -> build\lib.win-amd64-2.7\hashpy\io
copying hashpy\io\core.py -> build\lib.win-amd64-2.7\hashpy\io
copying hashpy\io\fpfitIO.py -> build\lib.win-amd64-2.7\hashpy\io
copying hashpy\io\obspyIO.py -> build\lib.win-amd64-2.7\hashpy\io
copying hashpy\io_init_.py -> build\lib.win-amd64-2.7\hashpy\io
creating build\lib.win-amd64-2.7\hashpy\plotting
copying hashpy\plotting\focalmechplotter.py -> build\lib.win-amd64-2.7\hashp
y\plotting
copying hashpy\plotting_init_.py -> build\lib.win-amd64-2.7\hashpy\plotti
ng
creating build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\param.inc -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\rot.inc -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\vel.inc -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\Makefile -> build\lib.win-amd64-2.7\hashpy\src
creating build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\dbhash.pf -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.kds -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.kds_orig -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.lab1 -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.north -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.pickema1 -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.pickema2 -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.pickema3 -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.sgm1 -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.socal -> build\lib.win-amd64-2.7\hashpy\data
copying hashpy\data\vz.vb1 -> build\lib.win-amd64-2.7\hashpy\data
creating build\lib.win-amd64-2.7\hashpy\scripts
copying hashpy\scripts\dbhash -> build\lib.win-amd64-2.7\hashpy\scripts
copying hashpy\scripts\hash_driver2.py -> build\lib.win-amd64-2.7\hashpy\scr
ipts
copying hashpy\scripts\hash_utils.py -> build\lib.win-amd64-2.7\hashpy\scrip
ts
copying hashpy\scripts_init_.py -> build\lib.win-amd64-2.7\hashpy\scripts

copying hashpy\src\fmamp_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\fmech_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\pol_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\station_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\station_subs_5char.f -> build\lib.win-amd64-2.7\hashpy\sr
c
copying hashpy\src\uncert_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\util_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\vel_subs.f -> build\lib.win-amd64-2.7\hashpy\src
copying hashpy\src\vel_subs2.f -> build\lib.win-amd64-2.7\hashpy\src
running build_ext
customize MSVCCompiler
customize MSVCCompiler using build_ext
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Found executable C:\cygwin64\bin\DF.exe
Found executable C:\cygwin64\bin\DF.exe
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\cygwin64\bin\gfortran.exe
Found executable C:\cygwin64\bin\gfortran.exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'hashpy.libhashpy' extension
compiling C sources
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\build
creating build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\hashpy
C:\Users\dell\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python
9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ibuild\src.win-amd
64-2.7 -IC:\Users\dell\Anaconda2\envs\obspy\lib\site-packages\numpy\core\include
-IC:\Users\dell\Anaconda2\envs\obspy\include -IC:\Users\dell\Anaconda2\envs\obs
py\PC /Tcbuild\src.win-amd64-2.7\hashpy\libhashpymodule.c /Fobuild\temp.win-amd6
4-2.7\Release\build\src.win-amd64-2.7\hashpy\libhashpymodule.obj
Found executable C:\Users\dell\AppData\Local\Programs\Common\Microsoft\Visua
l C++ for Python\9.0\VC\Bin\amd64\cl.exe
C:\Users\dell\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python
9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Ibuild\src.win-amd
64-2.7 -IC:\Users\dell\Anaconda2\envs\obspy\lib\site-packages\numpy\core\include
-IC:\Users\dell\Anaconda2\envs\obspy\include -IC:\Users\dell\Anaconda2\envs\obs
py\PC /Tcbuild\src.win-amd64-2.7\fortranobject.c /Fobuild\temp.win-amd64-2.7\Rel
ease\build\src.win-amd64-2.7\fortranobject.obj
compiling Fortran sources
Fortran f77 compiler: C:\cygwin64\bin\gfortran.exe -Wall -g -ffixed-form -fn
o-second-underscore -O0
Fortran f90 compiler: C:\cygwin64\bin\gfortran.exe -Wall -g -fno-second-unde
rscore -O0
Fortran fix compiler: C:\cygwin64\bin\gfortran.exe -Wall -g -ffixed-form -fn
o-second-underscore -Wall -g -fno-second-underscore -O0
creating build\temp.win-amd64-2.7\Release\hashpy
creating build\temp.win-amd64-2.7\Release\hashpy\src
compile options: '-Ibuild\src.win-amd64-2.7 -IC:\Users\dell\Anaconda2\envs\o
bspy\lib\site-packages\numpy\core\include -IC:\Users\dell\Anaconda2\envs\obspy\i
nclude -IC:\Users\dell\Anaconda2\envs\obspy\PC -c'
gfortran.exe:f77: hashpy\src\fmamp_subs.f
gfortran.exe:f77: hashpy\src\fmech_subs.f
gfortran.exe:f77: hashpy\src\uncert_subs.f
gfortran.exe:f77: hashpy\src\util_subs.f
gfortran.exe:f77: hashpy\src\pol_subs.f
gfortran.exe:f77: hashpy\src\vel_subs.f
gfortran.exe:f77: hashpy\src\station_subs.f
gfortran.exe:f77: hashpy\src\vel_subs2.f
gfortran.exe:f77: build\src.win-amd64-2.7\hashpy\libhashpy-f2pywrappers.f
Found executable C:\cygwin64\bin\cygpath.exe
C:\Users\dell\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python
9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\cygwin64\lib
gcc\x86_64-pc-cygwin\5.4.0 /LIBPATH:C:\Users\dell\Anaconda2\envs\obspy\libs /LIB
PATH:C:\Users\dell\Anaconda2\envs\obspy\PCbuild\amd64 /LIBPATH:C:\Users\dell\Ana
conda2\envs\obspy\PC\VS9.0\amd64 /LIBPATH:C:\Users\dell\Anaconda2\envs\obspy\lib
s /LIBPATH:C:\Users\dell\Anaconda2\envs\obspy\PCbuild\amd64 /LIBPATH:C:\Users\de
ll\Anaconda2\envs\obspy\PC\VS9.0\amd64 /EXPORT:initlibhashpy build\temp.win-amd6
4-2.7\Release\build\src.win-amd64-2.7\hashpy\libhashpymodule.obj build\temp.win-
amd64-2.7\Release\build\src.win-amd64-2.7\fortranobject.obj build\temp.win-amd64
-2.7\Release\hashpy\src\fmamp_subs.o build\temp.win-amd64-2.7\Release\hashpy\src
\fmech_subs.o build\temp.win-amd64-2.7\Release\hashpy\src\uncert_subs.o build\te
mp.win-amd64-2.7\Release\hashpy\src\util_subs.o build\temp.win-amd64-2.7\Release
\hashpy\src\pol_subs.o build\temp.win-amd64-2.7\Release\hashpy\src\vel_subs.o bu
ild\temp.win-amd64-2.7\Release\hashpy\src\station_subs.o build\temp.win-amd64-2.
7\Release\hashpy\src\vel_subs2.o build\temp.win-amd64-2.7\Release\build\src.win-
amd64-2.7\hashpy\libhashpy-f2pywrappers.o /OUT:build\lib.win-amd64-2.7\hashpy\li
bhashpy.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\has
hpy\libhashpy.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release\build\src.win-a
md64-2.7\hashpy\libhashpy.pyd.manifest
Found executable C:\Users\dell\AppData\Local\Programs\Common\Microsoft\Visua
l C++ for Python\9.0\VC\Bin\amd64\link.exe
libhashpymodule.obj : warning LNK4197: export 'initlibhashpy' specified mult
iple times; using first specification
Creating library build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7
\hashpy\libhashpy.lib and object build\temp.win-amd64-2.7\Release\build\src.win-
amd64-2.7\hashpy\libhashpy.exp
vel_subs.o : error LNK2001: unresolved external symbol ___chkstk_ms
vel_subs2.o : error LNK2019: unresolved external symbol __chkstk_ms referen
ced in function mk_table_add
fmamp_subs.o : error LNK2001: unresolved external symbol ___chkstk_ms
fmech_subs.o : error LNK2001: unresolved external symbol ___chkstk_ms
uncert_subs.o : error LNK2001: unresolved external symbol ___chkstk_ms
pol_subs.o : error LNK2001: unresolved external symbol __chkstk_ms
fmamp_subs.o : error LNK2019: unresolved external symbol lroundf referenced
in function focalamp_mc
fmech_subs.o : error LNK2001: unresolved external symbol lroundf
station_subs.o : error LNK2001: unresolved external symbol _gfortran_st_writ
e
vel_subs2.o : error LNK2019: unresolved external symbol gfortran_st_write r
eferenced in function mk_table_add
fmamp_subs.o : error LNK2001: unresolved external symbol _gfortran_st_write
fmech_subs.o : error LNK2001: unresolved external symbol _gfortran_st_write
pol_subs.o : error LNK2001: unresolved external symbol _gfortran_st_write
vel_subs.o : error LNK2001: unresolved external symbol _gfortran_st_write
station_subs.o : error LNK2001: unresolved external symbol _gfortran_transfe
r_character_write
vel_subs2.o : error LNK2019: unresolved external symbol gfortran_transfer_c
haracter_write referenced in function mk_table_add
fmamp_subs.o : error LNK2001: unresolved external symbol gfortran_transfer
character_write
fmech_subs.o : error LNK2001: unresolved external symbol gfortran_transfer
character_write
pol_subs.o : error LNK2001: unresolved external symbol _gfortran_transfer_ch
aracter_write
vel_subs.o : error LNK2001: unresolved external symbol _gfortran_transfer_ch
aracter_write
station_subs.o : error LNK2001: unresolved external symbol _gfortran_st_writ
e_done
vel_subs2.o : error LNK2019: unresolved external symbol gfortran_st_write_d
one referenced in function mk_table_add
fmamp_subs.o : error LNK2001: unresolved external symbol gfortran_st_write
done
fmech_subs.o : error LNK2001: unresolved external symbol gfortran_st_write
done
pol_subs.o : error LNK2001: unresolved external symbol _gfortran_st_write_do
ne
vel_subs.o : error LNK2001: unresolved external symbol _gfortran_st_write_do
ne
fmamp_subs.o : error LNK2019: unresolved external symbol gfortran_rand refe
renced in function focalamp_mc
fmech_subs.o : error LNK2001: unresolved external symbol _gfortran_rand
vel_subs.o : error LNK2019: unresolved external symbol gfortran_transfer_in
teger_write referenced in function mk_table
vel_subs.o : error LNK2019: unresolved external symbol gfortran_st_read ref
erenced in function mk_table
station_subs.o : error LNK2001: unresolved external symbol _gfortran_st_read

vel_subs2.o : error LNK2001: unresolved external symbol _gfortran_st_read
vel_subs.o : error LNK2019: unresolved external symbol _gfortran_transfer_in
teger referenced in function mk_table_
station_subs.o : error LNK2001: unresolved external symbol _gfortran_transfe
r_integer
vel_subs.o : error LNK2019: unresolved external symbol gfortran_st_read_don
e referenced in function mk_table
station_subs.o : error LNK2001: unresolved external symbol _gfortran_st_read
_done
vel_subs2.o : error LNK2001: unresolved external symbol _gfortran_st_read_do
ne
vel_subs.o : error LNK2019: unresolved external symbol gfortran_transfer_ch
aracter referenced in function mk_table
station_subs.o : error LNK2001: unresolved external symbol _gfortran_transfe
r_character
vel_subs.o : error LNK2019: unresolved external symbol gfortran_st_open ref
erenced in function mk_table
station_subs.o : error LNK2001: unresolved external symbol _gfortran_st_open

vel_subs2.o : error LNK2001: unresolved external symbol _gfortran_st_open
vel_subs.o : error LNK2019: unresolved external symbol _gfortran_transfer_re
al referenced in function mk_table_
station_subs.o : error LNK2001: unresolved external symbol _gfortran_transfe
r_real
vel_subs2.o : error LNK2001: unresolved external symbol _gfortran_transfer_r
eal
vel_subs.o : error LNK2019: unresolved external symbol gfortran_st_close re
ferenced in function mk_table
station_subs.o : error LNK2001: unresolved external symbol _gfortran_st_clos
e
vel_subs2.o : error LNK2001: unresolved external symbol _gfortran_st_close
vel_subs.o : error LNK2019: unresolved external symbol gfortran_transfer_re
al_write referenced in function get_tts
build\lib.win-amd64-2.7\hashpy\libhashpy.pyd : fatal error LNK1120: 15 unres
olved externals
error: Command "C:\Users\dell\AppData\Local\Programs\Common\Microsoft\Visual
C++ for Python\9.0\VC\Bin\amd64\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:
C:\cygwin64\lib\gcc\x86_64-pc-cygwin\5.4.0 /LIBPATH:C:\Users\dell\Anaconda2\envs
\obspy\libs /LIBPATH:C:\Users\dell\Anaconda2\envs\obspy\PCbuild\amd64 /LIBPATH:C
:\Users\dell\Anaconda2\envs\obspy\PC\VS9.0\amd64 /LIBPATH:C:\Users\dell\Anaconda
2\envs\obspy\libs /LIBPATH:C:\Users\dell\Anaconda2\envs\obspy\PCbuild\amd64 /LIB
PATH:C:\Users\dell\Anaconda2\envs\obspy\PC\VS9.0\amd64 /EXPORT:initlibhashpy bui
ld\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\hashpy\libhashpymodule.obj
build\temp.win-amd64-2.7\Release\build\src.win-amd64-2.7\fortranobject.obj buil
d\temp.win-amd64-2.7\Release\hashpy\src\fmamp_subs.o build\temp.win-amd64-2.7\Re
lease\hashpy\src\fmech_subs.o build\temp.win-amd64-2.7\Release\hashpy\src\uncert
_subs.o build\temp.win-amd64-2.7\Release\hashpy\src\util_subs.o build\temp.win-a
md64-2.7\Release\hashpy\src\pol_subs.o build\temp.win-amd64-2.7\Release\hashpy\s
rc\vel_subs.o build\temp.win-amd64-2.7\Release\hashpy\src\station_subs.o build\t
emp.win-amd64-2.7\Release\hashpy\src\vel_subs2.o build\temp.win-amd64-2.7\Releas
e\build\src.win-amd64-2.7\hashpy\libhashpy-f2pywrappers.o /OUT:build\lib.win-amd
64-2.7\hashpy\libhashpy.pyd /IMPLIB:build\temp.win-amd64-2.7\Release\build\src.w
in-amd64-2.7\hashpy\libhashpy.lib /MANIFESTFILE:build\temp.win-amd64-2.7\Release
\build\src.win-amd64-2.7\hashpy\libhashpy.pyd.manifest" failed with exit status
1120

----------------------------------------
Command "C:\Users\dell\Anaconda2\envs\obspy\python.exe -u -c "import setuptools,
tokenize;file='c:\users\dell\appdata\local\temp\pip-7iea6s-build\set
up.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\user
s\dell\appdata\local\temp\pip-jfi2q_-record\install-record.txt --single-version-
externally-managed --compile" failed with error code 1 in c:\users\dell\appdata
local\temp\pip-7iea6s-build\

(obspy) C:\Users\dell>

@DianKusumawati
Copy link
Author

I try your link Sir, https://www.scivision.co/f2py-running-fortran-code-in-python-on-windows/
and I follow, creating file in C:\Users\dell\Anaconda2\Lib\distutils\distutils.cfg with content

[build] compiler=cygwin64

But still doesn't work.

Is the problem due to I don't have f2py package in my conda?

@DianKusumawati
Copy link
Author

Sorry Sir,
I just googled about f2py, I guess it is already inside numpy.

@DianKusumawati
Copy link
Author

Dear Sir,

I would like to report,
The fortran compiler (I followed your link you gave https://www.scivision.co/f2py-running-fortran-code-in-python-on-windows/) works fine, when I installed HashPy in plain Python 2.7, and finally I could install HashPy in Python 2.7 (Windows 8.1).

But there was problem when importing it:

Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import hashpy

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import hashpy
  File "C:\Python27\lib\site-packages\hashpy\__init__.py", line 13, in <module>
    from hashpype import HashPype, HashError
  File "C:\Python27\lib\site-packages\hashpy\hashpype.py", line 20, in <module>
    from pwd import getpwuid
ImportError: No module named pwd
>>> 

Perhaps Windows doesn't have pwd module.

Thank you.

@scivision
Copy link

scivision commented Mar 20, 2017

This is fixed by #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants