pchanial / pyoperators

Operators and solvers for high-performance computing.
http://pchanial.github.com/pyoperators
Other
14 stars 9 forks source link

Problems installing pysimulators linux #25

Closed susanalandau closed 2 years ago

susanalandau commented 5 years ago

Hi I have the following problem while installing pysimulators. I test it with ubuntu 18.04, ubuntu 16 and debian9 and the same problem arises. It seems a problem of the compiling option of gcc but I don t know how to fix it

Running setup.py install for pysimulators ... error Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-9VNEyM/pysimulators/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-MMSxnU-record/install-record.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 running build_pre running build_cy build_src building library "fmod" sources building extension "pysimulators._flib" sources f2py options: ['--quiet'] adding 'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/pysimulators/fortranobject.c' to sources. adding 'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/pysimulators' to include_dirs. Reading .f2py_f2cmap ... Mapping "real(kind=p)" to "double" Mapping "real(kind=sp)" to "float" Mapping "real(kind=real64)" to "double" Mapping "real(kind=dp)" to "double" Mapping "real(kind=real32)" to "float" Mapping "integer(kind=int32)" to "int" Mapping "integer(kind=int16)" to "short" Mapping "integer(kind=int64)" to "long_long" Mapping "integer(kind=int8)" to "char" Mapping "complex(kind=p)" to "complex_double" Mapping "complex(kind=sp)" to "complex_float" Mapping "complex(kind=real64)" to "complex_double" Mapping "complex(kind=dp)" to "complex_double" Mapping "complex(kind=real32)" to "complex_float" Successfully applied user defined changes from .f2py_f2cmap adding 'build/src.linux-x86_64-2.7/pysimulators/_flib-f2pywrappers2.f90' to sources. build_src: building npy-pkg config files running build_py creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/init.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/datautils.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/sparse.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/datatypes.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/operators.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/warnings.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/wcsutils.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/quantities.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/instruments.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/acquisitions.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/beams.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/mpiutils.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/geometry.py -> build/lib.linux-x86_64-2.7/pysimulators copying pysimulators/noises.py -> build/lib.linux-x86_64-2.7/pysimulators creating build/lib.linux-x86_64-2.7/pysimulators/interfaces copying pysimulators/interfaces/init.py -> build/lib.linux-x86_64-2.7/pysimulators/interfaces creating build/lib.linux-x86_64-2.7/pysimulators/interfaces/healpy copying pysimulators/interfaces/healpy/scenes.py -> build/lib.linux-x86_64-2.7/pysimulators/interfaces/healpy copying pysimulators/interfaces/healpy/init.py -> build/lib.linux-x86_64-2.7/pysimulators/interfaces/healpy copying pysimulators/interfaces/healpy/operators.py -> build/lib.linux-x86_64-2.7/pysimulators/interfaces/healpy creating build/lib.linux-x86_64-2.7/pysimulators/interfaces/madmap1 copying pysimulators/interfaces/madmap1/init.py -> build/lib.linux-x86_64-2.7/pysimulators/interfaces/madmap1 copying pysimulators/interfaces/madmap1/acquisition.py -> build/lib.linux-x86_64-2.7/pysimulators/interfaces/madmap1 creating build/lib.linux-x86_64-2.7/pysimulators/packedtables copying pysimulators/packedtables/scenes.py -> build/lib.linux-x86_64-2.7/pysimulators/packedtables copying pysimulators/packedtables/init.py -> build/lib.linux-x86_64-2.7/pysimulators/packedtables copying pysimulators/packedtables/layouts.py -> build/lib.linux-x86_64-2.7/pysimulators/packedtables copying pysimulators/packedtables/core.py -> build/lib.linux-x86_64-2.7/pysimulators/packedtables copying pysimulators/packedtables/samplings.py -> build/lib.linux-x86_64-2.7/pysimulators/packedtables running build_clib customize UnixCCompiler customize UnixCCompiler using BuildClibCommand get_default_fcompiler: matching types: '['intelem', 'gnu95']' customize IntelEM64TFCompiler Could not locate executable ifort Could not locate executable efort Could not locate executable efc customize Gnu95FCompiler Found executable /usr/bin/gfortran customize Gnu95FCompiler customize Gnu95FCompiler using BuildClibCommand building 'fmod' library creating build/temp.linux-x86_64-2.7 compiling Fortran 90 module sources Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -Ofast -march=native -openmp Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -cpp -fpack-derived -Ofast -march=native -openmp Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC creating build/temp.linux-x86_64-2.7/src creating build/temp.linux-x86_64-2.7/build creating build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/src compile options: '-DGFORTRAN -DPRECISION_REAL=8 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -c' extra options: '-Jbuild/temp.linux-x86_64-2.7 -Ibuild/temp.linux-x86_64-2.7' gfortran:f90: src/module_precision.f90 f951: Error: argument to ‘-O’ should be a non-negative integer, ‘g’, ‘s’ or ‘fast’ error: Command "/usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -cpp -fpack-derived -Ofast -march=native -openmp -DGFORTRAN -DPRECISION_REAL=8 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -c -c src/module_precision.f90 -o build/temp.linux-x86_64-2.7/src/module_precision.o -Jbuild/temp.linux-x86_64-2.7 -Ibuild/temp.linux-x86_64-2.7" failed with exit status 1

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-9VNEyM/pysimulators/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-MMSxnU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9VNEyM/pysimulators/

pchanial commented 2 years ago

Hello, development has restarted. New wheels are available for linux x86_64, macos x86_64 and arm64. Installation should be as easy as 'pip install pyoperators' Please reopen if you're still willing to test and encounter errors.