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

Problem installing the software #4

Open
miguelrgranda opened this issue Sep 7, 2022 · 4 comments
Open

Problem installing the software #4

miguelrgranda opened this issue Sep 7, 2022 · 4 comments

Comments

@miguelrgranda
Copy link

Hello,

I have found an error when installing the software. I have tried with different devices and I always found the same problem (shown below). I would greatly appreciate any help.

Thanks in advance,

Miguel

miguel@miguel-VirtualBox:~/Desktop/lensingbiases$ sudo python3.6 setup.py install
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 "LensingBiases_f" sources
f2py options: []
adding 'build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.c' to sources.
adding 'build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6' to include_dirs.
adding 'build/src.linux-x86_64-3.6/LensingBiases_f-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_py
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'nv', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'LensingBiases_f' extension
compiling C sources
C compiler: x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

compile options: '-Ibuild/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6 -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/include/python3.6m -c'
extra options: ''
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.6/LensingBiases_fmodule.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.c
x86_64-linux-gnu-gcc: error: : No such file or directory
x86_64-linux-gnu-gcc: error: : No such file or directory
error: Command "x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ibuild/src.linux-x86_64-3.6/build/src.linux-x86_64-3.6 -I/usr/local/lib/python3.6/dist-packages/numpy/core/include -I/usr/include/python3.6m -c build/src.linux-x86_64-3.6/LensingBiases_fmodule.c -o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/LensingBiases_fmodule.o -MMD -MF build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/LensingBiases_fmodule.o.d " failed with exit status 1

@JulienPeloton
Copy link
Owner

Hi @miguelrgranda

Thanks for reporting. First, note that this package was developed using python 2 (last version tested was 2.7), and I do not guarantee the compatibility with python 3.

Then it looks like a compiler error. What gcc are you using?

@miguelrgranda
Copy link
Author

Thanks for the prompt reply.
I tried installing it using Python 2.7.18 and I had the same error. I changed the gcc version to gcc (Ubuntu 5.3.1-14ubuntu2) 5.3.1 and again I obtained the same error. It is strange because the error says "error: : No such file or directory" but it does not specify the filename which is trying to get.

@JulienPeloton
Copy link
Owner

Hi @miguelrgranda , have you tried specifying the fortran compiler?

python setup.py build_ext --inplace --fcompiler=gfortran

@miguelrgranda
Copy link
Author

Hi @JulienPeloton,

Sorry for the late reply. Yes, I have also tried specifying the fortran compiler. I obtained the same error.

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

2 participants