PJLab-ADG / LimSim

LimSim & LimSim++: Integrated traffic and autonomous driving simulators with (M)LLM support
https://pjlab-adg.github.io/LimSim/
GNU General Public License v3.0
391 stars 31 forks source link

Can not open Traffic Simulator #7

Closed ldt17 closed 7 months ago

ldt17 commented 1 year ago

We try your Quick Start and build the environment with python=3.9.18 and sumolib = 1.16 . But the Traffic Simulator shows nothing with no error. 1695026347840

Fdarco commented 1 year ago

Hello, I noticed that you have set the carla_cosim parameter to True. Are you planning to do a co-simulation? If not, please try setting this parameter to False and run it again.

ldt17 commented 1 year ago

@Fdarco Thanks for your recommendation. In fact, I have tried both “True” and “False” and obtained the same results which shows nothing with no error.

Fdarco commented 1 year ago

Did you modify any other code? Or did this problem occur directly when running the code?

ldt17 commented 1 year ago

Did you modify any other code? Or did this problem occur directly when running the code?

@Fdarco No, I'm just trying your Quick Start but failed. We haven't even reached the stage of co-simulation yet. image

When we run this code, it becomes unresponsive. The window “TrafficSimulator” will open, but there is nothing on the screen except white. 1695031867542

Fdarco commented 1 year ago

I’m sorry for the inconvenience. However, I created a new environment in conda with python=3.9.18 and reinstalled the dependencies, and I was not able to reproduce your issue. I noticed that there was a problem with con.getVsersion() in your original Tracback. May I ask what version of SUMO you have installed? Here are the results when I run it in the new environment: issue7 image

ldt17 commented 1 year ago

@Fdarco We completely followed the process in Quick Start, using pip install -r requirements.txt. The following is the installation environment details. Thanks. image

Fdarco commented 1 year ago

Sorry, but can you tell me the version of SUMO you installed? I ran it again according to the environment you provided, but I am unable to reproduce this bug. I suspect it may be an issue with the SUMO version.

ldt17 commented 1 year ago

@Fdarco The version of SUMO is 1.18.0. image And I also found that if the “sumogui” in the modelexample.py file is set to 1, the “sumogui” interface can be opened, but the traffic simulator interface still cannot be opened. 1695125217777

Fdarco commented 1 year ago

Although I cannot guarantee its effectiveness, I suspect it may be due to the backward compatibility of the versions of sumolib and traci. In fact, we have only tested SUMO before version 1.16. If possible, please try installing a lower version of SUMO or upgrading sumolib and traci to the latest version.

ldt17 commented 1 year ago

@Fdarco We have tried the same process on other devices and found that it runs normally. The sumo versions are 1.18 and 1.17, respectively. However, the above errors still occur on previous devices. Can we assume that the absence of the traffic simulator is not related to the sumo version

CRHPlusAI commented 11 months ago

I encounter the same issue. I think if you install sumo 1.16, it would resolve either do this through pip install eclipse-sumo==1.16.0, or add eclipse-sumo==1.16.0 to the requirement.txt can resolve this issue.

github-actions[bot] commented 7 months ago

Stale issue message, no activity