barronh / pseudonetcdf

PseudoNetCDF like NetCDF except for many scientific format backends
GNU Lesser General Public License v3.0
76 stars 35 forks source link

pip installation of v3.1.0.zip fails.. #94

Closed miroi closed 4 years ago

miroi commented 4 years ago

Hello,

on my Ubuntu 18.04.3 LTS I am getting this installation error below. Any help, please ?

milias@194.160.44.72:~/.pip install https://github.com/barronh/pseudonetcdf/archive/v3.1.0.zip
Collecting https://github.com/barronh/pseudonetcdf/archive/v3.1.0.zip
  Using cached https://github.com/barronh/pseudonetcdf/archive/v3.1.0.zip
Collecting numpy>=1.2 (from PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl
Collecting netCDF4 (from PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/2d/bc/a51e281b52620ed78cbec94684146b09cf642f5052ac19ee0a735c21e9cd/netCDF4-1.5.3-cp27-cp27mu-manylinux1_x86_64.whl
Collecting scipy (from PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/24/40/11b12af7f322c1e20446c037c47344d89bab4922b8859419d82cf56d796d/scipy-1.2.3-cp27-cp27mu-manylinux1_x86_64.whl
Collecting matplotlib (from PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/9d/40/5ba7d4a3f80d39d409f21899972596bf62c8606f1406a825029649eaa439/matplotlib-2.2.5-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pyyaml (from PseudoNetCDF==3.1.0)
Collecting cftime (from netCDF4->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/7a/6d/8a8739bcc0bcc2f5ecf7933c2292f889c2b175cacd595ee34e1cf2ff4bd9/cftime-1.1.1.2.tar.gz
Collecting cycler>=0.10 (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Collecting backports.functools-lru-cache (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/da/d1/080d2bb13773803648281a49e3918f65b31b7beebf009887a529357fd44a/backports.functools_lru_cache-1.6.1-py2.py3-none-any.whl
Collecting subprocess32 (from matplotlib->PseudoNetCDF==3.1.0)
Collecting kiwisolver>=1.0.1 (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/3d/78/cb9248b2289ec31e301137cedbe4ca503a74ca87f88cdbfd2f8be52323bf/kiwisolver-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pytz (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Collecting six>=1.10 (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.1 (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting setuptools (from kiwisolver>=1.0.1->matplotlib->PseudoNetCDF==3.1.0)
  Using cached https://files.pythonhosted.org/packages/ab/b5/3679d7c98be5b65fa5522671ef437b792d909cf3908ba54fe9eca5d2a766/setuptools-44.1.0-py2.py3-none-any.whl
Building wheels for collected packages: cftime
  Running setup.py bdist_wheel for cftime ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-WGzLPH/cftime/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/tmpcnLsJ6pip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/cftime
  copying cftime/__init__.py -> build/lib.linux-x86_64-2.7/cftime
  running build_ext
  building 'cftime._cftime' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/tmp
  creating build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH
  creating build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH/cftime
  creating build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH/cftime/cftime
  x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-5Z483E/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/milias/.local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c /tmp/pip-build-WGzLPH/cftime/cftime/_cftime.c -o build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH/cftime/cftime/_cftime.o
  x86_64-linux-gnu-gcc: error: /tmp/pip-build-WGzLPH/cftime/cftime/_cftime.c: No such file or directory
  x86_64-linux-gnu-gcc: fatal error: no input files
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cftime
  Running setup.py clean for cftime
Failed to build cftime
Installing collected packages: numpy, cftime, netCDF4, scipy, six, cycler, backports.functools-lru-cache, subprocess32, setuptools, kiwisolver, pytz, python-dateutil, pyparsing, matplotlib, pyyaml, PseudoNetCDF
  Running setup.py install for cftime ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-WGzLPH/cftime/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-SZbwvl-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/cftime
    copying cftime/__init__.py -> build/lib.linux-x86_64-2.7/cftime
    running build_ext
    building 'cftime._cftime' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/tmp
    creating build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH
    creating build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH/cftime
    creating build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH/cftime/cftime
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-5Z483E/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/home/milias/.local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c /tmp/pip-build-WGzLPH/cftime/cftime/_cftime.c -o build/temp.linux-x86_64-2.7/tmp/pip-build-WGzLPH/cftime/cftime/_cftime.o
    x86_64-linux-gnu-gcc: error: /tmp/pip-build-WGzLPH/cftime/cftime/_cftime.c: No such file or directory
    x86_64-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-WGzLPH/cftime/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-SZbwvl-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-WGzLPH/cftime/
milias@194.160.44.72:~/.
miroi commented 4 years ago

Well, master version installation is fine:

milias@194.160.44.72:~/.sudo pip install https://github.com/barronh/pseudonetcdf/archive/master.zip
The directory '/home/milias/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/milias/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting https://github.com/barronh/pseudonetcdf/archive/master.zip
  Downloading https://github.com/barronh/pseudonetcdf/archive/master.zip
     | 2.5MB 72.1MB/s
Requirement already satisfied: numpy>=1.2 in ./.local/lib/python2.7/site-packages (from PseudoNetCDF==3.1.0)
Requirement already satisfied: netCDF4 in /usr/lib/python2.7/dist-packages (from PseudoNetCDF==3.1.0)
Collecting scipy (from PseudoNetCDF==3.1.0)
  Downloading https://files.pythonhosted.org/packages/24/40/11b12af7f322c1e20446c037c47344d89bab4922b8859419d82cf56d796d/scipy-1.2.3-cp27-cp27mu-manylinux1_x86_64.whl (24.8MB)
    100% |████████████████████████████████| 24.8MB 63kB/s 
Requirement already satisfied: matplotlib in ./.local/lib/python2.7/site-packages (from PseudoNetCDF==3.1.0)
Requirement already satisfied: pyyaml in /usr/lib/python2.7/dist-packages (from PseudoNetCDF==3.1.0)
Requirement already satisfied: cycler>=0.10 in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: backports.functools-lru-cache in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: subprocess32 in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: pytz in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: six>=1.10 in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: python-dateutil>=2.1 in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./.local/lib/python2.7/site-packages (from matplotlib->PseudoNetCDF==3.1.0)
Requirement already satisfied: setuptools in ./.local/lib/python2.7/site-packages (from kiwisolver>=1.0.1->matplotlib->PseudoNetCDF==3.1.0)
Installing collected packages: scipy, PseudoNetCDF
  Running setup.py install for PseudoNetCDF ... done
Successfully installed PseudoNetCDF-3.1.0 scipy-1.2.3
miroi commented 4 years ago

Closing this issue, solved in https://github.com/Unidata/cftime/issues/164 .