mlem icon indicating copy to clipboard operation
mlem copied to clipboard

NameError: name 'UUID' is not defined

Open ludelafo opened this issue 2 years ago • 3 comments

Hello dear Iterative team!

I'm trying to use MLEM to deploy a model on GCP.

I'm facing an issue I wasn't able to find mentioned here or on GitHub.

Here's the error in a GitLab CI/CD pipeline:

mlem deployment run --load service_classifier --model model
⏳️ Loading model from model.mlem
⏳️ Loading deployment from service_classifier.mlem
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'UUID' is not defined

You can find the execution here: https://gitlab.com/ludelafo/a-guide-to-mlops/-/jobs/4876272100 and the related GitLab CI configuration file here: https://gitlab.com/ludelafo/a-guide-to-mlops/-/blob/9741d8bedf4ba470fa4c6ed0c332b8368198af75/.gitlab-ci.yml#L100-130

The deployment works locally, but not in the GitLab CI pipeline.

Please let me know if I can be of any help or if you want me to open an issue/discussion on GitHub.

Reported on Discord: https://discord.com/channels/485586884165107732/903647230655881226/1141007993408847892

ludelafo avatar Aug 21 '23 09:08 ludelafo

Thank you @ludelafo. I think it's related to analytics we collect - UUID is a hashed value representing a user. But I don't see recent changes in our analytics package https://github.com/iterative/telemetry-python

So not sure what's the cause. Need to investigate.

aguschin avatar Aug 21 '23 10:08 aguschin

Thanks for the feedback! I'll try to disable telemetry and come back to you to let you know if that allows the pipeline to finish.

ludelafo avatar Aug 21 '23 11:08 ludelafo

I can confirm the warning goes away when disabling telemetry: https://gitlab.com/ludelafo/a-guide-to-mlops/-/jobs/4912408228

Please let me know if I can be of any help to resolve this issue.

ludelafo avatar Aug 21 '23 12:08 ludelafo