Skip to content

The docker evaluation doesn't work on arm Mac #6

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

Open
piojanu opened this issue Feb 17, 2025 · 1 comment
Open

The docker evaluation doesn't work on arm Mac #6

piojanu opened this issue Feb 17, 2025 · 1 comment
Assignees

Comments

@piojanu
Copy link

piojanu commented Feb 17, 2025

Hi!

I try to run the docker evaluation on M3 MacBook and I get the following error when building docker for instances requiring rasterio:

...
2025-02-17 10:35:25,153 - INFO - Collecting rasterio (from -r /testbed/instance_requirements.txt (line 5))
2025-02-17 10:35:25,226 - INFO - Downloading rasterio-1.4.3.tar.gz (442 kB)
2025-02-17 10:35:25,508 - INFO - Installing build dependencies: started
2025-02-17 10:35:30,580 - INFO - Installing build dependencies: finished with status 'done'
2025-02-17 10:35:30,580 - INFO - Getting requirements to build wheel: started
2025-02-17 10:35:30,706 - INFO - Getting requirements to build wheel: finished with status 'error'
2025-02-17 10:35:30,709 - INFO - error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [2 lines of output]
      WARNING:root:Failed to get options via gdal-config: [Errno 2] No such file or directory: 'gdal-config'
      ERROR: 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.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
2025-02-17 10:35:30,979 - INFO - error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
2025-02-17 10:35:31,126 - INFO - ---> Removed intermediate container b45d37614d44
2025-02-17 10:35:31,129 - ERROR - Error: The command '/bin/sh -c /opt/miniconda3/bin/pip install --exists-action i --no-cache-dir -r /testbed/instance_requirements.txt' returned a non-zero code: 1
2025-02-17 10:35:31,129 - ERROR - docker.errors.BuildError during sab.eval.arm64.14:latest: The command '/bin/sh -c /opt/miniconda3/bin/pip install --exists-action i --no-cache-dir -r /testbed/instance_requirements.txt' returned a non-zero code: 1

I've put quite a bit of time googling the problem: I've tried to install GDAL in various ways I found online, change the base image to 24.04., and change the platform to amd64 with no luck (very different errors at different stages, including the Python runtime). Did you make it working on arm Macs?

Please note, that there are no problems installing rasterio with conda on the arm Mac — the direct evaluation works fine for the instance 14 (it requires rasterio) I was debugging. I've tried to install rasterio using conda inside the container, but I've got some problems with not matching sqllite3 dependency in Python runtime.

Thanks!

@piojanu piojanu changed the title Should the docker evaluation work in MacOS? Should the docker evaluation work on arm Mac? Feb 17, 2025
@piojanu piojanu changed the title Should the docker evaluation work on arm Mac? The docker evaluation doesn't work on arm Mac Feb 17, 2025
@ronch99
Copy link
Collaborator

ronch99 commented Feb 17, 2025

Hi @piojanu, thanks for your post! We will take a look at this issue, but it might take some time. We have not tested the docker evaluation on an arm Mac because our university's policies do not allow us to use docker on our macbook for work. We'll find a personal arm Mac and see how we can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants