Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] pulling user by ID does not work as specified in the docs #5011

Open
datapumpernickel opened this issue Jun 13, 2024 · 3 comments · May be fixed by #5044
Open

[DOCS] pulling user by ID does not work as specified in the docs #5011

datapumpernickel opened this issue Jun 13, 2024 · 3 comments · May be fixed by #5044
Assignees
Labels
status: stale Indicates that there is no activity on an issue or pull request

Comments

@datapumpernickel
Copy link

Hi!

thanks for this wonderful framework for text annotation. Very easy to implement and use!

I am trying to get a user by id and it is not working as expected. The docs here give the following code:

import argilla as rg

rg.init(api_url="<ARGILLA_API_URL>", api_key="<ARGILLA_API_KEY>")

user = rg.User.from_id("00000000-0000-0000-0000-000000000000")

but this does not work. What does work is:

import argilla as rg

from uuid import UUID

rg.init(api_url="<ARGILLA_API_URL>", api_key="<ARGILLA_API_KEY>")

user = rg.User.from_id(UUID("00000000-0000-0000-0000-000000000000")) ## <--- note the UUID() here

Environment:

  • Argilla Version [1.29.0]:
  • Docker Image (optional) [https://hub.docker.com/layers/argilla/argilla-quickstart/latest/images/sha256-6c33f7ce577d90cc6a1c292ff79611237da8c5e3f33d1ef7538bc05c4bc25316?context=explore]:
@sdiazlor
Copy link
Contributor

@datapumpernickel Thanks for noticing, we'll update it soon or feel free to open a PR with that change :)

@sdiazlor sdiazlor self-assigned this Jun 18, 2024
@sdiazlor sdiazlor changed the title [BUG-python/deployment] pulling user by ID does not work as specified in the docs [DOCS] pulling user by ID does not work as specified in the docs Jun 18, 2024
datapumpernickel added a commit to datapumpernickel/argilla that referenced this issue Jun 18, 2024
@datapumpernickel datapumpernickel linked a pull request Jun 18, 2024 that will close this issue
8 tasks
@datapumpernickel
Copy link
Author

Made a PR (#5044), but I am not sure about the tests that need to be run for it to be included. :) Maybe it is helpful, otherwise feel free to close.

Copy link

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the status: stale Indicates that there is no activity on an issue or pull request label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: stale Indicates that there is no activity on an issue or pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants