EventScripts-Emulator icon indicating copy to clipboard operation
EventScripts-Emulator copied to clipboard

Invalid escape sequence

Open NosferatuJoe opened this issue 4 years ago • 5 comments

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 avatar Feb 17 '21 11:02 NosferatuJoe

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

NosferatuJoe avatar Mar 18 '21 22:03 NosferatuJoe

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 avatar Mar 18 '21 22:03 Ayuto

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

NosferatuJoe avatar Apr 12 '21 13:04 NosferatuJoe

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.

Ayuto avatar Apr 18 '21 14:04 Ayuto

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.

NosferatuJoe avatar Apr 18 '21 15:04 NosferatuJoe