facebookresearch / nocturne

A data-driven, fast driving simulator for multi-agent coordination under partial observability.
MIT License
258 stars 29 forks source link

IndexError: _Map_base::at when running sim = Simulation() #21

Closed BenQLange closed 2 years ago

BenQLange commented 2 years ago

Hi,

I've just installed your package. When running the example Python script from 'Installing Nocturne', I am getting the following error:

Python 3.8.13 (default, Mar 28 2022, 11:38:47) [GCC 7.5.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. from nocturne import Simulation sim = Simulation() Traceback (most recent call last): File "", line 1, in IndexError: _Map_base::at

Have I missed something during the installation process?

Thanks

eugenevinitsky commented 2 years ago

Hi! Sorry for the trouble. That's a leftover instruction in our README (that we have now removed). Everything is fine, it's just that Nocturne requires a scenario file to construct the scenario. (and used to not require this). You can take a look at examples/create_env.py to see how to construct a Gym env or examples/nocturne_functions.py to see how to construct the Simulation object and there's an example json in there to use until you download the dataset.

Let me know if that resolves your issue!

BenQLange commented 2 years ago

Works! Thanks!