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

docker build error. Python version is incompatible. #535

Closed
pengkang12 opened this issue Mar 4, 2023 · 1 comment · Fixed by #536
Closed

docker build error. Python version is incompatible. #535

pengkang12 opened this issue Mar 4, 2023 · 1 comment · Fixed by #536
Labels
bug Something isn't working

Comments

@pengkang12
Copy link

Describe the bug
A clear and concise description of what the bug is.

The newest condo includes python3.10. When installing numpy=1.21.2, requires maximum python version is 3.9.

To Reproduce
Steps to reproduce the behavior:

  1. run command
    docker build -f environment/docker_files/federatedscope-torch1.10.Dockerfile -t alibaba/federatedscope:base-env-torch1.10 .
  2. See error
    python version = 3.10
    numpy=1.21.2 required version is python <= 3.9

Expected behavior
A clear and concise description of what you expected to happen.

  1. goto environment/docker_files/federatedscope-torch1.10.Dockerfile

RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
&& bash Miniconda3-latest-Linux-x86_64.sh -b
&& rm Miniconda3-latest-Linux-x86_64.sh

Should be changed to:
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py39_23.1.0-1-Linux-x86_64.sh
&& bash Miniconda3-py39_23.1.0-1-Linux-x86_64.sh -b
&& rm Miniconda3-py39_23.1.0-1-Linux-x86_64.sh

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@pengkang12 pengkang12 changed the title docker build error. docker build error. Python version is incompatible. Mar 4, 2023
@rayrayraykk rayrayraykk added the bug Something isn't working label Mar 6, 2023
@rayrayraykk rayrayraykk linked a pull request Mar 6, 2023 that will close this issue
@rayrayraykk
Copy link
Collaborator

Many thanks! We adopt your suggestion and fix it accordingly in #536 .

@yxdyc yxdyc closed this as completed in #536 Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants