-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARM Installation Issues #285
Comments
Hey Rhys, can you try the following for a dockerfile?
|
I'm going to try to add ARM to my cond-forge build - I think the issue is it has specific C compiler needs. |
It looks like the build got close but failed to from issues with rasterio and fiona. Going to keep googling through the error message, and wanted to share below in case anything jumps out.
|
For dockerfile try the simple version:
|
Got another error with that, I think because it is failing to find a version of the package. I'm currently looking into how we can use Docker compose and base image of linux with an intermediate image of a C compiler. Also reading up on this: https://learning.oreilly.com/library/view/learn-docker-in/9781617297052/OEBPS/Text/16.xhtml#heading_id_8, and open to any other docker reading/watching recommendations. Error message:
|
That is very strange. Geowombat is definitely available through conda-forge, and I was able to run that docker file. How are you building it? Could u be limiting Internet access somehow??? |
I cloned the repo and I'm inside the top level directory and running the following command:
Are there any different flags I should use here? I don't think it's a connectivity issue from inside the image or from my home internet. |
I'll let you know how the conda-forge build goes. Till then use apporto. |
Hi @jgrss! I'm a student of Dr. Mann's @mmann1123 and Dr. Engstrom's, hoping to work with and build on Geowombat in some projects this semester. I've been having issues installing and running the package on an ARM-based mac. I have tried 3 different approaches, returning different errors. Do you have any recommendations or guidance on the best way to install? If you have any ideas on the docker image issue described below, I'm happy to push an ARM-version to a registry, or help debug more with any other approaches.
I have attempted to build from source locally using the following in a python 3.9.6 venv using the following commands
python setup.py build && python setup.py install
, but I run into some clang issues with some of the cython generated code, returning the following error message:src/geowombat/moving/_moving.c:721:10: fatal error: 'omp.h' file not found #include <omp.h> ^~~~~~~ 1 warning and 1 error generated. error: command '/usr/bin/clang' failed with exit code 1
I also cloned the code and have been working on natively building a docker image on mac. I modified the Docker file to use the following base image and env, but keep running into gdal version issues inside the docker image:
FROM arm64v8/ubuntu:20.04 WORKDIR /source
I also modified env.yml and setup.cfg to contain
gdal>=3.1.0
. I also tried further modifying the docker file with variants of this, but haven't been able to successfully build the image:RUN pip install GDAL>=3.1.* --no-binary=gdal
Full error:
`12.61 Installing build dependencies: started
15.60 Installing build dependencies: finished with status 'done'
15.60 Getting requirements to build wheel: started
15.73 Getting requirements to build wheel: finished with status 'error'
15.73 error: subprocess-exited-with-error
15.73
15.73 × Getting requirements to build wheel did not run successfully.
15.73 │ exit code: 1
15.73 ╰─> [3 lines of output]
15.73 :22: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg\_resources.html
15.73 INFO:root:GDAL API version obtained from gdal-config: 3.0.4
15.73 ERROR: GDAL >= 3.1 is required for rasterio. Please upgrade GDAL.
15.73 [end of output]`
ENV PLATFORM linux/arm64`
The text was updated successfully, but these errors were encountered: