eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.49k stars 1.41k forks source link

MCTS intersections scenario at https://github.com/seanfhear/mcts-intersections #13662

Closed 17377786473 closed 1 year ago

17377786473 commented 1 year ago

Add your issue description here.

If possible, upload an example that shows your problem.

SUMO-version:

operating system:

Hello! I am running this code "https://github.com/seanfhear/mcts-intersections/issues"on my computer and the message 'D: Eclipse Sumo tools trace main. py: 162: UserWarning: Could not connect to TraCI server using port 54246' appears Retrying with different ports

Warnings. warn ("Could not connect to TraCI server using port% s. Retrying with different port."% sumoPort)

Traceback (most recent call last):

File "E: alanechangemethod Monte Carlo Tree Search on Traffic mcts interactions main src main. py", line 140, in

Main()

File "E: alanechangemethod Monte Carlo Tree Search on Traffic mcts interactions main src main. py", line 62, in main

Traci. start (sumOCmd)

File "D: Eclipse Sumo tools track main. py", line 164, in start

Raise FatalTraCIError ("Could not connect.")

Traci. exceptions. FatalTracCIError: Could not connect. I have searched for a lot of information, and both my computer system variables and user variables have been set to sumo.I don't know how to solve this problem.

m-kro commented 1 year ago

The sumocfg files (like this one) provided in the cited repository have to be updated regarding file paths. At the moment they still have absolute paths to a local directory of the author. Consequently SUMO cannot load the sumocfg file and not allow TraCI to connect. Please update the paths to net file etc. in your local copy to match the actual path.

17377786473 commented 1 year ago

Hello, I have modified the file path, but the code still has this issue“File "E:\alanechangemethod\Monte Carlo Tree Search on Traffic\mcts-intersections-main\src\main.py", line 62, in main     traci.start(sumoCmd)   File "D:\Eclipse\Sumo\tools\traci\main.py", line 164, in start     raise FatalTraCIError("Could not connect.") traci.exceptions.FatalTraCIError: Could not connect.”. I don't know how to make the changes

------------------ 原始邮件 ------------------ 发件人: "eclipse/sumo" @.>; 发送时间: 2023年7月26日(星期三) 下午2:48 @.>; @.**@.>; 主题: Re: [eclipse/sumo] problem (Issue #13662)

The sumocfg files (like this one) provided in the cited repository have to be updated regarding file paths. At the moment they still have absolute paths to a local directory of the author. Consequently SUMO cannot load the sumocfg file and not allow TraCI to connect. Please update the paths to net file etc. in your local copy to match the actual path.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

m-kro commented 1 year ago

The path to SUMO is encoded in src/config.yaml . Please contact the author of the mcts-intersections repository for further questions as this clearly related to his code!

17377786473 commented 1 year ago

Okay, thank you again for your reply

------------------ 原始邮件 ------------------ 发件人: "eclipse/sumo" @.>; 发送时间: 2023年7月27日(星期四) 下午3:38 @.>; @.**@.>; 主题: Re: [eclipse/sumo] MCTS intersections scenario at https://github.com/seanfhear/mcts-intersections (Issue #13662)

The path to SUMO is encoded in src/config.yaml . Please contact the author of the mcts-intersections repository for further questions as this clearly related to his code!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>