-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
networkx-3.2.1_1: /usr/lib/python3.12/site-packages/networkx/readwrite/tests/test_gml.py:557: SyntaxWarning: invalid octal escape sequence '\420' #7149
Comments
Hmm, which package manager is this? We only package pypi and conda-forge. |
It's installed through my Linux distribution's package manager as some other package's sub-dependency. But that doesn't matter, because the issue can be easily found here networkx/networkx/readwrite/tests/test_gml.py Line 557 in 9cc8b42
Don't shoot the messenger! Paste that string into the Python REPL:
The code is broken, namely some escape sequences written incorrectly. |
It's Voidlinux. Their basic philosophy is, to take upstream as is with zero custom patches. On my system |
Interesting that the syntax warning says the octal sequence is |
FWIW I have noticed this warning when I run tests locally, I just hadn't gotten around to fixing it yet. We should double-check to see if we have at least one job in CI (preferably on latest Python) that converters all warnings to errors (at least the ones that are not explicitly caught).
I assume the test was going for the unicode 4200 character, but it's hard to know for sure. The potential solution that I went with in #7159 was to turn the |
Uhhh, aren't Unicode escape sequences supposed to put the |
Yeah, I think we all are :). My hypothesis that this was intended to be a unicode character (that was written incorrectly) was really just a guess based on context. |
Installing through distribution package manager, at the "Byte-compiling python3.12 code for module networkx..." stage, the following errors are reported:
The text was updated successfully, but these errors were encountered: