opendilab / DI-drive

Decision Intelligence Platform for Autonomous Driving simulation.
https://opendilab.github.io/DI-drive/
Apache License 2.0
569 stars 58 forks source link

ModuleNotFoundError: No module named 'ding' #5

Closed weijielyu closed 3 years ago

weijielyu commented 3 years ago

In the documentation for End-to-End Model-Free Reinforcement Learning for Urban Driving using Implicit Affordances, when I try to run python collect_data.py, there's an error in the import section: from ding.utils import EasyTimer ModuleNotFoundError: No module named 'ding' Is that because the ding dir wasn't added into the Github repository? Could you help with that? Thanks!

RobinC94 commented 3 years ago

Hi, have you successfully installed DI-engine? You can try pip install DI-engine python -c 'import ding'

weijielyu commented 3 years ago

Hi, I installed DI-engine, now it can find module ding, but it gives me another error: File "/home/xxxxxxxx/.local/lib/python3.7/site-packages/core/data/dataset_saver.py", line 8, in <module> from core.utils.data_utils.data_writter import write_json, write_episode_lmdb ModuleNotFoundError: No module named 'core.utils'

RobinC94 commented 3 years ago

Hi, are you still trying to run python collect_data.py in Implicit Affordance? I have tried in newest code of the main branch and no error arose.

weijielyu commented 3 years ago

Oh, I reinstalled DI-drive and it works this time. Thank you!