[Python] Why is the text located inside the multi-line comment causing a syntax error in my...

Discussão em 'Python' iniciado por Stack, Janeiro 23, 2025.

  1. Stack

    Stack Membro Participativo

    terminal console messages for my command:

    PS C:\Users\dev> python 'C:\a-c-151_(o-c-091)\uk-land-registry-data-pipeline.py'
    File "C:\a-c-151_(o-c-091)\uk-land-registry-data-pipeline.py", line 315
    """
    ^^^
    SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 6-7: truncated \UXXXXXXXX escape
    PS C:\Users\dev>


    relevant part of the code (the lines from 313 to 323):

    # terminal output log saved below

    """
    PS C:\Users\dev> cd 'C:\a-c-151_(o-c-091)\'
    PS C:\a-c-151_(o-c-091)> python 'C:\a-c-151_(o-c-091)\uk-land-registry-data-pipeline.py'
    Traceback (most recent call last):
    File "C:\a-c-151_(o-c-091)\uk-land-registry-data-pipeline.py", line 8, in <module>
    import geopandas as gpd
    ModuleNotFoundError: No module named 'geopandas'
    PS C:\a-c-151_(o-c-091)>
    """

    Continue reading...

Compartilhe esta Página