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 #58

Open
NosferatuJoe opened this issue Feb 17, 2021 · 5 comments
Open

Invalid escape sequence #58

NosferatuJoe opened this issue Feb 17, 2021 · 5 comments

Comments

@NosferatuJoe
Copy link
Contributor

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/exp/exp.py', line 55: DeprecationWarning
    invalid escape sequence \:

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/exp/exp.py', line 265: DeprecationWarning
    invalid escape sequence \(

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/exp/exp.py', line 265: DeprecationWarning
    invalid escape sequence \)

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \^

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \$

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \*

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \+

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \?

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \.

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \|

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \[

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \]

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \{

2021-02-16 12:10:40 - sp	-	WARNING	
[SP] Encountered a Warning:
  File '../addons/source-python/plugins/es_emulator/eventscripts/corelib/escinject/escinject.py', line 9: DeprecationWarning
    invalid escape sequence \}
@NosferatuJoe
Copy link
Contributor Author

This issue seems to be resolved with latest SP & emulator versions.

@Ayuto
Copy link
Owner

Ayuto commented Mar 18, 2021

No, those warnings are only shown once. With a fresh installation you will see them again. However, they are just warnings I need to fix some day.

@Ayuto Ayuto reopened this Mar 18, 2021
@NosferatuJoe
Copy link
Contributor Author

Double restart needed in order to get emulator to work because of this warning. Just mentioning this for other people comming across this issue.

@Ayuto
Copy link
Owner

Ayuto commented Apr 18, 2021

Double restart needed in order to get emulator to work because of this warning. Just mentioning this for other people comming across this issue.

Like I said they are just warnings that appear once with a fresh install. That's how Python warnings work. You can simply ignore them and don't need restart. The warnings won't have any impact on the functionality. They just tell me that escinject.py is using a syntax that is deprecated in Python 3.6, but works fine. Only if we update SP to a higher release, they will turn into errors.

@NosferatuJoe
Copy link
Contributor Author

NosferatuJoe commented Apr 18, 2021

Hey Ayuto. In my case I had to restart the server after the warning before the emulator would work. So it might be confusing for new people since I tested it twice and it only works if you restart the server after the first start. Not sure if this warning is 100% the cause but it seems like 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