Offline mode checks server configuration
See original GitHub issueTo reproduce:
import os
from clearml import Task
parameters = {
'experiment': {
'project_name': 'test',
'experiment_name': 'test_exp',
'tags': []
}
}
Task.set_offline(True)
if not Task.is_offline():
os.environ['CLEARML_NO_DEFAULT_SERVER'] = '1'
task = Task.init(
project_name=parameters['experiment']['project_name'],
task_name=parameters['experiment']['experiment_name'],
task_type='testing',
tags=parameters['experiment']['tags'],
auto_connect_arg_parser=True,
auto_connect_streams=True,
auto_connect_frameworks=True,
auto_resource_monitoring=True,
)
task.connect_configuration(parameters)
This gives:
ValueError: ClearML configuration could not be found (missing
~/clearml.conf
or Environment CLEARML_API_HOST) To get started with ClearML: setup your ownclearml-server
, or create a free account at https://app.community.clear.ml
I would expect that offline mode is not checking for a server
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Updating Configuration Manager in Offline Mode with the ...
Open your freshly installed ConfigMgr console and go to the administration tab select the Site configuration dropdown and select the Servers ...
Read more >Offline mode configuration - runZero
Enabling offline mode for existing installs # · Open /etc/rumble/config with an editor of your choice. · Look for OFFLINE= and change it...
Read more >Enable and Configure Offline Files on Windows 10
In this article, we will show how to enable and configure Offline Files on Windows 10 and Windows Server 2019 manually and using...
Read more >Configure the offline alert settings - N-able
When Offline mode is disabled and a server is non-responsive, the server is reported as Overdue on the Dashboard with the relevant Alerts...
Read more >Enabling offline mode | Configuring - OpenShift Documentation
You can enable offline mode during the installation of Red Hat Advanced Cluster Security for Kubernetes. Enabling offline mode by using Helm configuration....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi , I also encountered same issue and used update version of ClearML .
My Error Log :
Traceback (most recent call last): File “C:\Users\30863\Project\dataset\yolov5\train.py”, line 630, in <module> main(opt) File “C:\Users\30863\Project\dataset\yolov5\train.py”, line 526, in main train(opt.hyp, opt, device, callbacks) File “C:\Users\30863\Project\dataset\yolov5\train.py”, line 93, in train loggers = Loggers(save_dir, weights, opt, hyp, LOGGER) # loggers instance File “C:\Users\30863\Project\dataset\yolov5\utils\loggers_init_.py”, line 106, in init self.clearml = ClearmlLogger(self.opt, self.hyp) File “C:\Users\30863\Project\dataset\yolov5\utils\loggers\clearml\clearml_utils.py”, line 86, in init self.task = Task.init( File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\task.py”, line 583, in init task = cls._create_dev_task( File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\task.py”, line 3035, in _create_dev_task task = cls( File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\task.py”, line 183, in init super(Task, self).init(**kwargs) File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\backend_interface\task\task.py”, line 155, in init super(Task, self).init(id=task_id, session=session, log=log) File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\backend_interface\base.py”, line 145, in init super(IdObjectBase, self).init(session, log, **kwargs) File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\backend_interface\base.py”, line 39, in init self._session = session or self._get_default_session() File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\backend_interface\base.py”, line 115, in _get_default_session InterfaceBase._default_session = Session( File “C:\Users\30863\Anaconda3\lib\site-packages\clearml\backend_api\session\session.py”, line 178, in init raise ValueError( ValueError: ClearML configuration could not be found (missing
~/clearml.conf
or Environment CLEARML_API_HOST) To get started with ClearML: setup your ownclearml-server
, or create a free account at https://app.clear.ml/My Snippet Code :
if not self._offline_mode and ENV_CLEARML_NO_DEFAULT_SERVER.get() and host == self.default_demo_host: raise ValueError( “ClearML configuration could not be found (missing
~/clearml.conf
or Environment CLEARML_API_HOST)\n” "To get started with ClearML: setup your ownclearml-server
, " “or create a free account at https://app.clear.ml” )@dmus a fix was pushed to the main branch, we’ll update when a version that includes it is released 🙂