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

Malformed json in imposm.mml #135

Open
ssipos90 opened this issue Mar 1, 2021 · 1 comment
Open

Malformed json in imposm.mml #135

ssipos90 opened this issue Mar 1, 2021 · 1 comment

Comments

@ssipos90
Copy link

ssipos90 commented Mar 1, 2021

Hi,

In osm-bright/osm-bright.imposm.mml there's a trailing comma on line 553.

....
552:        "geometry_field": "geometry",
553:        "extent": "-20037508.34 -20037508.34 20037508.34 20037508.34",
554:      },
...

And ./make.py fails with:

Traceback (most recent call last):
  File "./make.py", line 128, in <module>
    build()
  File "./make.py", line 41, in build
    template = loads(templatefile.read())
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 554 column 7 (char 26688)
The command 'python2 ./make.py' returned a non-zero code: 1
@ssipos90
Copy link
Author

ssipos90 commented Mar 1, 2021

Most probably, the python lib got upgraded and doesn't allow this anymore - basically sticking to JSON specs.

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

1 participant