diambra / arena

DIAMBRA Arena: a New Reinforcement Learning Platform for Research and Experimentation
https://docs.diambra.ai
Other
313 stars 22 forks source link

directory issue #39

Closed 77asadian closed 1 year ago

77asadian commented 1 year ago

Hi,

I'd keep receiving this error when I'm creating a new environment like doapp: "Error: Cannot open "/opt/diambraArena/roms/doapp.zip": No such file or directory."

Can you please tell me What I should do?

alexpalms commented 1 year ago

Hi @77asadian have you downloaded the game rom as explained in the docs here: https://docs.diambra.ai/#download-game-roms-and-check-validity ?

77asadian commented 1 year ago

I think I have. I had to create some new folders and rename them to make this prompt work!

image

alexpalms commented 1 year ago

You could have placed the roms wherever you prefer, your/roms/path is just a placeholder/example.

So it appears you created the following nested folders C:\Users\HamidReza\your\roms\local\path\ where you put your roms, correct?

77asadian commented 1 year ago

You could have placed the roms wherever you prefer, your/roms/path is just a placeholder/example.

So it appears you created the following nested folders C:\Users\HamidReza\your\roms\local\path\ where you put your roms, correct?

OOPS! No, This is the right directory: "C:\Users\HamidReza.diambra\roms\your\roms\local\path"

alexpalms commented 1 year ago

Ok, anyways, you could also create a simple C:\Desktop\roms\ folder where to place them. This path is then needed by the CLI: when you run a script you need to specify it in this way:

diambra run -r C:\Users\HamidReza.diambra\roms\your\roms\local\path python script.py

wherescript.py is the name of the script you want to run.

Can you try this way?

77asadian commented 1 year ago

Ok, anyways, you could also create a simple C:\Desktop\roms\ folder where to place them. This path is then needed by the CLI: when you run a script you need to specify it in this way:

diambra run -r C:\Users\HamidReza.diambra\roms\your\roms\local\path python script.py

wherescript.py is the name of the script you want to run.

Can you try this way?

Actually, I'm using jupyter notebook. Can you please recommend a CLI so that I can use it in jupyter notebook?

alexpalms commented 1 year ago

Are you using jupyter notebook from the shell of within IDE like VSCode?

alexpalms commented 1 year ago

Guidelines on how to use jupyter notebooks are described in our docs here: https://docs.diambra.ai/gettingstarted/#using-python-notebooks

77asadian commented 1 year ago

Are you using jupyter notebook from the shell of within IDE like VSCode?

  1. I'm using anaconda. I tried to make a special environment for this platform. Then I follow the installation instructions. I'm currently running jupyter notebook with this command: diambra run jupyter notebook

  2. I tried your recommended prompts. I made a script.py file and fill it with the base script in the documentation. Now I did not receive the former error but another one just appeared:

image

I hope I don't butter you.

alexpalms commented 1 year ago

We are happy to help, no bother at all! 😄

There are a few problems: 1) to use jupyter notebook user diambra run -r C:\Users\HamidReza.diambra\roms\your\roms\local\path jupyter notebook 2) the command you are using is wrong, take a look again at the command I sent you, yours is missing python (don't forget the space)

77asadian commented 1 year ago
  1. diambra run -r

Thank you! It worked. Now I just want to connect this code to Docker. How can I do that?

alexpalms commented 1 year ago

Just to make sure this issue can be closed, were you able to properly run the script so that the environment loaded and you were able to interact with it?

If you could share a screenshot would be great

77asadian commented 1 year ago

Just to make sure this issue can be closed, where you able to properly run the script so that the environment loaded and you where able to interact with it?

If you could share a screenshot would be great

I don't properly understand your question, but I used this command: diambra run -r C:\Users\HamidReza.diambra\roms\your\roms\local\path jupyter notebook to perform the script in jupyter notebook.

Now, I'm performing the env.render line and I don't see anything. Here is a screenshot from jupyter notebook:

image

alexpalms commented 1 year ago

Ok so the environment is being loaded and runs. Great! I'll close the issue for this.

alexpalms commented 1 year ago

Regarding the rendering and other aspects, let's talk about it on a dedicated issue or on our discord server https://discord.gg/tFDS2UN5sv, whatever you prefer.

77asadian commented 1 year ago

Regarding the rendering and other aspects, let's talk about it on a dedicated issue or on our discord server https://discord.gg/tFDS2UN5sv, whatever you prefer.

Thank you for your help man. I made an issue so that anyone who has the same problem, refer to that.

alexpalms commented 1 year ago

Perfect! The issue is the following: https://github.com/diambra/arena/issues/40