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

TypeError: cannot unpack non-iterable Phase object #122

Open
ZheliXiong opened this issue Apr 1, 2021 · 7 comments
Open

TypeError: cannot unpack non-iterable Phase object #122

ZheliXiong opened this issue Apr 1, 2021 · 7 comments

Comments

@ZheliXiong
Copy link

hi bro.i meet another problem when i transfer the sumo map .xml to the cityflow map .json.it says TypeError: cannot unpack non-iterable Phase object when the convert.py process the function named "node_to_intersection".the same problem with the examples file atlanta_sumo.net.xml. i dont know if i get something wrong?

@abderraouf2che
Copy link

Please check the naming of your intersection 'edges' or roads in sumo,
if the name of an edge is with an underscore eg edge_1 , the issue appears.

@abderraouf2che
Copy link

abderraouf2che commented Apr 3, 2021

@wnzhang @zyr17 more documentation is required!

@ZheliXiong
Copy link
Author

ZheliXiong commented Apr 5, 2021 via email

@abderraouf2che
Copy link

abderraouf2che commented Apr 8, 2021

The edges naming in that file include underscore;


<edge id=":69387078_0" function="internal">
        <lane id=":69387078_0_0" index="0" disallow="tram rail_urban rail rail_electric ship" speed="13.89" length="4.82" shape="515.24,1342.21 516.45,1343.07 516.84,1343.91 516.40,1344.72 515.14,1345.51"/>
    </edge>

if you replace the underscore by another character or remove it, it will work.

@ZheliXiong
Copy link
Author

ZheliXiong commented Apr 9, 2021 via email

@rika1021
Copy link

rika1021 commented Jul 4, 2022

Thanks!
Your solution helps a lot!

@abderraouf2che
Copy link

Welcome

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

3 participants