Comments (31)
Is there more output? Did you install cmake? Try just installing the wheel.
from retro.
Possibly a duplicate of #13
from retro.
I updated issue. and I use this command
pip3.6 install https://storage.googleapis.com/gym-retro/builds/gym_retro-0.5.3-cp36-cp36m-win_amd64.whl
installed without any problem. then do this
git clone --recursive https://github.com/openai/retro.git gym-retro
cd gym-retro
command without any problem. when I want to be run below command I get that error
pip3 install -e .
from retro.
Is cmake installed and in PATH?
from retro.
No hints to cmake in guideline and adding to path
from retro.
it's at the top of the section you linked...
from retro.
Now I get this error:
Obtaining file:///C:/Users/Farshid/gym-retro
Requirement already satisfied: gym in c:\users\farshid\appdata\local\programs\py
thon\python36\lib\site-packages (from gym-retro==0.5.4.dev9+gda18b9d)
Requirement already satisfied: numpy>=1.10.4 in c:\users\farshid\appdata\local\p
rograms\python\python36\lib\site-packages (from gym->gym-retro==0.5.4.dev9+gda18
b9d)
Requirement already satisfied: requests>=2.0 in c:\users\farshid\appdata\local\p
rograms\python\python36\lib\site-packages (from gym->gym-retro==0.5.4.dev9+gda18
b9d)
Requirement already satisfied: six in c:\users\farshid\appdata\local\programs\py
thon\python36\lib\site-packages (from gym->gym-retro==0.5.4.dev9+gda18b9d)
Requirement already satisfied: pyglet>=1.2.0 in c:\users\farshid\appdata\local\p
rograms\python\python36\lib\site-packages (from gym->gym-retro==0.5.4.dev9+gda18
b9d)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\farshid\appdata
\local\programs\python\python36\lib\site-packages (from requests>=2.0->gym->gym-
retro==0.5.4.dev9+gda18b9d)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\farshid\appdata
\local\programs\python\python36\lib\site-packages (from requests>=2.0->gym->gym-
retro==0.5.4.dev9+gda18b9d)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\farshid\appdata\lo
cal\programs\python\python36\lib\site-packages (from requests>=2.0->gym->gym-ret
ro==0.5.4.dev9+gda18b9d)
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\farshid\appdata\local\
programs\python\python36\lib\site-packages (from requests>=2.0->gym->gym-retro==
0.5.4.dev9+gda18b9d)
Requirement already satisfied: future in c:\users\farshid\appdata\local\programs
\python\python36\lib\site-packages (from pyglet>=1.2.0->gym->gym-retro==0.5.4.de
v9+gda18b9d)
Installing collected packages: gym-retro
Found existing installation: gym-retro 0.5.3
Uninstalling gym-retro-0.5.3:
Successfully uninstalled gym-retro-0.5.3
Running setup.py develop for gym-retro
Complete output from command c:\users\farshid\appdata\local\programs\python\
python36\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\Farshid
\\gym-retro\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read()
.replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop
--no-deps:
running develop
running egg_info
writing gym_retro.egg-info\PKG-INFO
writing dependency_links to gym_retro.egg-info\dependency_links.txt
writing requirements to gym_retro.egg-info\requires.txt
writing top-level names to gym_retro.egg-info\top_level.txt
package init file 'data\__init__.py' not found (or not a regular file)
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.o' found anywhere in distr
ibution
warning: no previously-included files matching '*.a' found anywhere in distr
ibution
warning: no previously-included files matching '*.dylib' found anywhere in d
istribution
warning: no previously-included files matching '*.so' found anywhere in dist
ribution
warning: no previously-included files matching '*-version' found under direc
tory 'retro\cores'
writing manifest file 'gym_retro.egg-info\SOURCES.txt'
running build_ext
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:23 (project):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path t
o
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:23 (project):
The CMAKE_CXX_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full pat
h
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Farshid/gym-retro/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Farshid/gym-retro/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Farshid\gym-retro\setup.py", line 67, in <module>
use_scm_version=use_scm_version
File "c:\users\farshid\appdata\local\programs\python\python36\lib\site-pac
kages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "c:\users\farshid\appdata\local\programs\python\python36\lib\distutil
s\core.py", line 148, in setup
dist.run_commands()
File "c:\users\farshid\appdata\local\programs\python\python36\lib\distutil
s\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\users\farshid\appdata\local\programs\python\python36\lib\distutil
s\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\users\farshid\appdata\local\programs\python\python36\lib\site-pac
kages\setuptools\command\develop.py", line 36, in run
self.install_for_development()
File "c:\users\farshid\appdata\local\programs\python\python36\lib\site-pac
kages\setuptools\command\develop.py", line 136, in install_for_development
self.run_command('build_ext')
File "c:\users\farshid\appdata\local\programs\python\python36\lib\distutil
s\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\farshid\appdata\local\programs\python\python36\lib\distutil
s\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\Farshid\gym-retro\setup.py", line 39, in run
subprocess.check_call(['cmake', '.', pyext_suffix, pylib_dir, python_exe
cutable])
File "c:\users\farshid\appdata\local\programs\python\python36\lib\subproce
ss.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '.', '-DPYEXT_SUFFIX:STRIN
G=.cp36-win_amd64.pyd', '', '-DPYTHON_EXECUTABLE:STRING=c:\\users\\farshid\\appd
ata\\local\\programs\\python\\python36\\python.exe']' returned non-zero exit sta
tus 1.
----------------------------------------
Rolling back uninstall of gym-retro
Command "c:\users\farshid\appdata\local\programs\python\python36\python.exe -c "
import setuptools, tokenize;__file__='C:\\Users\\Farshid\\gym-retro\\setup.py';f
=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f
.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with e
rror code 1 in C:\Users\Farshid\gym-retro\
from retro.
Ok, this is an actual bug on my end. Do you have gcc installed? We don't currently have a tested workflow for building from source on Windows, as we use Docker to build for Windows on Linux.
from retro.
No, not installd
from retro.
No, not installd
from retro.
OK, then in the meantime I'd suggest you stick to the wheel. Building from source on Windows is currently unsupported, but I will try to figure out how to set it up.
from retro.
I'm waiting for your solution.
tnx
from retro.
Ok, new instructions are in the repository now. Please git pull
, remove the CMakeFiles folder and CMakeCache.txt, and follow the updated instructions. It worked on my end so let me know if there are any errors.
from retro.
which one 1- in the directory of gym-retro 2- installed with pip?
from retro.
In the directory of gym-retro, if they're there. Otherwise they may be in some temporary build directory you need to track down.
from retro.
I installed it, but when I write this env = retro.make(game='SonicTheHedgehog-Genesis', state='GreenHillZone.Act1')
in cmd I get this error:
Traceback (most recent call last):
File "C:\Users\Farshid\gym-retro\retro\__init__.py", line 114, in make
get_romfile_path(game)
File "C:\Users\Farshid\gym-retro\retro\__init__.py", line 78, in get_romfile_p
ath
raise FileNotFoundError("No romfiles found for game: %s" % game)
FileNotFoundError: No romfiles found for game: SonicTheHedgehog-Genesis
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Farshid\gym-retro\retro\__init__.py", line 119, in make
raise FileNotFoundError('Game not found: %s. Did you make sure to import the
ROM?' % game)
FileNotFoundError: Game not found: SonicTheHedgehog-Genesis. Did you make sure t
o import the ROM?
from retro.
Did you make sure to import the ROM?
from retro.
I just use two command
import retro
env = retro.make(game='SonicTheHedgehog-Genesis', state='GreenHillZone.Act1')
in python IDLE and then I encounter with above error.
from retro.
It sounds like you didn't import the ROM. Please follow the guidelines on https://contest.openai.com/details
from retro.
I write this code(same on page https://contest.openai.com/details => Now you can create a simple random agent in Python, random-agent.py:)
import retro
def main():
env = retro.make(game='Airstriker-Genesis', state='Level1')
obs = env.reset()
while True:
obs, rew, done, info = env.step(env.action_space.sample())
env.render()
if done:
obs = env.reset()
if __name__ == '__main__':
main()
I get this error:
Traceback (most recent call last):
File "aa.py", line 1, in <module>
import retro
File "c:\users\farshid\gym-retro\retro\__init__.py", line 8, in <module>
from retro._retro import Movie, RetroEmulator, core_path, data_path as _data
_path
ImportError: DLL load failed: The specified module could not be found.
from retro.
Can you tell me the contents of c:\users\farshid\gym-retro\retro? Is there a _retro.pyd file?
from retro.
from retro.
Is your Python installation 64-bits?
from retro.
from retro.
Same issue with pip wheel binary installation on Windows 7, Python 3.5 64 bit:
"ImportError: DLL load failed: The specified procedure could not be found."
from retro.
@endrift how can I handle this problem?
from retro.
I'm getting the same error trying to run this code:
import retro
retro.list_games()
I have _retro.pyd, 64-bit python, and I followed the instructions from the main retro page for installation.
from retro.
I don't seem to be able to reproduce this with Python 3.6 (python.org version, not anaconda) on Windows 7. Did you make sure to add Python to your path?
from retro.
Yes I made sure Python was added to my path. The instructions I used to install retro were the Windows instructions from here: https://github.com/openai/retro
Which gave me the DLL load error. I ended up uninstalling retro and just using pip instead, following these instructions and I haven't had any other issues yet: #35
from retro.
I tried the binary wheel on windows 10 with python 3.7 64-bit and things seemed to work. If anyone is still having issues with that wheel on windows, please file a new issue.
@FarshidShekari the wheel worked for you right? You were having trouble with installing from source, did that ever work for you?
from retro.
It's work. thanks
from retro.
Related Issues (20)
- UnboundLocalError: local variable 'ext' referenced before assignment HOT 3
- I get errors when i try to install gym-retro how do i solve this issues HOT 4
- SimpleImageViewer Import not found HOT 2
- Playback_Movie: [WinError 2] The system cannot find the file specified HOT 1
- Installation fail on Mac M1 HOT 13
- Hexadecimal memory locations for data.json HOT 1
- AttributeError: 'RetroEnv' object has no attribute 'em' HOT 4
- Can't install on Debian 11
- Can't load roms in gym HOT 3
- Variables constantly changing when they shouldn't? HOT 1
- two agent competing environment
- Add support for Python 3.9
- Issue with installing gym-retro (python 3.8) HOT 1
- support double dragon Neo-Geo(MAME Emulator) or PS ? HOT 2
- Sonic Down from steam store HOT 1
- subprocess.CalledProcessError: Command '['/usr/bin/make', '-j12', 'retro']' returned non-zero exit status 2. HOT 3
- Is there a C# version available?
- Add support to new versions!
- Mario Bros 3 - Can't Find Rom HOT 1
- Integration UI's download link has expired
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retro.