Closed goku-son closed 10 months ago
Hi @goku-son! Python 3.12 is still not supported, normally I go a couple of weeks behind the official Python release until I get some time to update everything. Especially, basemap
was still using distutils
in some places, but distutils
is not available anymore in Python 3.12, so even if you manage to build from source, it will fail at runtime.
Sorry! When I get some free time, I will prepare everything for Python 3.12.
That is more than fair. Thanks for the response and the insight @molinav!
The support for Python 3.12 is now part of the develop
branch, and it will be available with the basemap
release 1.4.0, which should take place in one or two days at maximum.
The basemap
1.4.0 wheels for Python 3.12 on Windows and GNU/Linux are already available in PyPI. Wheels for MacOS and the conda-forge
packages will come in the following hours.
Running Python 3.12.0 on linux container.
After a upgrade of the container, basemap fails to install with the following errors:
`Collecting basemap Using cached basemap-1.3.8.zip (156 kB) Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [66 lines of output] Ignoring numpy: markers 'python_version == "3.10"' don't match your environment Ignoring numpy: markers 'sys_platform == "darwin" and (python_version >= "3.7" and python_version <= "3.9")' don't match your environment Ignoring numpy: markers 'sys_platform != "darwin" and (python_version >= "3.7" and python_version <= "3.9")' don't match your environment Ignoring numpy: markers 'python_version == "2.7" or (python_version >= "3.4" and python_version <= "3.6")' don't match your environment Ignoring numpy: markers 'python_version == "2.6" or (python_version >= "3.2" and python_version <= "3.3")' don't match your environment Ignoring cython: markers 'python_version == "3.2"' don't match your environment Collecting setuptools Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/bb/26/7945080113158354380a12ce26873dd6c1ebd88d47f5bc24e2c5bb38c16a/setuptools-68.2.2-py3-none-any.whl.metadata Using cached setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB) Collecting wheel Obtaining dependency information for wheel from https://files.pythonhosted.org/packages/b8/8b/31273bf66016be6ad22bb7345c37ff350276cfd46e389a0c2ac5da9d9073/wheel-0.41.2-py3-none-any.whl.metadata Using cached wheel-0.41.2-py3-none-any.whl.metadata (2.2 kB) Collecting numpy==1.23.3 Using cached numpy-1.23.3.tar.gz (10.7 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error
The strange thing is that numpy is already installed and at version 1.26.0. Any suggestions on what the issue is would be appreciated.