0

I am already install flow0.5, sumo 1.1, RLlib and Stable Baseline. I didn't know how to use sumo_binaries folder automatically downloaded with flow, so I installed sumo 1.1 from source.

The example python examples/sumo/sugiyama.py runs well.

But when I try running python examples/stable_baselines/stabilizing_the_ring.py error occurs like

Error: tcpip::Storage::readIsSafe: want to read 4 bytes from Storage, but only 3 remaining
Quitting (on error).
Error during start: Traceback (most recent call last):
  File "/home/elizabeth/0MA/flow/flow/core/kernel/simulation/traci.py", line 159, in start_simulation
    traci_connection.simulationStep()
  File "/home/elizabeth/anaconda3/envs/MultiAgent/lib/python3.6/site-packages/traci/connection.py", line 323, in simulationStep
    result = self._sendExact()
  File "/home/elizabeth/anaconda3/envs/MultiAgent/lib/python3.6/site-packages/traci/connection.py", line 99, in _sendExact
    raise FatalTraCIError("connection closed by SUMO")
traci.exceptions.FatalTraCIError: connection closed by SUMO

I wonder what exactly the problem is. I am not sure if it is because of my sumo version doesn't match traci version. But I don't know how to check the traci version and match them.

Is there anyone meet the same problem? Could you please tell me more info about this issue?

Many thanks!

Elizabeth
  • 11
  • 1

2 Answers2

1

I just figure it out myself.

Sumo don't need to be installed independently when using flow. scripts/setup_sumo_ubuntu1604.sh this line is installing sumo which flow use.

I fixed this by simply change path in bashrc back to sumo_binaries which automatically downloaded under flow folder. If it can't work after adding path to bachrc and source it, try reboot your pc.

Just posting for anyone in need.

Wish you all good luck!

Elizabeth
  • 11
  • 1
0

You can also get this error when you try to run flow experiments from a different environment other than flow, that is if you have multiple versions of SUMO installed.

  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/low-quality-posts/25408485) – dan1st Feb 20 '20 at 17:37
  • @dan1st You are right. I meant to say that this error can be related to running flow experiments from a different env other than the flow env. In Elizabeth's case, it may not have been the case, but other users may have the same issue. – jaykobbiejnr Feb 21 '20 at 13:42