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

Cannot build with ray in Docker #84

Open
Fmstrat opened this issue Feb 23, 2025 · 1 comment
Open

Cannot build with ray in Docker #84

Fmstrat opened this issue Feb 23, 2025 · 1 comment

Comments

@Fmstrat
Copy link

Fmstrat commented Feb 23, 2025

In a bog standard Docker build:

FROM python

WORKDIR /app

ADD ./ ./

RUN pip install -e .

Getting:

2.227 Obtaining file:///app
2.228   Installing build dependencies: started
5.611   Installing build dependencies: finished with status 'done'
5.611   Checking if build backend supports build_editable: started
5.843   Checking if build backend supports build_editable: finished with status 'done'
5.844   Getting requirements to build editable: started
6.087   Getting requirements to build editable: finished with status 'done'
6.089   Preparing editable metadata (pyproject.toml): started
6.322   Preparing editable metadata (pyproject.toml): finished with status 'done'
6.731 Collecting pydantic<2.5 (from LLMPerf==0.1.0)
6.827   Downloading pydantic-2.4.2-py3-none-any.whl.metadata (158 kB)
7.090 INFO: pip is looking at multiple versions of llmperf to determine which version is compatible with other requirements. This could take a while.
7.093 ERROR: Could not find a version that satisfies the requirement ray (from llmperf) (from versions: none)
7.364
7.364 [notice] A new release of pip is available: 24.3.1 -> 25.0.1
7.364 [notice] To update, run: pip install --upgrade pip
7.365 ERROR: No matching distribution found for ray
------
Dockerfile:7
--------------------
   5 |     ADD ./ ./
   6 |
   7 | >>> RUN pip install -e .
   8 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -e ." did not complete successfully: exit code: 1
@Fmstrat Fmstrat changed the title Cannot build woth ray in Docker Cannot build with ray in Docker Feb 23, 2025
@Fmstrat
Copy link
Author

Fmstrat commented Feb 23, 2025

Looks like this has less to do with Docker and more to do with the dependency selection of Ray doesn't work with Python 3.11. Had to downgrade to 3.10.

ray-project/ray#33524

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