If you are using the requirements.txt file in your project to install python packages in your runs, be aware that the requirements.txt is not used during model builds. This may present symptomatically with a 'module not found error' while building a model. From the Domino documentation...
Models run in Domino Environments, similarly to Runs and Workspaces. However, there are a few important details to note.
- Model hosts do not read
requirements.txtfiles or execute commands defined in the pre-setup, post-setup, pre-run, or post-run scripts of your environment. If your project currently uses
requirements.txtor any of these setup scripts to install certain packages or repositories, you must add them to the Dockerfile instructions of your environment.
- Your model does not inherit environment variables set at the project level. However, you can set model-specific environment variables on the model settings page. This is intended to decouple the management of projects and models. See this page for more details.
To work around this issue, install your packages directly in to your Compute Environment. If you are unfamiliar with editing compute environments, they are documented here, https://docs.dominodatalab.com/en/latest/get_started_r/7-deploy.html?highlight=compute%20environment#step-7-deploy-your-model