Skip to content

SyntaxWarnings related to invalid escape sequences when installing by Poetry #51

@Cybernetic-Ransomware

Description

@Cybernetic-Ransomware

Hi,
recently tried to instal library by poetry. That started some background validations processes. So, right now i have a list of SyntaxWarning prints during stetting the containers. All of them are about invalid escape sequence. I think that could be simply fixed by raw string synthax: r'', but i wonder, did someone met inproper functionalities during the rular usage?

Hi,

I recently tried to install the library using Poetry, which triggered some background validation processes. Currently, I am encountering a list of SyntaxWarning messages related to invalid escape sequences while setting up the containers. All of the warnings are about invalid escape sequences:

app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/query.py:13: SyntaxWarning: invalid escape sequence '\d'
app-1            |   OFFSET_EXPRESSION = re.compile("(?P<offset>offset (?P<value>\d+))")
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/query.py:14: SyntaxWarning: invalid escape sequence '\d'                                                                                                                                                                                     
app-1            |   LIMIT_EXPRESSION = re.compile("(?P<limit>limit (?P<value>\d+))")                                                                                                                                                                                                                              
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/query.py:13: SyntaxWarning: invalid escape sequence '\d'                                                                                                                                                                                     
app-1            |   OFFSET_EXPRESSION = re.compile("(?P<offset>offset (?P<value>\d+))")
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/query.py:14: SyntaxWarning: invalid escape sequence '\d'                                                                                                                                                                                     
app-1            |   LIMIT_EXPRESSION = re.compile("(?P<limit>limit (?P<value>\d+))")                                                                                                                                                                                                                              
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/query.py:13: SyntaxWarning: invalid escape sequence '\d'                                                                                                                                                                                     
app-1            |   OFFSET_EXPRESSION = re.compile("(?P<offset>offset (?P<value>\d+))")
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/query.py:14: SyntaxWarning: invalid escape sequence '\d'                                                                                                                                                                                     
app-1            |   LIMIT_EXPRESSION = re.compile("(?P<limit>limit (?P<value>\d+))")                                                                                                                                                                                                                              
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/plugin.py:32: SyntaxWarning: invalid escape sequence '\*'
app-1            |   """Find and load plugins in search *paths*.
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/structure/standard.py:133: SyntaxWarning: invalid escape sequence '\w'                                                                                                                                                                       
app-1            |   "[^\w\.-]", self.illegal_character_substitute, value.decode("utf-8")
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/structure/standard.py:133: SyntaxWarning: invalid escape sequence '\w'                                                                                                                                                                       
app-1            |   "[^\w\.-]", self.illegal_character_substitute, value.decode("utf-8")                                                                                                                                                                                                                          
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/structure/standard.py:133: SyntaxWarning: invalid escape sequence '\w'                                                                                                                                                                       
app-1            |   "[^\w\.-]", self.illegal_character_substitute, value.decode("utf-8")
app-1            | /usr/local/lib/python3.12/site-packages/ftrack_api/structure/standard.py:133: SyntaxWarning: invalid escape sequence '\w'                                                                                                                                                                       
app-1            |   "[^\w\.-]", self.illegal_character_substitute, value.decode("utf-8")        

I believe this could be easily fixed by using raw string syntax (r''), but I wonder if anyone has experienced any functionality issues related to this during regular usage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions