iterative / mlem

🐶 A tool to package, serve, and deploy any ML model on any platform. Archived to be resurrected one day🤞
https://mlem.ai
Apache License 2.0
716 stars 44 forks source link

NameError: name 'UUID' is not defined #700

Open ludelafo opened 1 year ago

ludelafo commented 1 year ago

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

aguschin commented 1 year ago

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.

ludelafo commented 1 year ago

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 commented 1 year ago

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.