-
Notifications
You must be signed in to change notification settings - Fork 44
Do the requirements in the .mlem have to be installed in order to build it? #382
Comments
Can you confirm that if you install the module everything works? |
It does, but interestingly, there are additional dependencies in the .mlem requirements like Pandas that aren't installed when building. This is what's in the requirements section of the .mlem
Could have something to do with the naming discrepancy of module/package name of scikit-learn? |
This happens because building pip package involves model cloning, and cloning involves reading and deserializing metadata. |
Having trouble reproducing it, can you install from main and retry? |
Installed from main. I am using Python 3.10.6, and I created my virtual env with the following setup.py:
Not sure if it's relevant but I am using an old release of DVC due to this issue. After running that same command in the initial comment, I do get the same output. |
Can you try this branch? |
* Don't load model_type on pip build closes #382 * remove print * add dvc[s3] test dep
That worked! |
Using the latest release 0.2.7, I have linked a model from another repo and named it mental_health_model. It has scikit-learn under the requirements section of its .mlem file.
When I run:
mlem build --conf package_name=mental_health_classification --conf target=build/ mental_health_model pip
I get:
Am I expected to already have the requirements of the linked model installed in order to build this?
The text was updated successfully, but these errors were encountered: