question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot create a dataset from current task

See original GitHub issue

Hi everyone, I’m currently facing a problem while creating a dataset. I run the following code and it cannot pass Dataset.create.

from clearml import Task
from clearml import Dataset

Task.init('Test', 'test')
Dataset.create(use_current_task=True)
# Adding files here
Traceback (most recent call last):
  File "test.py", line 8, in <module>
    Dataset.create(use_current_task=False)
  File "/home/tronglehuu/Programs/miniconda3/envs/clearml_test/lib/python3.8/site-packages/clearml/datasets/dataset.py", line 1153, in create
    instance = cls(_private=cls.__private_magic,
  File "/home/tronglehuu/Programs/miniconda3/envs/clearml_test/lib/python3.8/site-packages/clearml/datasets/dataset.py", line 218, in __init__
    _, latest_version = self._get_dataset_id_by_version(self.project, self.name)
  File "/home/tronglehuu/Programs/miniconda3/envs/clearml_test/lib/python3.8/site-packages/clearml/datasets/dataset.py", line 2884, in _get_dataset_id_by_version
    datasets = Task._query_tasks(
  File "/home/tronglehuu/Programs/miniconda3/envs/clearml_test/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 "/home/tronglehuu/Programs/miniconda3/envs/clearml_test/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 `Test/.datasets/`

I have created a dataset successfully before but now I cannot. It may be due to upgrading ClearML Server version, I’m not sure. I think this is a bug, isn’t it? Thank you for any help!

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
eugen-ajechiloae-clearmlcommented, Sep 6, 2022

Hi @HeleneFabia @tronglh241 @AH-Merii! This issue was fixed on version 1.6.3. Please install the latest ClearML SDK version, Dataset.create(use_current_task=True) should now work

1reaction
eugen-ajechiloae-clearmlcommented, Jul 20, 2022

@AH-Merii @tronglh241 Thank you for reporting this. This is a bug in ClearML version >1.6.0. We will soon have a fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The report server cannot process the report or shared dataset
When I create a remote ssrs and redply the project on server, I change manually the shared datasource. Like I use a shared...
Read more >
A job fails — Dataiku DSS 7.0 documentation
If this error appears, it means that one of the source datasets required for running this job was not usable, which can mean:...
Read more >
Solved: Data Refresh Issues - Cannot create process.
Solved: Hi All, I want to refresh a report with Excel-data. On three computers it works fine. On one it gives an error...
Read more >
Create Data Assets - Azure Machine Learning - Microsoft Learn
In this article, you learn how to create a data asset in Azure Machine Learning. By creating a data asset, you create a...
Read more >
Creating a task - AWS Database Migration Service
This process is the Migrate existing data option in the AWS Management Console and is called Full ... You can't change this name...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found