Error when I try to install project_utils package in Python recipe

danielht
danielht Registered Posts: 1
edited July 16 in Using Dataiku

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!

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 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

Setup Info
    Tags
      Help me…