You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For what it is worth, it works for me on python 3.10.12 and python3.11.0rc1. Perhaps you could try an earlier version to see if you get the same issue or not to rule out the python version.
I am encountering the exact same warning on a fresh install of autorandr, also on python 3.12.2
autorandr still runs just fine. It just outputs that same chain of SyntaxWarnings every time I run it.
A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.)
This seems to be a duplicate of #368 , which is already fixed in upstream. Distributions just have to upgrade autorandr (or pull the fix) if they are using python 3.12 by default. (I was just affected too on Debian testing).
On a fresh install of autorandr I'm getting this error:
/usr/bin/autorandr:210: SyntaxWarning: invalid escape sequence '\s'
XRANDR_OUTPUT_REGEXP = """(?x)
/usr/bin/autorandr:236: SyntaxWarning: invalid escape sequence '\s'
""" + XRANDR_PROPERTIES_REGEXP + """ | # Properties to include in the profile
/usr/bin/autorandr:248: SyntaxWarning: invalid escape sequence '\S'
XRANDR_OUTPUT_MODES_REGEXP = """(?x)
/usr/bin/autorandr:592: SyntaxWarning: invalid escape sequence '\s'
version = re.search("xrandr program version\s+([0-9.]+)", version_string).group(1)
/usr/bin/autorandr:888: SyntaxWarning: invalid escape sequence '+'
match = re.match("(?P[0-9]+)x(?P[0-9]+)(?:+(?P[0-9]+))?(?:+(?P[0-9]+))?.*", output.options[panning"])
Python 3.12.2
The text was updated successfully, but these errors were encountered: