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 Sequences in python-xrt Code with Python 3.12 #199

Open
RAHLIOussama962 opened this issue Sep 6, 2024 · 2 comments

Comments

@RAHLIOussama962
Copy link

Hello,

I am encountering a problem with the python-xrt library when performing byte compilation with Python 3.12. Several files in the library are generating SyntaxWarning related to invalid escape sequences. These warnings appear in various files and could potentially affect the compatibility and functionality of the library.

Here are some examples of the errors I am seeing:
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:39: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:203: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/backends/raycing/coherence.py:235: SyntaxWarning: invalid escape sequence '\ '
/usr/lib/python3/dist-packages/xrt/examples/withRaycing/01_SynchrotronSources/MAX-IV-IDs-Flux.py:101: SyntaxWarning: invalid escape sequence '\R'
/usr/lib/python3/dist-packages/xrt/examples/withRaycing/01_SynchrotronSources/my_arbitrary_field_test.py:539: SyntaxWarning: invalid escape sequence '\D'

Thank you in advance for your help!

@kklmn
Copy link
Owner

kklmn commented Sep 6, 2024

Hi,
These are only warnings generated in docstrings, and I doubt this will ever be a compatibility problem.
In the current GitHub version of xrt this is fixed already. We will make a minor release soon.

@RAHLIOussama962
Copy link
Author

Thank you for the update. I'm glad to hear that the fix is already in the current GitHub version of xrt and that a minor release is coming soon. Looking forward to it!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants