imitation-learning icon indicating copy to clipboard operation
imitation-learning copied to clipboard

Problem with Carla 0.8.2

Open mvpcom opened this issue 7 years ago • 1 comments

I can confirm the following problems still exist in the current version of the code. Is there anything that I missed?

File "run_CIL.py", line 5, in <module>
    from carla.driving_benchmark.experiment_suite import CoRL2017
ImportError: No module named experiment_suite

Fixed by changing experiment_suite to experiment_suites.

File "run_CIL.py", line 7, in <module>
  from agents.imitation.imitation_learning import ImitationLearning
  File "./CARLA_0.8.2/PythonClient/agents/imitation/imitation_learning.py", line 12, in <module>
    from carla.benchmarks.agent import Agent
ImportError: No module named benchmarks.agent

Fixed by changing carla.benchmarks.agent to carla.agent

Traceback (most recent call last):
  File "run_CIL.py", line 65, in <module>
    agent = ImitationLearning(args.city_name, args.avoid_stopping)
  File "./CARLA_0.8.2/PythonClient/agents/imitation/imitation_learning.py", line 21, in __init__
    Agent.__init__(self, city_name)
TypeError: __init__() takes exactly 1 argument (2 given)

Fixed by changing Agent.init(self, city_name) to Agent.init(self)

P.S: I am not sure if these changes can raise any issue.

mvpcom avatar Apr 23 '18 15:04 mvpcom

Yeah, Just fixed and merged to master. These were some last minute name changes. Since I mostly work alone on this repo, we don't have a rigorous testing policy as we have with the simulator.

Thanks a lot for reporting it so quickly !

felipecode avatar Apr 23 '18 16:04 felipecode