hands-on-train-and-deploy-ml
hands-on-train-and-deploy-ml copied to clipboard
ModuleNotFoundError during deploy
Dear @Paulescu ,
I have been working on a personal project with the goal of understanding and implementing some of the most relevant concepts on Machine Learning Operations - MLOps. This personal projects is being developed using this repository as inspiration and guideline.
I am currently finishing this project and everything works fine except for the last step - deployment (using cerebrium). During the running of the Makefile - which "implements" deploy - I am facing a ModuleNotFoundError that I do not understand, which follows bellow.
As mentioned, I do not understand this error, since the structure of the deployment directory is as follows:
Additionaly, I provide my Makefile, so you have more means to understand why I am facing this situation, which besides lots of experimentation I do not understand. I honestly thank you for your time in helping me solve this error and also for the effort of putting together, and free of charge, this project as well all related materials.
Thank you.
Hi @MAGomes95
It seems your logger.py
file does not get copied to your deployment_dir
The prepare-deployment
step should copy all your .py files in src
to the deployment_dir
Dear @Paulescu ,
Thank you for your response.
In your Makefile, the src directory is copied - as well as its contents - to the deployment_dir, which is exactly what I do.
Bellow, you can see how the src directory in deployment_dir contains logger.py
Should I just copy src directory contents to the deployment_dir?
Thank you in advance.