Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » Eclipse Sumo » Sumo-gui could not connect to TraCI server. Please Help!(Could not connect to TraCI server using port 53473 (TraCI server already finished). Retrying with different port.)
Sumo-gui could not connect to TraCI server. Please Help! [message #1860474] Tue, 08 August 2023 18:31
Adrian Jenssen Pe is currently offline Adrian Jenssen PeFriend
Messages: 1
Registered: August 2023
Junior Member
I am trying to run an actor-critic deep reinforcement algorithm into SUMO and when I was about to run the code an error prompt showed saying

"Could not connect to TraCI server using port 53473 (TraCI server already finished). Retrying with different port."

I have this in my code when initializing the TraCI:
            port_n = 8813
            #port_n = getFreeSocketPort() 
            traci.start([str(SUMOPATH), "-c", str(SIMFILEPATH), "--remote-port", str(port_n)])
            # 开始一次仿真
            traci.connect(port=port_n)
            initconstants()
            self.detectors:list = DETECTORS 
            self.timestep = 0
            self.signalstate.reset()
            obs = self.get_observation()
            return obs


However, the error still occurs whether I use the 8813 or the getFreeSocketPort(). How could I run the DRL. If you are an expert in RL-SUMO and would like to personally help me and be a co-author, kindly contact me through my email : adrian_jenssen_pe@dlsu.edu.ph. Thank y ou!
  • Attachment: sumoenv.py
    (Size: 14.20KB, Downloaded 66 times)
Previous Topic:Joining junctions and traffic lights
Next Topic:SUMO roundabout connection
Goto Forum:
  


Current Time: Sat Mar 02 01:10:08 GMT 2024

Powered by FUDForum. Page generated in 0.01561 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top