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

Error with commandline when running examples/sumo/sugiyama.py #395

Closed
KidTrunks opened this issue Jan 26, 2019 · 11 comments
Closed

Error with commandline when running examples/sumo/sugiyama.py #395

KidTrunks opened this issue Jan 26, 2019 · 11 comments

Comments

@KidTrunks
Copy link

Versions:
Ubuntu 16.04
Python 3.5

Problem:
The following error codes occur after running examples/sumo/sugiyama.py

Loading configuration... done.
Success.
Error: On processing option '--num-clients':
No option with the name 'num-clients' exists.
Error: The parameter '1' is not allowed in this context.
Switch or parameter name expected.
Error: On processing option '--collision.check-junctions':
No option with the name 'collision.check-junctions' exists.
Error: The parameter 'true' is not allowed in this context.
Switch or parameter name expected.
Error: Could not parse commandline options.
Quitting (on error).
Could not connect to TraCI server at localhost:51587 [Errno 111] Connection refused
Retrying in 1 seconds
Could not connect to TraCI server at localhost:51587 [Errno 111] Connection refused

The sumo gui pops up with the above error codes. Flow had already been activated with 'source activate flow.' Any help would be appreciated.

Thanks!

@JeanUCD
Copy link

JeanUCD commented Jan 28, 2019

Hi, I met the same problem, have you figured it out?

@KidTrunks
Copy link
Author

Hi @JeanUCD,

Not yet unfortunately. Please let me know if you figure anything out.

Thanks.

@AboudyKreidieh
Copy link
Member

Hi all, thank you for bringing this up. I will look into it and get back to you ASAP.

@AboudyKreidieh
Copy link
Member

AboudyKreidieh commented Jan 29, 2019

Doing some quick research, one issue might be that the sumo version is too out-of-date: https://www.eclipse.org/lists/sumo-user/msg02480.html.

Can you share with me your sumo version? You can get it by typing sumo in your terminal. You should get something like this:

SUMO Version v0_31_0-812-g1d4338ab80
 Build features: x86_64-pc-linux-gnu TRACI PROJ GDAL GUI
 Copyright (C) 2001-2017 German Aerospace Center (DLR) and others; http://sumo.dlr.de
 License EPLv2: Eclipse Public License Version 2 <https://eclipse.org/legal/epl-v20.html>
 Use --help to get the list of options.

@KidTrunks
Copy link
Author

Thanks for your help. Here is my sumo version:

SUMO Version 0.25.0
Copyright (C) 2001-2015 DLR and contributors; http://sumo.dlr.de
License GPLv3+: GNU GPL Version 3 or later http://gnu.org/licenses/gpl.html
Use --help to get the list of options.

@AboudyKreidieh
Copy link
Member

Hey, yes that seems to be the issue. Certain options we are calling are only available for sumo version from 0.31.0 and above. I would recommend following our setup instructions to get the current sumo version on your local machine.

Link to setup instructions: https://flow.readthedocs.io/en/latest/flow_setup.html

@KidTrunks
Copy link
Author

examples/sumo/sugiyama.py working properly after updating sumo to 0.31.0!!!

Thank you so much!! You may close this now.

@AboudyKreidieh
Copy link
Member

glad to hear it! let us know if you run into any other issues

@xiaoToby
Copy link

Now
I ran that program.
I get an error: want to read 4 bytes from Storage, but only 3 remainning.
How to fix it?
BTW, my sumo version is 0.32.0

@jingyanping
Copy link

i meet the same problem, so i want to know how to update the sumo.
BTW:i use ubuntu 14.4
python 3.7(it is possible to use python3.7?)
sumo 0.19.0
THANKS!

@jingyanping
Copy link

Error: tcpip::Storage::readIsSafe: want to read 8 bytes from Storage, but only 4 remaining
The TraCI protocal changed in version 1.0.0.
Please make sure that TraCI client version and SUMO version match. @xiaoToby

i met the same problem,
I ran that program.
I get an error: want to read 4 bytes from Storage, but only 3 remainning.
How to fix it? i don't know how to change TRACI version
BTW, my sumo version is 0.32.0

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

5 participants