Hi @<1523701168822292480:profile|ExuberantBat52> , I think someone should review this soon enough 🙂
Answered
Hi All,
I'Ve Been Encountering This Error When Attempting To Simply List All Datasets:
Hi all,
I've been encountering this error when attempting to simply list all datasets:
>>> from clearml import Dataset
>>> Dataset.list_datasets()
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
Dataset.list_datasets()
~~~~~~~~~~~~~~~~~~~~~^^
File "/home/amerii/projects/.../clearml/datasets/dataset.py", line 1972, in list_datasets
project_id_lookup = Task._get_project_names(list(project_ids))
File "/home/amerii/projects/.../clearml/backend_interface/task/task.py", line 2855, in _get_project_names
projects.GetAllRequest(id=list(project_ids), page=page, page_size=page_size),
~~~~~~~~~~~~~~~~~~~~~~~~~^ ...
TypeError: Expected id of type list[(<class 'str'>,)], got NoneType, str
I dug a bit deeper and found that the project_id
may be returned as None
, and that is what causes it to break. I opened a small PR (describes the issue in more detail) that fixes the issue, however, it does not fix the underlying issue of why we have None
returned as a project_id
in the first place.
Would anyone be able to take a look at the PR, it's currently a breaking bug.
326 Views
1
Answer
3 months ago
3 months ago
Tags