Skip to content
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

Getting an build error in mac os #7

Open
benlee0423 opened this issue Dec 5, 2024 · 0 comments
Open

Getting an build error in mac os #7

benlee0423 opened this issue Dec 5, 2024 · 0 comments

Comments

@benlee0423
Copy link

benlee0423 commented Dec 5, 2024

Machine: MacOS arm64, Linux arm64
Command: docker build -t awiciroh/ngiab-teehr:latest-arm64 .
Output:

 => [5/7] RUN pip install uv                                                                                                                             2.0s 
 => ERROR [6/7] RUN uv pip install --no-cache-dir -r requirements.txt --system                                                                          17.8s 
------                                                                                                                                                        
 > [6/7] RUN uv pip install --no-cache-dir -r requirements.txt --system:                                                                                      
#0 0.378 Using Python 3.10.16 environment at: /usr/local                                                                                                      
#0 14.19 Resolved 120 packages in 13.80s                                                                                                                      
#0 17.13   × Failed to download and build `fiona==1.10.1`                                                                                                     
#0 17.13   ╰─▶ Build backend failed to determine requirements with `build_wheel()`                                                                            
#0 17.13       (exit status: 1)
#0 17.13 
#0 17.13       [stderr]
#0 17.13       WARNING:root:Failed to get options via gdal-config: [Errno 2] No such
#0 17.13       file or directory: 'gdal-config'
#0 17.13       CRITICAL:root:A GDAL API version must be specified. Provide a path
#0 17.13       to gdal-config using a GDAL_CONFIG environment variable or use a
#0 17.13       GDAL_VERSION environment variable.
#0 17.13 
------
Dockerfile:13
--------------------
  11 |     
  12 |     RUN pip install uv
  13 | >>> RUN uv pip install --no-cache-dir -r requirements.txt --system
  14 |     
  15 |     COPY scripts/ .
--------------------
ERROR: failed to solve: process "/bin/sh -c uv pip install --no-cache-dir -r requirements.txt --system" did not complete successfully: exit code: 1

However, it builds successfully on amd64 linux.

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

1 participant