Error when I try to install project_utils package in Python recipe

danielht
Level 1
Error when I try to install project_utils package in Python recipe

 

In my Python code I need call :
from project_utils import compute_embeddings, save, load, normalize
Result:
Job failed: Error in Python process: At line 7: <class 'ModuleNotFoundError'>: No module named 'project_utils'

 

So, when I try to install the package on my enviroment appear:

......
[notice] To update, run: /home/dataiku/dss/code-envs/python/dk_pytesseract/bin/python -m pip install --upgrade pip
ERROR: Could not find a version that satisfies the requirement project_utils (from versions: none)
ERROR: No matching distribution found for project_utils

 

Some solution? 

Thanks in advance!

0 Kudos
1 Reply
AlexT
Dataiker

Hi,
project_utils is not a python package but likely a project library you need to add to your and import from the project libraries for your code to work.

Are you trying to use an existing project where the project libraries may have existed?
Thanks

0 Kudos