Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing clearml fails if server is unreacheable #1363

Open
Gabsha opened this issue Jan 9, 2025 · 0 comments
Open

Importing clearml fails if server is unreacheable #1363

Gabsha opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Gabsha
Copy link

Gabsha commented Jan 9, 2025

Describe the bug

Since 1.17.0, importing clearml package fails if server is unreacheable.

To reproduce

python3.12 -m venv _venv
source _venv/bin/activate
pip install clearml==1.17.0
python
>>> import clearml
... 
Retrying (Retry(total=239, connect=239, read=240, redirect=240, status=240)) after connection broken by 'ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7bfd49dc9670>, 'Connection to *X.X.X.X* timed out. (connect timeout=3.0)')': /auth.login

Stack trace after Ctrl+C points to this recent change :

https://github.com/allegroai/clearml/blob/master/clearml/automation/controller.py#L62

Expected behaviour

It is possible to import clearml even if there is no server configured yet (or unreacheable), ideally there would be no import side-effects. Useful for testing, local development, etc.

Environment

SDK : 1.17.0
Server : N/R
Python : 3.12
OS : Linux

@Gabsha Gabsha added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant