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

[Bug]: Failed to build docker image on apple sillicon #2143

Open
1 task done
lyzohub opened this issue Jun 20, 2024 · 3 comments
Open
1 task done

[Bug]: Failed to build docker image on apple sillicon #2143

lyzohub opened this issue Jun 20, 2024 · 3 comments
Labels
kind/bug Something isn't working kind/question A question to answer

Comments

@lyzohub
Copy link

lyzohub commented Jun 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Building dockerfile on macos sonoma 14.5

FROM python:3.12
RUN pip install pymilvus==2.4.3

Failed to build

[+] Building 14.6s (5/5) FINISHED                                                                                                                                                                                                                               docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                            0.0s
 => => transferring dockerfile: 86B                                                                                                                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/python:3.12                                                                                                                                                                                                                  0.6s
 => [internal] load .dockerignore                                                                                                                                                                                                                                               0.0s
 => => transferring context: 1.04kB                                                                                                                                                                                                                                             0.0s
 => CACHED [1/2] FROM docker.io/library/python:3.12@sha256:4584ea46d313a10e849eb7c5ef36be14773418233516ceaa9e52a8ff7d5e35a5                                                                                                                                                     0.0s
 => ERROR [2/2] RUN pip install pymilvus==2.4.3                                                                                                                                                                                                                                14.0s
------                                                                                                                                                                                                                                                                               
 > [2/2] RUN pip install pymilvus==2.4.3:                                                                                                                                                                                                                                            
2.977 Collecting pymilvus==2.4.3                                                                                                                                                                                                                                                     
3.684   Downloading pymilvus-2.4.3-py3-none-any.whl.metadata (5.3 kB)                                                                                                                                                                                                                
6.317 Requirement already satisfied: setuptools>=67 in /usr/local/lib/python3.12/site-packages (from pymilvus==2.4.3) (70.0.0)                                                                                                                                                       
9.489 Collecting grpcio<=1.63.0,>=1.49.1 (from pymilvus==2.4.3)                                                                                                                                                                                                                      
9.614   Downloading grpcio-1.63.0-cp312-cp312-manylinux_2_17_aarch64.whl.metadata (3.2 kB)
10.80 Collecting protobuf>=3.20.0 (from pymilvus==2.4.3)
10.83   Downloading protobuf-5.27.1-cp38-abi3-manylinux2014_aarch64.whl.metadata (592 bytes)
11.00 Collecting environs<=9.5.0 (from pymilvus==2.4.3)
11.16   Downloading environs-9.5.0-py2.py3-none-any.whl.metadata (14 kB)
11.85 Collecting ujson>=2.0.0 (from pymilvus==2.4.3)
11.89   Downloading ujson-5.10.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (9.3 kB)
12.93 Collecting pandas>=1.2.4 (from pymilvus==2.4.3)
12.96   Downloading pandas-2.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (19 kB)
13.44 INFO: pip is looking at multiple versions of pymilvus to determine which version is compatible with other requirements. This could take a while.
13.45 ERROR: Could not find a version that satisfies the requirement milvus-lite<2.5.0,>=2.4.0 (from pymilvus) (from versions: none)
13.45 ERROR: No matching distribution found for milvus-lite<2.5.0,>=2.4.0
------
Dockerfile:2
--------------------
   1 |     FROM python:3.12
   2 | >>> RUN pip install pymilvus==2.4.3
   3 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install pymilvus==2.4.3" did not complete successfully: exit code: 1

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/pcrakpmt6c846qcj2jfdn09ix
make: *** [dev-build] Error 1

Expected Behavior

Image build successfully

Steps/Code To Reproduce behavior

docker build .

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory): M1 macos sonoma 14.5
- Method of installation (Docker, or from source): docker
- Milvus version (v0.3.1, or v0.4.0):
- Milvus configuration (Settings you made in `server_config.yaml`):

Anything else?

No response

@lyzohub lyzohub added the kind/bug Something isn't working label Jun 20, 2024
@lyzohub
Copy link
Author

lyzohub commented Jun 20, 2024

Downgrading to 2.4.0 helped.

@XuanYang-cn
Copy link
Contributor

@lyzohub python:3.12 image uses alpine linux by default. Unfortunately Milvus-lite donesn't support it yet. Please use python:3.12-slim for workaround. And we might add supports for Alpine Linux to Milvus-lite's milestone. THX.

See also milvus-io/milvus#33892

@XuanYang-cn XuanYang-cn added the kind/question A question to answer label Jun 24, 2024
@kmplngj
Copy link

kmplngj commented Jul 1, 2024

10.83 
10.83   RuntimeError
10.83 
10.83   Unable to find installation candidates for milvus-lite (2.4.7)
10.83 
10.83   at /usr/local/lib/python3.12/site-packages/poetry/installation/chooser.py:74 in choose_for
10.83        70│ 
10.83        71│             links.append(link)
10.83        72│ 
10.83        73│         if not links:
10.83     →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
10.83        75│ 
10.83        76│         # Get the best link
10.83        77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
10.83        78│ 
10.83 
10.83 Cannot install milvus-lite.
10.83 

I have the same problem on Apple Silicon but I already using python:3.12-slim so it seems that workaround does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working kind/question A question to answer
Projects
None yet
Development

No branches or pull requests

3 participants