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: Docker creating not working with some python versions #4603

Closed
scepeda78 opened this issue Mar 20, 2024 · 6 comments
Closed

bug: Docker creating not working with some python versions #4603

scepeda78 opened this issue Mar 20, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@scepeda78
Copy link

Describe the bug

I run "bentoml build --containerize", the error is (it happens for 3.10, 3.11):
24.56 E: Unable to locate package python3.10-dev
24.56 E: Couldn't find any package by glob 'python3.10-dev'
24.56 E: Couldn't find any package by regex 'python3.10-dev'
24.56 E: Unable to locate package python3.10-distutils
24.56 E: Couldn't find any package by glob 'python3.10-distutils'
24.56 E: Couldn't find any package by regex 'python3.10-distutils'

**BentoML yaml
docker:
distro: debian
python_version: "3.9"
cuda_version: "12"
system_packages:
- python3-distutils
- ffmpeg
- git

To reproduce

No response

Expected behavior

No response

Environment

python 3.10 and 3.11, it works with python 3.9

@scepeda78 scepeda78 added the bug Something isn't working label Mar 20, 2024
@aarnphm
Copy link
Contributor

aarnphm commented Mar 21, 2024

why do you need python3-disutils? disutils is considered deprecated in 3.10 onwards iirc

@scepeda78
Copy link
Author

scepeda78 commented Mar 21, 2024 via email

@frostming
Copy link
Contributor

frostming commented Mar 21, 2024

What's the content of ~/bentoml/bentos/<bento_name>/<bento_version>/env/docker/Dockerfile?


Okay, based on your config, we picked nvidia/cuda:12-cudnn8-runtime-ubuntu20.04 as the base image, it is kind of old that doesn't contain python3.10-* packages

@aarnphm
Copy link
Contributor

aarnphm commented Mar 22, 2024

It seems like you put distutils there in the bentofile.yaml?

@scepeda78
Copy link
Author

scepeda78 commented Mar 22, 2024 via email

@scepeda78
Copy link
Author

It worked later, don't know why it didn't work before.

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

No branches or pull requests

3 participants