Python Library not being installed in Custom Model [AI Center]

Hi Everyone!

Im trying to upload a custom model to UiPath AI Center.
I got almost everything right but the model is not being deployed due to the following error:

ImportError:
Cannot import joblib, please make sure that the library is installed as part of your requirements (requirements.txt file) or that the file is present in the ML Package

This is my requirements.txt file :

joblib==1.2.0

numpy==1.21.2

numba==0.54.1

msgpack==1.0.3

scikit-learn==0.24.2

threadpoolctl==2.2.0

SciPy==1.7.3

I wonder why that library is not being installed, might be due to another library missing?

Everything is in the folder, might be due to a invalid folder structure?

image

Any help would be appreciated.

Thanks!

@Joaquin_Bracci

Can you try installing using requirements.txt…this helps us understand if the library needs any deoendency or if the issue is something else

pip install -r requirements.txt -c constraints.txt

Cheers

1 Like

There was a couple issues with the dependencies, i had to add a couple more to the requirements txt and update some versions.

numpy==1.21.2 → numpy==1.21.6

numba==0.54.1 → numba==0.55.0

→ Added setuptools==59.5.0

→ Added cython==0.29.24

→ Added msgpack==1.0.3

Thanks Anil!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.