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

SyntaxWarning: invalid escape sequence '\>' #1318

Open
inflation opened this issue Sep 2, 2024 · 3 comments
Open

SyntaxWarning: invalid escape sequence '\>' #1318

inflation opened this issue Sep 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@inflation
Copy link

Describe the bug

/home/inflation/workspace/playground/.venv/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2136: SyntaxWarning: invalid escape sequence '\>'
  """
/home/inflation/workspace/playground/.venv/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2246: SyntaxWarning: invalid escape sequence '\>'
  "modifier (\>,\>=, \<, \<=)"

This is from the callback of transformers training.

To reproduce

  1. Use Python 3.12
  2. Train anything

Expected behaviour

No warnings.

Environment

  • Server type (self hosted \ app.clear.ml): app.clear.ml
  • ClearML SDK Version: 1.16.4
  • ClearML Server Version (Only for self hosted). Can be found on the bottom right corner of the settings screen.
  • Python Version: 3.12
  • OS (Windows \ Linux \ Macos): WSL 2

Related Discussion

If this continues a slack thread, please provide a link to the original slack thread.

@inflation inflation added the bug Something isn't working label Sep 2, 2024
@ainoam
Copy link
Collaborator

ainoam commented Sep 2, 2024

Thanks for reporting @inflation - We'll take a look.

@carschandler
Copy link

carschandler commented Sep 26, 2024

I'm getting these all over the place as well:

/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/task.py:258: SyntaxWarning: invalid escape sequence '\<'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/storage/manager.py:216: SyntaxWarning: invalid escape sequence '\~'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/tasks.py:8031: SyntaxWarning: invalid escape sequence '\>'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/tasks.py:8222: SyntaxWarning: invalid escape sequence '\>'
  "(\>,\>=, \<, \<=)"
ClearML Task: created new task id=offline-e980bddbdc9e43d38f373ebbe0719324
ClearML running in offline mode, session stored in /home/chan/.clearml/cache/offline/offline-e980bddbdc9e43d38f373ebbe0719324
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2136: SyntaxWarning: invalid escape sequence '\>'
  """
/home/chan/projects/ml/.pixi/envs/default/lib/python3.12/site-packages/clearml/backend_api/services/v2_23/models.py:2246: SyntaxWarning: invalid escape sequence '\>'
  "modifier (\>,\>=, \<, \<=)"

Also on 3.12.5 and WSL 2.

@ainoam
Copy link
Collaborator

ainoam commented Sep 29, 2024

@carschandler Hope to have an rc for a fix soon.

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

3 participants