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 container stopped working with: ModuleNotFoundError: No module named 'ruamel' #984
Comments
I have the same problem. I do not know bentoml - where is conda_dependencies file located for workaround? |
@aslom in your BentoService definition's @env(conda_dependencies=["ruamel.yaml=0.16"], ...) |
@fernandocamargoti I can reproduce this issue. After I ssh into the container, I can see the installed package is installed as |
Additional discussion conda/conda#6762 |
I've tried the following with the base docker image in 0.8.5:
It seems both package names work. Any idea why the package name |
@parano about https://github.com/bentoml/BentoML/blob/1812d290466470f35ed8d0374491da9231ee5151/docs/source/concepts.rst#conda-packages as I am newcomer - if I understand it correctly to add @env workfoaround to BentoService I will need to modify model python in IrisClassifier/20200812101515_76F43B/IrisClassifier/iris_classifier.py ? Something along lines of https://github.com/bentoml/BentoML/blob/1812d290466470f35ed8d0374491da9231ee5151/docs/source/concepts.rst#conda-packages ? I modified it but still getting error:
|
Here is what I get with docker image I built (see comment above):
|
Interesting 😱 that there was no error during compile or run :( I am still getting the same problem - see that it ruamel_yaml-0.15.87 [1] what am I missing?
[1] attached log1.txt |
@aslom I see, l think you modify the We'd recommend change the BentoService class code and re-run the It is also possible to modify the |
@parano before new release with https://github.com/bentoml/BentoML/pull/997/files is available how do I build my own docker image for Maybe using https://github.com/bentoml/BentoML/blob/master/docker/model-server/release.sh ?
|
@aslom You can build the base image and upload to your own dockerhub registry, and then use it with the custom docker image parameter: https://docs.bentoml.org/en/latest/concepts.html#using-other-docker-base-images Although the PR is still working in progress. You won't need to rebuild the image after the PR was updated. I'd recommend using the workaround for now. |
@parano yes I copied bundle to local directory as it is the only place I found code that uses BentoService. Is there some guide docs how to
tha got error
|
@aslom you should re-run the git clone http://github.com/bentoml/bentoml
cd bentoml
# modify guides/quick-start/iris_classifier.py to include the workaround
# re-run save
python guides/quick-start/main.py
# find the saved bundle path
cd $(bentoml get IrisClassifier:latest --print-location --quiet)
# build docker image:
docker build -t aslom/bentoml-model-server:latest . |
@aslom I think the issue is
|
@yubozhao tried but got syntax error:
|
@parano how do you install all dependencies? Could not find it in DEVELOPMENT.md
|
Fixed the typo missing
|
@aslom Awesome. I was just typing about I missed the closing |
Describe the bug
Without any change to my code, new Docker containers aren't working anymore. When I try to run it, I get:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It was expected to run successfully.
Screenshots/Logs
Resulting environment.yml:
Log of installed packages through conda:
Error when trying to import bentoml:
Environment:
Additional context
As a workaround, I added ruamel.yaml=0.16 in conda_dependencies.
The text was updated successfully, but these errors were encountered: