Hello,
I am trying to compile netcdf4-python on a new system. Before I execute 'python setup.py build', I check what files I have in the root directory:
$ ls
build constants.pyx docs MANIFEST.in netCDF4.pyx PKG-INFO setup.cfg test
Changelog COPYING examples netCDF4.c netCDF4_utils.py README.gh-pages setup.cfg.template utils
checkversion.py create_docs.sh man netCDF4.pxi netcdftime README.md setup.py utils.pyx
Then I try to build:
$ python setup.py build
cython version 0.22 found ...
reading from setup.cfg...
using nc-config ...
using netcdf library version 4.3.0
using Cython to compile netCDF4.pyx...
netcdf lib does not have group rename capability
netcdf lib has nc_inq_path function
netcdf lib does not have nc_inq_format_extended function
running build
running build_py
running build_ext
building 'netCDF4' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/apps/netcdf/4.3.0-intel/include -I/apps/hdf5/1.8.14-intel/include -I/home/Sourish.Basu/theia_packages/python/lib64/python2.6/site-packages/numpy/core/include -I/usr/include/python2.6 -c netCDF4.c -o build/temp.linux-x86_64-2.6/netCDF4.o
gcc: netCDF4.c: No such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
which seems to me to be a weird error, so I do another ls:
$ ls
build constants.pyx docs MANIFEST.in netCDF4_utils.py README.gh-pages setup.cfg.template utils
Changelog COPYING examples netCDF4.pxi netcdftime README.md setup.py utils.pyx
checkversion.py create_docs.sh man netCDF4.pyx PKG-INFO setup.cfg test
and indeed, netCDF4.c seems to have disappeared! I have tried just downloading and putting it there by hand, but every time I do a 'python setup.py build', I get the same error about a missing netCDF4.c, and indeed it's gone!
-Sourish
Hello,
I am trying to compile netcdf4-python on a new system. Before I execute 'python setup.py build', I check what files I have in the root directory:
Then I try to build:
which seems to me to be a weird error, so I do another ls:
and indeed, netCDF4.c seems to have disappeared! I have tried just downloading and putting it there by hand, but every time I do a 'python setup.py build', I get the same error about a missing netCDF4.c, and indeed it's gone!
-Sourish