bsmoehring / jpsTools

tool for converting osm-data into jupedsim geometryy files
http://www.jupedsim.org
1 stars 1 forks source link

no attribute 'iteritems' #22

Closed chraibi closed 6 years ago

chraibi commented 6 years ago

Running

python main.py

gives the following error

screen shot 2018-01-19 at 12 16 22
bsmoehring commented 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>, .......

bsmoehring commented 6 years ago

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

chraibi commented 6 years ago

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.

bsmoehring commented 6 years ago

23