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

Invalid Escape Sequence #56

Open
EvilJordan opened this issue Feb 26, 2024 · 4 comments
Open

Invalid Escape Sequence #56

EvilJordan opened this issue Feb 26, 2024 · 4 comments

Comments

@EvilJordan
Copy link

Not sure if this matters (because it still seems to run well), but when running, this is dumped to the terminal:

/usr/local/bin/unimatrix:32: SyntaxWarning: invalid escape sequence '\;'
  help_msg = '''
/usr/local/bin/unimatrix:231: SyntaxWarning: invalid escape sequence '\;'
  '`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"',
/usr/local/bin/unimatrix:237: SyntaxWarning: invalid escape sequence '\;'
  'S': '`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"',
@midekra
Copy link

midekra commented Mar 19, 2024

check that you're not running an older version of unimatrix. I had the same error until I noticed I had installed it twice, the latest was through pipx, which was the correct version without any error.

EDIT: it seems the error occurs due to the version of python (3.11 runs correctly for me)

fcolecumberri added a commit to fcolecumberri/unimatrix that referenced this issue May 9, 2024
Solves will8211#56

On newer python there are some warnings about the way some strings are used.
@heit0r
Copy link

heit0r commented Jul 27, 2024

I'm also having the same issue:

/usr/bin/unimatrix:32: SyntaxWarning: invalid escape sequence '\;'
  help_msg = '''
/usr/bin/unimatrix:231: SyntaxWarning: invalid escape sequence '\;'
  '`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"',
/usr/bin/unimatrix:237: SyntaxWarning: invalid escape sequence '\;'
  'S': '`-=~!@#$%^&*()_+[]{}|\;\':",./<>?"',

@virtadpt
Copy link

I ran into this with another application running under Python v3.12.x. Removing the backslash escaping the character should fix it.

@will8211
Copy link
Owner

Should be fixed here: #60

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

5 participants