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

Crash on converted files #3

Open
arthurmougin opened this issue Oct 29, 2020 · 0 comments
Open

Crash on converted files #3

arthurmougin opened this issue Oct 29, 2020 · 0 comments

Comments

@arthurmougin
Copy link

Hello,
I am using France osm.pbf I got from geofabric and converted it into a .osm with osmconvert (The file size is surprisingly only around 200Mo).
When loading the file inside the program, it crash and display this message :

Traceback (most recent call last):
  File "C:\Users\Utilisateur\Documents\code\python-style-map\src\gui\MainWindow\MainWindowHandlers.py", line 203, in loadOSMFile
    self._map.setOSMFile(fileName)
  File "C:\Users\Utilisateur\Documents\code\python-style-map\src\gui\Widgets\mapwidget.py", line 80, in setOSMFile
    self._map = Map(self.width(), self.height(), fname, self._config)
  File "C:\Users\Utilisateur\Documents\code\python-style-map\src\core\Map.py", line 139, in __init__
    root = ET.parse(fname).getroot()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\xml\etree\ElementTree.py", line 1202, in parse
    tree.parse(source, parser)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0\lib\xml\etree\ElementTree.py", line 595, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: encoding specified in XML declaration is incorrect: line 1, column 31
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