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 with AttributeError: 'NoneType' object has no attribute 'convertLong' #2

Open
mahdi1234 opened this issue Jul 27, 2020 · 0 comments

Comments

@mahdi1234
Copy link

Gentoo with python 3.7

$ python3.7 ./main.py 
Traceback (most recent call last):
  File "/mnt/notes.data/OSM/map-stylizer/src/gui/MainWindow/MainWindowHandlers.py", line 203, in loadOSMFile
    self._map.setOSMFile(fileName)
  File "/mnt/notes.data/OSM/map-stylizer/src/gui/Widgets/mapwidget.py", line 80, in setOSMFile
    self._map = Map(self.width(), self.height(), fname, self._config)
  File "/mnt/notes.data/OSM/map-stylizer/src/core/Map.py", line 147, in __init__
    node = Node(child.attrib, transform)
  File "/mnt/notes.data/OSM/map-stylizer/src/core/Map.py", line 28, in __init__
    self._x = transform.convertLong(float(attrib['lon']))
AttributeError: 'NoneType' object has no attribute 'convertLong'
Aborted

when opening attached file

zdanice_2020_cesty.zip

file works fine with JOSM/Maperitive.

@mahdi1234 mahdi1234 changed the title AttributeError: 'NoneType' object has no attribute 'convertLong' Crash with AttributeError: 'NoneType' object has no attribute 'convertLong' Jul 27, 2020
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