facebookresearch / nocturne

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

[Question] Need Help Installing #43

Closed minh-le-99 closed 1 year ago

minh-le-99 commented 2 years ago

Question

Hello, I am a student doing AI research and currently trying to set up Nocturne into my school pc:

image image

My Visual Studio Code runs into this error after trying to run the files, please let me know if you have any suggestions/advice!

eugenevinitsky commented 2 years ago

Which command did you run to get this error?

minh-le-99 commented 2 years ago

I right click in the create_env.py file and "Run Current File in Interactive Window"

minh-le-99 commented 2 years ago

Is there possibly any video tutorial that I can check out with how to use Visual Studio/CMake/SMFL to run Nocturne?

eugenevinitsky commented 2 years ago

We don't have that yet, no. Can you confirm that you successfully completed all the installation steps? Also, are you running this in a jupyter notebook (as it seems above?)

minh-le-99 commented 2 years ago

image

I cannot confirm that I install everything correctly :( However, I was able to successfully build the Nocturne folder from Github in SMFL - Microsoft Visual Studio. In the picture below in the bottom left, it said the build succeeded. Does this seem correct?

eugenevinitsky commented 2 years ago

I'm not sure, what are you showing me in the window? Sorry, could you confirm again that you followed the build instructions or was there something blocking you from doing so?

minh-le-99 commented 2 years ago

Yea, sorry I'll write down my process so far, please let me know if I am missing anything: 1) I installed the dependencies, Cmake and downloaded the SMFL. In Cmake I configurated/generate the files using Visual Studio Code(2017). 2) In my command prompt, I have install the git submodules, and did "python setup.py develop" to install Nocturne. 3) In Visual Studio Code, I go into the create_env.py folder and try to run it, and it would give me the "ipykernel" error like in the first picture I posted.

nathanlct commented 2 years ago

As far as I can tell that error seems unrelated to Nocturne? The error seems to be that you’re missing a jupyter-related package and it is giving you the command to install it. Have you tried that?

On a second note, I’m seeing python3.9 while Nocturne should be installed in 3.8 by default. Did you create a conda environment, as mentioned in the installation instructions? If so, did you activate the environment (conda activate nocturne) before executing the Python file?

You could also try running the file in the terminal directly (python name_of_file.py) to make sure that the problem is jupyter-related.

On Fri 5 Aug 2022 at 0:41 Minh Ngoc Le @.***> wrote:

Yea, sorry I'll write down my process so far, please let me know if I am missing anything:

  1. I installed the dependencies, Cmake and downloaded the SMFL. In Cmake I configurated/generate the files using Visual Studio Code(2017).
  2. In my command prompt, I have install the git submodules, and did "python setup.py develop" to install Nocturne.
  3. In Visual Studio Code, I go into the create_env.py folder and try to run it, and it would give me the "ipykernel" error like in the first picture I posted.

— Reply to this email directly, view it on GitHub https://github.com/facebookresearch/nocturne/issues/43#issuecomment-1205839409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIA44MCKZGRAADKBCZY3HMDVXRBKRANCNFSM55QSB6GA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

eugenevinitsky commented 1 year ago

Closed as stale, please re-open if needed.