Skip to content

SyntaxError: invalid syntax #16

@raespanha

Description

@raespanha

When trying to run de command dedupe_geojson example1.geojson example2.geojson -o /outputs I'm getting the following error:

Traceback (most recent call last):
File "/usr/local/bin/dedupe_geojson", line 16, in
from lieu.address import Address, AddressComponents, Coordinates
File "/usr/local/lib/python3.5/dist-packages/lieu/address.py", line 3, in
from lieu.coordinates import latlon_to_decimal
File "/usr/local/lib/python3.5/dist-packages/lieu/coordinates.py", line 27
latitude_dms_regex = re.compile(ur'^(-?[0-9]{1,2})[ ][ :\xb0\xbad][ ]([0-5]?[0-9])?[ ][:'\u2032m]?[ ]([0-5]?0-9?)?[ ][:?"\u2033s]?[ ](N|n|S|s)?$', re.I | re.UNICODE)
^
SyntaxError: invalid syntax

I tried to fix it by replacing the "ur" to "r" in coordinates.py and the next error I get is

Word index file: deduped/info_gain.index
Traceback (most recent call last):
File "/usr/local/bin/dedupe_geojson", line 272, in
map_file = open(temp_filename, 'w')
FileNotFoundError: [Errno 2] No such file or directory: 'deduped/near_dupes'

I already tried to create the folder and file but the issue persists.

I am using the first examples in documentation in the following format
https://data.whosonfirst.org/387/021/307/387021307.geojson

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