Missing wheels for M1 (Mac ARM) architecture #1071
Replies: 2 comments 1 reply
-
|
Fiona 1.8.21 wheels for x86_64 manylinux2014 and macos (10.10) only were built on GitHub actions using https://github.com/sgillies/fiona-wheels. I get it @thomasaarholt, and I'm sorry to have no good news for you today. In the M1 case, we're mainly blocked by the lack of free CI with native M1 workers. Cross-compilation is, in theory, possible, and I've done it for the GEOS library, but there are a lot of unknowns for the deep stack of libraries that GDAL depends on. For the time being: use packages from conda-forge. The conda-forge project's mission is to build packages. You can even sponsor the project with money to do it. The Fiona project is not currently on a mission to build packages for every available platform. This is a software code project, not a packaging or distribution project. |
Beta Was this translation helpful? Give feedback.
-
|
@thomasaarholt I encountered the same issue. As you mentioned the installation complaints about a missing GDAL config. Try installing gdal with brew before pip-installing fiona again. Have a look at this thread on stack overflow :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Expected behavior and actual behavior.
I expected to be able to install fiona with pip in python 3.9 on an M1 (arm architecture) Mac.
Steps to reproduce the problem.
pip install fionaraises the following error:❯ pip install fiona Collecting fiona Using cached Fiona-1.8.21.tar.gz (1.0 MB) ERROR: Command errored out with exit status 1: command: /Users/thomas/.asdf/installs/python/3.9.9/bin/python3.9 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yt/z22_f0896l74f8gs3_20vc_00000gn/T/pip-install-456dvi2q/fiona_ecb5449ed2884c3db55434cbb048b28b/setup.py'"'"'; __file__='"'"'/private/var/folders/yt/z22_f0896l74f8gs3_20vc_00000gn/T/pip-install-456dvi2q/fiona_ecb5449ed2884c3db55434cbb048b28b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/yt/z22_f0896l74f8gs3_20vc_00000gn/T/pip-pip-egg-info-tq10nup4 cwd: /private/var/folders/yt/z22_f0896l74f8gs3_20vc_00000gn/T/pip-install-456dvi2q/fiona_ecb5449ed2884c3db55434cbb048b28b/ Complete output (2 lines): Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config' A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/67/5c/4e028e84a1f0cb3f8a994217cf2366360ca984dfc1433f6171de527d0dca/Fiona-1.8.21.tar.gz#sha256=3a0edca2a7a070db405d71187214a43d2333a57b4097544a3fcc282066a58bfc (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.Operating system
Mac OS X 12.2.1.
This is in the same vein as #1028. It would be great to add arm architecture support so that fiona and its 247 downstream packages can be used on arm :)
The linux arm package is of interest for mac as well, since docker images that run on the M1 architecture will run arm arch linux. (So if you run a docker image natively on M1 mac, the current linux package will not be installed)
Beta Was this translation helpful? Give feedback.
All reactions