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

Problems Installing #2

Open
tmgreenfield1101 opened this issue Jan 28, 2020 · 4 comments
Open

Problems Installing #2

tmgreenfield1101 opened this issue Jan 28, 2020 · 4 comments

Comments

@tmgreenfield1101
Copy link

Hi,

I'm having trouble installing PlateFlex. I have created the anaconda environment as suggested in the installation instructions but the installation throws a large amount amount of errors. I'm a little stuck at the moment and don't really understand where the error is coming from.

Any help would be great - even if it's to say that you don't know and its something wrong with my system.

Tim

p.s. I've included the terminal output below

(pflex) tg286@circinus:/space/tg286/PlateFlex$ python -m pip install .
Processing /space/tg286/PlateFlex
Requirement already satisfied: numpy>=1.15 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from plateflex==0.1.0) (1.17.5)
Requirement already satisfied: pymc3 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from plateflex==0.1.0) (3.8)
Requirement already satisfied: matplotlib in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from plateflex==0.1.0) (3.1.2)
Requirement already satisfied: seaborn in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from plateflex==0.1.0) (0.9.0)
Requirement already satisfied: arviz>=0.4.1 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (0.6.1)
Requirement already satisfied: theano>=1.0.4 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (1.0.4)
Requirement already satisfied: tqdm>=4.8.4 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (4.41.1)
Requirement already satisfied: h5py>=2.7.0 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (2.10.0)
Requirement already satisfied: pandas>=0.18.0 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (0.25.3)
Requirement already satisfied: patsy>=0.4.0 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (0.5.1)
Requirement already satisfied: scipy>=0.18.1 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pymc3->plateflex==0.1.0) (1.4.1)
Requirement already satisfied: kiwisolver>=1.0.1 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from matplotlib->plateflex==0.1.0) (1.1.0)
Requirement already satisfied: cycler>=0.10 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from matplotlib->plateflex==0.1.0) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from matplotlib->plateflex==0.1.0) (2.4.6)
Requirement already satisfied: python-dateutil>=2.1 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from matplotlib->plateflex==0.1.0) (2.8.1)
Requirement already satisfied: packaging in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from arviz>=0.4.1->pymc3->plateflex==0.1.0) (20.0)
Requirement already satisfied: netcdf4 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from arviz>=0.4.1->pymc3->plateflex==0.1.0) (1.5.3)
Requirement already satisfied: xarray>=0.11 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from arviz>=0.4.1->pymc3->plateflex==0.1.0) (0.14.1)
Requirement already satisfied: six>=1.9.0 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from theano>=1.0.4->pymc3->plateflex==0.1.0) (1.14.0)
Requirement already satisfied: pytz>=2017.2 in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from pandas>=0.18.0->pymc3->plateflex==0.1.0) (2019.3)
Requirement already satisfied: setuptools in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib->plateflex==0.1.0) (45.1.0.post20200119)
Requirement already satisfied: cftime in /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages (from netcdf4->arviz>=0.4.1->pymc3->plateflex==0.1.0) (1.0.4.2)
Building wheels for collected packages: plateflex
Building wheel for plateflex (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /space/tg286/miniconda_alt/envs/pflex/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-4_zm7t8a/setup.py'"'"'; file='"'"'/tmp/pip-req-build-4_zm7t8a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-bvv4pwnc --python-tag cp37
cwd: /tmp/pip-req-build-4_zm7t8a/
Complete output (114 lines):
running bdist_wheel
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 "plateflex.cpwt" sources
f2py options: []
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c' to sources.
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex' to include_dirs.
adding 'build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.f90' to sources.
building extension "plateflex.flex" sources
f2py options: []
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c' to sources.
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex' to include_dirs.
adding 'build/src.linux-x86_64-3.7/plateflex/flex-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_py
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/plateflex
copying plateflex/estimate.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/init.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/doc.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/classes.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/plotting.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/conf.py -> build/lib.linux-x86_64-3.7/plateflex
creating build/lib.linux-x86_64-3.7/plateflex/examples
copying plateflex/examples/data.zip -> build/lib.linux-x86_64-3.7/plateflex/examples
creating build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex2_wavelet_analysis.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex7_full_suite_NW_Pacific.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex5_estimate_flex_parameters_grid.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex1_making_grids.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex3_admittance_coherence.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex4_estimate_flex_parameters_cell.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex6_full_suite_North_America.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
running build_ext
customize UnixCCompiler
C compiler: /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/tg286/miniconda_alt/envs/pflex/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /space/tg286/miniconda_alt/envs/pflex/include -fPIC

creating /tmp/tmpiylvn2_z/tmp
creating /tmp/tmpiylvn2_z/tmp/tmpiylvn2_z
compile options: '-MMD -MF /tmp/tmpiylvn2_z/file.c.d -c'
x86_64-conda_cos6-linux-gnu-cc: /tmp/tmpiylvn2_z/file.c
customize UnixCCompiler using build_ext
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-ld
Found executable /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-ar
Found executable /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-ranlib
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/distutils/fcompiler/init.py:530: UserWarning: LDFLAGS is used as is, not appended to flags already defined by numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this behavior will become default in a future release).
linker_so_flags = self.flag_vars.linker_so
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/distutils/fcompiler/init.py:540: UserWarning: LDFLAGS is used as is, not appended to flags already defined by numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this behavior will become default in a future release).
linker_exe_flags = self.flag_vars.linker_exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'plateflex.cpwt' extension
compiling C sources
C compiler: /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/tg286/miniconda_alt/envs/pflex/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /space/tg286/miniconda_alt/envs/pflex/include -fPIC

creating build/temp.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex
compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex -I/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include -I/space/tg286/miniconda_alt/envs/pflex/include/python3.7m -c'
x86_64-conda_cos6-linux-gnu-cc: build/src.linux-x86_64-3.7/plateflex/cpwtmodule.cx86_64-conda_cos6-linux-gnu-cc: build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c

In file included from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.h:13,
from build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c:2:
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
In file included from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.h:13,
from build/src.linux-x86_64-3.7/plateflex/cpwtmodule.c:16:
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with "
^~~~~~~
build/src.linux-x86_64-3.7/plateflex/cpwtmodule.c:148:12: warning: 'f2py_size' defined but not used [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^~~~~~~~~
compiling Fortran 90 module sources
creating build/temp.linux-x86_64-3.7/plateflex
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/cpwt
compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex -I/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include -I/space/tg286/miniconda_alt/envs/pflex/include/python3.7m -c'
extra options: '-Jbuild/temp.linux-x86_64-3.7/plateflex -Ibuild/temp.linux-x86_64-3.7/plateflex'
gfortran:f90: src/cpwt/cpwt.f90
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex -I/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include -I/space/tg286/miniconda_alt/envs/pflex/include/python3.7m -c'
extra options: '-Jbuild/temp.linux-x86_64-3.7/plateflex -Ibuild/temp.linux-x86_64-3.7/plateflex'
gfortran:f90: src/cpwt/cpwt_sub.f90
gfortran:f90: build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.f90
/usr/bin/gfortran -Wall -g -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/tg286/miniconda_alt/envs/pflex/lib -Wl,-rpath-link,/space/tg286/miniconda_alt/envs/pflex/lib -L/space/tg286/miniconda_alt/envs/pflex/lib build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwtmodule.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt_sub.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7 -lgfortran -lgfortran -o build/lib.linux-x86_64-3.7/plateflex/cpwt.cpython-37m-x86_64-linux-gnu.so
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x20): undefined reference to main'
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -g -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/tg286/miniconda_alt/envs/pflex/lib -Wl,-rpath-link,/space/tg286/miniconda_alt/envs/pflex/lib -L/space/tg286/miniconda_alt/envs/pflex/lib build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwtmodule.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt_sub.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7 -lgfortran -lgfortran -o build/lib.linux-x86_64-3.7/plateflex/cpwt.cpython-37m-x86_64-linux-gnu.so" failed with exit status 1

ERROR: Failed building wheel for plateflex
Running setup.py clean for plateflex
Failed to build plateflex
Installing collected packages: plateflex
Running setup.py install for plateflex ... error
ERROR: Command errored out with exit status 1:
command: /space/tg286/miniconda_alt/envs/pflex/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-4_zm7t8a/setup.py'"'"'; file='"'"'/tmp/pip-req-build-4_zm7t8a/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-record-ka0tb788/install-record.txt --single-version-externally-managed --compile
cwd: /tmp/pip-req-build-4_zm7t8a/
Complete output (114 lines):
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 "plateflex.cpwt" sources
f2py options: []
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c' to sources.
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex' to include_dirs.
adding 'build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.f90' to sources.
building extension "plateflex.flex" sources
f2py options: []
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c' to sources.
adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex' to include_dirs.
adding 'build/src.linux-x86_64-3.7/plateflex/flex-f2pywrappers2.f90' to sources.
build_src: building npy-pkg config files
running build_py
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/plateflex
copying plateflex/estimate.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/init.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/doc.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/classes.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/plotting.py -> build/lib.linux-x86_64-3.7/plateflex
copying plateflex/conf.py -> build/lib.linux-x86_64-3.7/plateflex
creating build/lib.linux-x86_64-3.7/plateflex/examples
copying plateflex/examples/data.zip -> build/lib.linux-x86_64-3.7/plateflex/examples
creating build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex2_wavelet_analysis.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex7_full_suite_NW_Pacific.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex5_estimate_flex_parameters_grid.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex1_making_grids.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex3_admittance_coherence.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex4_estimate_flex_parameters_cell.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
copying plateflex/examples/Notebooks/Ex6_full_suite_North_America.ipynb -> build/lib.linux-x86_64-3.7/plateflex/examples/Notebooks
running build_ext
customize UnixCCompiler
C compiler: /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/tg286/miniconda_alt/envs/pflex/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /space/tg286/miniconda_alt/envs/pflex/include -fPIC

creating /tmp/tmp75p4d3k_/tmp
creating /tmp/tmp75p4d3k_/tmp/tmp75p4d3k_
compile options: '-MMD -MF /tmp/tmp75p4d3k_/file.c.d -c'
x86_64-conda_cos6-linux-gnu-cc: /tmp/tmp75p4d3k_/file.c
customize UnixCCompiler using build_ext
get_default_fcompiler: matching types: '['gnu95', 'intel', 'lahey', 'pg', 'absoft', 'nag', 'vast', 'compaq', 'intele', 'intelem', 'gnu', 'g95', 'pathf95', 'nagfor']'
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
Found executable /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-ld
Found executable /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-ar
Found executable /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-ranlib
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py:530: UserWarning: LDFLAGS is used as is, not appended to flags already defined by numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this behavior will become default in a future release).
  linker_so_flags = self.flag_vars.linker_so
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/distutils/fcompiler/__init__.py:540: UserWarning: LDFLAGS is used as is, not appended to flags already defined by numpy.distutils! Use NPY_DISTUTILS_APPEND_FLAGS=1 to obtain appending behavior instead (this behavior will become default in a future release).
  linker_exe_flags = self.flag_vars.linker_exe
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'plateflex.cpwt' extension
compiling C sources
C compiler: /space/tg286/miniconda_alt/envs/pflex/bin/x86_64-conda_cos6-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /space/tg286/miniconda_alt/envs/pflex/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /space/tg286/miniconda_alt/envs/pflex/include -fPIC

creating build/temp.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex
compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex -I/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include -I/space/tg286/miniconda_alt/envs/pflex/include/python3.7m -c'
x86_64-conda_cos6-linux-gnu-cc: build/src.linux-x86_64-3.7/plateflex/cpwtmodule.c
x86_64-conda_cos6-linux-gnu-cc: build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c
In file included from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
                 from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.h:13,
                 from build/src.linux-x86_64-3.7/plateflex/cpwtmodule.c:16:
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it with " \
  ^~~~~~~
In file included from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1830:0,
                 from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.h:13,
                 from build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.c:2:
/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it with " \
  ^~~~~~~
build/src.linux-x86_64-3.7/plateflex/cpwtmodule.c:148:12: warning: 'f2py_size' defined but not used [-Wunused-function]
 static int f2py_size(PyArrayObject* var, ...)
            ^~~~~~~~~
compiling Fortran 90 module sources
creating build/temp.linux-x86_64-3.7/plateflex
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
creating build/temp.linux-x86_64-3.7/src
creating build/temp.linux-x86_64-3.7/src/cpwt
compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex -I/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include -I/space/tg286/miniconda_alt/envs/pflex/include/python3.7m -c'
extra options: '-Jbuild/temp.linux-x86_64-3.7/plateflex -Ibuild/temp.linux-x86_64-3.7/plateflex'
gfortran:f90: src/cpwt/cpwt.f90
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex -I/space/tg286/miniconda_alt/envs/pflex/lib/python3.7/site-packages/numpy/core/include -I/space/tg286/miniconda_alt/envs/pflex/include/python3.7m -c'
extra options: '-Jbuild/temp.linux-x86_64-3.7/plateflex -Ibuild/temp.linux-x86_64-3.7/plateflex'
gfortran:f90: src/cpwt/cpwt_sub.f90
gfortran:f90: build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.f90
/usr/bin/gfortran -Wall -g -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/tg286/miniconda_alt/envs/pflex/lib -Wl,-rpath-link,/space/tg286/miniconda_alt/envs/pflex/lib -L/space/tg286/miniconda_alt/envs/pflex/lib build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwtmodule.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt_sub.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7 -lgfortran -lgfortran -o build/lib.linux-x86_64-3.7/plateflex/cpwt.cpython-37m-x86_64-linux-gnu.so
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
error: Command "/usr/bin/gfortran -Wall -g -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,-rpath,/space/tg286/miniconda_alt/envs/pflex/lib -Wl,-rpath-link,/space/tg286/miniconda_alt/envs/pflex/lib -L/space/tg286/miniconda_alt/envs/pflex/lib build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwtmodule.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/fortranobject.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt.o build/temp.linux-x86_64-3.7/src/cpwt/cpwt_sub.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/plateflex/cpwt-f2pywrappers2.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7 -lgfortran -lgfortran -o build/lib.linux-x86_64-3.7/plateflex/cpwt.cpython-37m-x86_64-linux-gnu.so" failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /space/tg286/miniconda_alt/envs/pflex/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-4_zm7t8a/setup.py'"'"'; file='"'"'/tmp/pip-req-build-4_zm7t8a/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-record-ka0tb788/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

@paudetseis
Copy link
Owner

@tmgreenfield1101 Thank you for reporting this. I see that the problem comes from linking the librairies with your system-wide fortran compiler. The installer detected a /usr/bin/gfortran compiler but the f2py librairies seem to be incompatible with the compiler. Here is a quick work around.

To make a clean install, remove the build directory in the PlateFlex folder, then delete the pflex environment: conda env remove --name pflex. Now you can re-create the environment with the requirements and activate it. Before installing the software, I suggest you install the gfortran compiler provided via anaconda, which would ensure the librairies are compatible. Since you are in a conda environment, this won't affect your system-wide gfortran. If you are working on a linux OS, type conda install -c anaconda gfortran_linux-64, or if you are on a Mac OS, type conda install -c anaconda gfortran_osx-64.

Once gfortran is installed in the pflex environment, you can install the software with python -m pip install ..

Let me know if this works.

@tmgreenfield1101
Copy link
Author

tmgreenfield1101 commented Jan 29, 2020 via email

@ijaodola
Copy link

Hello Prof., Pascal Audet, nice to write you on this plateform. I have read your papers on Te and others such as Kirby, Perez-Gussinye and a lot of others. The multitaper and wavelet software suite for Te estimation looks easier to run and debug on the cygwin terminal but going through this new software you developed is very much complex to me. I can't even get my bearing from the suite to installation to input and plotting. In a more detailed steps, how can I use this method for Te estimation on my Cygwin or Fedora terminal. Am very much curious about this methodology. I need help as a young researcher. I am used to cygwin mainly and you commented that it can work on cgywin but am extremely very confused and worried. Your great help will go a long way for we young researchers. Many thanks.

@tmgreenfield1101 Thank you for reporting this. I see that the problem comes from linking the librairies with your system-wide fortran compiler. The installer detected a /usr/bin/gfortran compiler but the f2py librairies seem to be incompatible with the compiler. Here is a quick work around.

To make a clean install, remove the build directory in the PlateFlex folder, then delete the pflex environment: conda env remove --name pflex. Now you can re-create the environment with the requirements and activate it. Before installing the software, I suggest you install the gfortran compiler provided via anaconda, which would ensure the librairies are compatible. Since you are in a conda environment, this won't affect your system-wide gfortran. If you are working on a linux OS, type conda install -c anaconda gfortran_linux-64, or if you are on a Mac OS, type conda install -c anaconda gfortran_osx-64.

Once gfortran is installed in the pflex environment, you can install the software with python -m pip install ..

Let me know if this works.

Hello Prof., Pascal Audet, nice to write you on this plateform. I have read your papers on Te and others such as Kirby, Perez-Gussinye and a lot of others. The multitaper and wavelet software suite for Te estimation looks easier to run and debug on the cygwin terminal but going through this new software you developed is very much complex to me. I can't even get my bearing from the suite to installation to input and plotting. In a more detailed steps, how can I use this method for Te estimation on my Cygwin or Fedora terminal. Am very much curious about this methodology. I need help as a young researcher. I am used to cygwin mainly and you commented that it can work on cgywin but am extremely very confused and worried. Your great help will go a long way for we young researchers. Many thanks.

@ijaodola
Copy link

Hello Prof., Pascal Audet, nice to write you on this plateform. I have read your papers on Te and others such as Kirby, Perez-Gussinye and a lot of others. The multitaper and wavelet software suite for Te estimation looks easier to run and debug on the cygwin terminal but going through this new software you developed is very much complex to me. I can't even get my bearing from the suite to installation to input and plotting. In a more detailed steps, how can I use this method for Te estimation on my Cygwin or Fedora terminal. Am very much curious about this methodology. I need help as a young researcher. I am used to cygwin mainly and you commented that it can work on cgywin but am extremely very confused and worried. Your great help will go a long way for we young researchers. Many thanks.

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