Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
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.

  
  
Posted 3 months ago
Votes Newest

Answers


Hi @<1523701168822292480:profile|ExuberantBat52> , I think someone should review this soon enough 🙂

  
  
Posted 3 months ago
322 Views
1 Answer
3 months ago
3 months ago
Tags