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, That I'M Running The Line Dataset = Clearml.Dataset.Get (Dataset_Project = 'Datasets', Dataset_Tags = ....) I Get: File "/Root/.Clearml/Venvs-Builds/3.8/Lib/Python3.8/Site-Packages/Clearml/Datasets/Dataset.Py", Line 1534, In Get Dataset_Id = Cls

Hi,
That I'm running the line
dataset = clearml.Dataset.get (dataset_project = 'datasets', dataset_tags = ....)

I get:

File "/root/.clearml/venvs-builds/3.8/lib/python3.8/site-packages/clearml/datasets/dataset.py", line 1534, in get
dataset_id = cls.find_dataset_id (
File "/root/.clearml/venvs-builds/3.8/lib/python3.8/site-packages/clearml/datasets/dataset.py", line 2942, in find_dataset_id
tasks = Task.get_tasks (
File "/root/.clearml/venvs-builds/3.8/lib/python3.8/site-packages/clearml/task.py", line 982, in get_tasks
return cls .
get_tasks (task_ids = task_ids, project_name = project_name, tags = tags,
File "/root/.clearml/venvs-builds/3.8/lib/python3.8/site-packages/clearml/task.py", line 3817, in __get_tasks
queried_tasks = cls._query_tasks (
File "/root/.clearml/venvs-builds/3.8/lib/python3.8/site-packages/clearml/task.py", line 3855, in _query_tasks
project = get_single_result (entity = 'project', query = name, results = res.response.projects)
File "/root/.clearml/venvs-builds/3.8/lib/python3.8/site-packages/clearml/backend_interface/util.py", line 146, in get_single_result
raise ValueError ('No {entity} s found when searching for {query}' .format (** locals ()))
ValueError: No projects found when searching for datasets / .datasets / None

(I set base docker image for this experiment)

How can I fix it?

  
  
Posted 2 years ago
Votes Newest

Answers 12


but that i still not explaining why it was working 2 days ago and now it is not !
i am investigating, and will keep you updated

  
  
Posted 2 years ago

SweetBadger76
There's something I can do to help you check? (task id, project name etc.)

  
  
Posted 2 years ago

Hope it will help 🤞 . Do not hesitate to ask if the error persists

  
  
Posted 2 years ago

I'll try

  
  
Posted 2 years ago

is it a task you are trying to access to or a dataset ? if you need to retrieve a task, you should use Task.get_task()

if i do that :
ds=Dataset.create(dataset_project='datasets',dataset_name='dataset_0')
it will result in the creation of 2 experiments :
results page: the task that corresponds to the script that launched the dataset creation - it will be in PROJECTS/datasets/.datasets/dataset_0 dataset page: the dataset itself : would be in DATASETS/dataset_0

  
  
Posted 2 years ago

what bother me is that it worked until yesterday, and you didnt changed your code. So the only thing i can think of is a bug introduced with the new sdk version, that was released yesterday. I am inverstigating with the sdk team, i will keep you updated asap ! 🙂

  
  
Posted 2 years ago

Hi SparklingElephant70
The function doesn't seem to find any datasets which project_name matches your request.
Some more detailed code on how you create your dataset, and how you try to retrieve it, could help me to better understand the issue 🙂

  
  
Posted 2 years ago

Hi SweetBadger76
It still does not work, I'm trying to access a task called dataset_0 under datasets project.
I get ValueError: No projects found when searching for datasets/.datasets/dataset_0

What is .datasets ?

  
  
Posted 2 years ago

Thanks!

  
  
Posted 2 years ago

hum interesting. have you updated your clearml to the latest version ? we released new versions those days

  
  
Posted 2 years ago

Hi SweetBadger76
It worked great yesterday and also a week ago ..
I'm trying to figure out what happened because I did not make any change to the code

  
  
Posted 2 years ago

hi SparklingElephant70
i was asking myself about this datasets / .datasets / None
this None i weird : if you look at the example i sent, you should see the dataset name here. Just to be sure, can you confirm me than when you fire the command line you pass both dataset_project AND dataset_name ?

  
  
Posted 2 years ago
1K Views
12 Answers
2 years ago
one year ago
Tags