Hello everyone, I am trying to install basemap on cygwin but have encountered an issue below:
$ python -m pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/KarlChan/lib/basemap/packages/basemap
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: basemap-data<1.4,>=1.3.2 in /home/KarlChan/.local/lib/python3.9/site-packages (from basemap==1.3.7+dev) (1.3.2)
Requirement already satisfied: pyshp<2.4,>=1.2 in /home/KarlChan/.local/lib/python3.9/site-packages (from basemap==1.3.7+dev) (2.3.1)
Requirement already satisfied: matplotlib<3.8,>=1.5 in /usr/lib/python3.9/site-packages (from basemap==1.3.7+dev) (3.5.1)
Collecting pyproj<3.6.0,>=1.9.3 (from basemap==1.3.7+dev)
Using cached pyproj-3.5.0-cp39-cp39-cygwin_3_4_7_x86_64.whl
Collecting numpy<1.25,>=1.22 (from basemap==1.3.7+dev)
Downloading numpy-1.24.4.tar.gz (10.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 9.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cycler>=0.10 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (4.28.5)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (1.3.2)
Requirement already satisfied: packaging>=20.0 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (21.3)
Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (8.4.0)
Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (3.0.6)
Requirement already satisfied: python-dateutil>=2.7 in /usr/lib/python3.9/site-packages (from matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (2.8.2)
Requirement already satisfied: certifi in /home/KarlChan/.local/lib/python3.9/site-packages (from pyproj<3.6.0,>=1.9.3->basemap==1.3.7+dev) (2023.5.7)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.9/site-packages (from python-dateutil>=2.7->matplotlib<3.8,>=1.5->basemap==1.3.7+dev) (1.16.0)
Building wheels for collected packages: basemap, numpy
Building wheel for basemap (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for basemap (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
/tmp/pip-build-env-3_84knqg/overlay/lib/python3.9/site-packages/setuptools/dist.py:945: SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
!!
******************************************************************************** Please replace its usage with implicit namespaces (PEP 420). See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages for details. ******************************************************************************** !! ep.load()(self, ep.name, value) running bdist_wheel running build running build_py running build_ext skipping 'src/_geoslib.c' Cython extension (up-to-date) building '_geoslib' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/tmp/pip-build-env-3_84knqg/overlay/lib/python3.9/site-packages/numpy/core/include -I/usr/local/include -I/usr/include/python3.9 -c src/_geoslib.c -o build/temp.cygwin-3.4.7-x86_64-cpython-39/src/_geoslib.o 0 [main] python3.9 23512 child_info_fork::abort: address space needed by '_multiarray_tests.cpython-39-x86_64-cygwin.dll' (0x400000) is already occupied error: command '/usr/bin/gcc' failed: Resource temporarily unavailable [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for basemap
I have installed both PROJ4 and GEO from source and have set the GEOS_DIR/PROJ_DIR environment variable. Yet i still encounter this issue when installing basemap. I can't seem to figure out what is the issue and would appreciate any guidance.
Thank you.