Closed razzzu closed 4 years ago
This looks like atari-py is somehow installed incorrectly. We don't officially support the windows binaries, but you can try uninstalling and reinstalling atari-py (make sure you're on windows 10).
If you can't run python -c 'import atari_py; print(atari_py.list_games())'
then it's likely things are broken and you won't be able to make that environment.
same problem. The ale_c.dll file is missing. And I checked the folder, it is indeed missing in the folder. which is specified the import. could you please provide the dll file?
I solved this problem.
Uninstall gym and atari-py (If already installed):
pip uninstall atari-py
pip uninstall gym[atari]
Download VS build tools here: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
Run the VS build setup and select "C++ build tools" and install it.
Restart PC.
Install cmake, atari-py and gym
pip install cmake
pip install atari-py
pip install gym[atari]
Now run the following code:
import atari_py
print(atari_py.list_games())
and if everything worked then it should return a list of all games as shown below
['adventure', 'air_raid', 'alien', 'amidar', 'assault', 'asterix', 'asteroids', 'atlantis', 'bank_heist', 'battle_zone', 'beam_rider', 'berzerk', 'bowling', 'boxing', 'breakout', 'carnival', 'centipede', 'chopper_command', 'crazy_climber', 'defender', 'demon_attack', 'double_dunk', 'elevator_action', 'enduro', 'fishing_derby', 'freeway', 'frostbite', 'gopher', 'gravitar', 'hero', 'ice_hockey', 'jamesbond', 'journey_escape', 'kaboom', 'kangaroo', 'krull', 'kung_fu_master', 'montezuma_revenge', 'ms_pacman', 'name_this_game', 'phoenix', 'pitfall', 'pong', 'pooyan', 'private_eye', 'qbert', 'riverraid', 'road_runner', 'robotank', 'seaquest', 'skiing', 'solaris', 'space_invaders', 'star_gunner', 'tennis', 'time_pilot', 'tutankham', 'up_n_down', 'venture', 'video_pinball', 'wizard_of_wor', 'yars_revenge', 'zaxxon']
oooo you are so cool !!
Thank u !!!! very cool!!!!!!!!!!!
cool! Thank you very much!
it worked!! thank you so much :D
thank you
Dude thank you so much for posting the steps you took to fix this. This worked perfectly and I'm so excited to play with this.
thank you so much
thank u!
Thanks @razzzu got it working by following your instructions
If anyone is facing issue like ...ale_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
and can't fix with the steps described in the comment above, checkout this.
imdeep 2905,thanks for the suggestion,I was facing the same issue. On a sidenote,it would be better if OpenAI could make sure their relase was stable and interoperable on all platforms.
thank u so much~ it works perfectly well!
If anyone is facing issue like
...ale_c.dll' (or one of its dependencies). Try using the full path with constructor syntax.
and can't fix with the steps described in the comment above, checkout this.
After doing all steps mentioned by razzzu, the problem still exists. This worked for me! Thanks!
Thanks,bro.
cool, thanks!
so cool. works for me too. many thanks !
It's an amazing solution by Razzzu. It works perfectly. What a saver. Many hugs and thank you very much 👍 💯
万分感谢
wtf bro it works for me haha, ty so much!!!
Sorry my bad. My environment has some issues and looking into it. Thanks for your reply.
From: KaiHong1015 @.> Sent: Thursday, 13 May 2021 5:45 AM To: openai/gym @.> Cc: changfyg @.>; Comment @.> Subject: Re: [openai/gym] 'module could not be found' when running gym.make for atari environment. (#1726)
wtf bro it works for me haha, ty so much!!!
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/openai/gym/issues/1726#issuecomment-840049906, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQJ7I35OMRPFEEJ77QLQYQLTNLLEBANCNFSM4JGM2UYQ.
I solved the problem by
conda install -c conda-forge atari_py
I solved this issue check the 3rd comment
when I run
gym.make('SpaceInvaders-v0')
I get the following TraceBack
I Think i am missing a dependency or some file but i cannot figure out which it is. I have 'cmake' and i have installed the gym[atari] dependency. I can run the CartPole enviorment without any issues but cannot run any atari environments.
Requirement already satisfied: gym[atari] in c:\users\swifty\anaconda3\lib\site-packages (0.15.3) Requirement already satisfied: pyglet<=1.3.2,>=1.2.0 in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (1.3.2) Requirement already satisfied: six in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (1.12.0) Requirement already satisfied: numpy>=1.10.4 in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (1.16.4) Requirement already satisfied: cloudpickle~=1.2.0 in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (1.2.1) Requirement already satisfied: scipy in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (1.2.1) Requirement already satisfied: opencv-python; extra == "atari" in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (4.1.1.26) Requirement already satisfied: atari-py~=0.2.0; extra == "atari" in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (0.2.6) Requirement already satisfied: Pillow; extra == "atari" in c:\users\swifty\anaconda3\lib\site-packages (from gym[atari]) (6.1.0) Requirement already satisfied: future in c:\users\swifty\anaconda3\lib\site-packages (from pyglet<=1.3.2,>=1.2.0->gym[atari]) (0.17.1)
P.S. This is my first time posting on github so i am sorry if i am doing something wrong.