Closed chraibi closed 6 years ago
interesting. I can't reproduce the error and I don't see why not iteritems() shouldn't work for a dictionary.
Does your variable self.nodes look like this when debugging? dict: {'1587310395': <Element 'node' at 0x7ffe550>, '1587310390': <Element 'node' at 0x7ffe3f0>, .......
I found it. dic.iteritems() was changed to dic.items() in python3. When I started the project it was recommended to use the shapely library, which is the key library of my project, with python2. It seems that it has been tested with python3 now. I will update to python3 and adapt the code. Gonna let you know as soon as I'm done with this
I've installed all packages with pip3
. So if there is no special reason for sticking with python2, I would suggest to switch to python3.
I did already some changes in this regard. I'll make a PR soon.
Running
gives the following error