Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Env fails when creating temp lua file #11

Open
jev217 opened this issue Aug 17, 2017 · 0 comments
Open

Env fails when creating temp lua file #11

jev217 opened this issue Aug 17, 2017 · 0 comments

Comments

@jev217
Copy link

jev217 commented Aug 17, 2017

Im running windows and i've got the env installed into gym but when i go to run:


import gym
env = gym.make('SuperMarioBros-1-1-v0')
observation = env.reset()
for _ in range(1000):
    env.render()
    action = env.action_space.sample() # your agent here (this takes random actions)
    observation, reward, done, info = env.step(action)

I receive the following error:

[2017-08-16 21:29:14,763] Making new env: SuperMarioBros-1-1-v0
Traceback (most recent call last):
  File "C:/Users/username/PycharmProjects/AI/tutorials.py", line 3, in <module>
    observation = env.reset()
  File "C:\Users\username\Anaconda3\envs\Python352\lib\site-packages\gym-0.9.2-py3.5.egg\gym\core.py", line 104, in reset
    return self._reset()
  File "C:\Users\username\Anaconda3\envs\Python352\lib\site-packages\gym-0.9.2-py3.5.egg\gym\envs\ppaquette_gym_super_mario\nes_env.py", line 653, in _reset
    self._launch_fceux()
  File "C:\Users\username\Anaconda3\envs\Python352\lib\site-packages\gym-0.9.2-py3.5.egg\gym\envs\ppaquette_gym_super_mario\nes_env.py", line 194, in _launch_fceux
    temp_lua_file = open(temp_lua_path, 'w', 1)
OSError: [Errno 22] Invalid argument: '\tmp\\3628161587.lua'
'C:\Users\usernm~1\AppData\Local\Temp\smb-fifo-out.684933541' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\usernm~1\AppData\Local\Temp\smb-fifo-in.684933541' is not recognized as an internal or external command,
operable program or batch file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant