opendilab / LMDrive

[CVPR 2024] LMDrive: Closed-Loop End-to-End Driving with Large Language Models
Apache License 2.0
526 stars 48 forks source link

关于rpc::rpc_error during call in function get_sensor_token #26

Open prograguo opened 4 months ago

prograguo commented 4 months ago

Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 483, in main leaderboard_evaluator = LeaderboardEvaluator(arguments, statistics_manager) File "leaderboard/leaderboard/leaderboard_evaluator.py", line 88, in init self.traffic_manager = self.client.get_trafficmanager(int(args.trafficManagerPort)) RuntimeError: rpc::rpc_error during call in function get_sensor_token Exception ignored in: <function LeaderboardEvaluator.del at 0x7fbd8e0e3f70> Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 127, in del self._cleanup() File "leaderboard/leaderboard/leaderboard_evaluator.py", line 139, in _cleanup if self.manager and self.manager.get_running_status() \ AttributeError: 'LeaderboardEvaluator' object has no attribute 'manager' Traceback (most recent call last): File "leaderboard/leaderboard/leaderboard_evaluator.py", line 493, in main() File "leaderboard/leaderboard/leaderboard_evaluator.py", line 489, in main del leaderboard_evaluator UnboundLocalError: local variable 'leaderboard_evaluator' referenced before assignment

BillChan226 commented 3 months ago

met the same issue. Does anyone have any idea?

deepcs233 commented 3 months ago

Hi! Sorry for the late reply, I have been very busy recently. It looks that the Carla simulator didn't start normally and the agent cannot connect the server. Maybe you can check the simulator's status and whether the port is being used.

timbrist commented 3 months ago

I assume that you are running the code with python3.8 and Client API version = 0.9.15. you need to use the carla-0.9.10-py3.7-win-amd64.egg instead of pip install carla (if you are using linux )

if you are using windows, the problem related to anaconda environments. see my comments It seems like the team of Carla didn't support python3.8 to run carla-0.9.10-py3.7-win-amd64.egg, the only solution may be just run on Linux.

如果你要是用Windows这个问题有点无解, 我是装了Linux之后这个才解决这个问题。

timbrist commented 3 months ago

This problem is not related to LMDrive

try to run carla0.9.10.1 successfully before running the lmdrive script.