Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

NameError: name 'UUID' is not defined #700

Open
ludelafo opened this issue Aug 21, 2023 · 3 comments
Open

NameError: name 'UUID' is not defined #700

ludelafo opened this issue Aug 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@ludelafo
Copy link

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
Copy link
Contributor

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 aguschin added the bug Something isn't working label Aug 21, 2023
@ludelafo
Copy link
Author

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants