You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have the same issue on MacOS. I think there is some compatibility issue with nes-py, and gym-mario dependencies. However, tried installing gym, so it works well.
Is there a work around to this above issue?
pip3 install nes_py
gives me this error:Defaulting to user installation because normal site-packages is not writeable
Collecting nes_py
Using cached nes_py-8.1.8.tar.gz (76 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: gym>=0.17.2 in /home/geofaz/.local/lib/python3.8/site-packages (from nes_py) (0.19.0)
Requirement already satisfied: numpy>=1.18.5 in /home/geofaz/.local/lib/python3.8/site-packages (from nes_py) (1.21.4)
Requirement already satisfied: pyglet<=1.5.11,>=1.4.0 in /home/geofaz/.local/lib/python3.8/site-packages (from nes_py) (1.5.11)
Requirement already satisfied: tqdm>=4.48.2 in /home/geofaz/.local/lib/python3.8/site-packages (from nes_py) (4.62.3)
Requirement already satisfied: cloudpickle<1.7.0,>=1.2.0 in /home/geofaz/.local/lib/python3.8/site-packages (from gym>=0.17.2->nes_py) (1.6.0)
Building wheels for collected packages: nes-py
Building wheel for nes-py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/setup.py'"'"'; file='"'"'/tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tfnfsr_l
cwd: /tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/
Complete output (31 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/nes_py
copying nes_py/nes_env.py -> build/lib.linux-x86_64-3.8/nes_py
copying nes_py/init.py -> build/lib.linux-x86_64-3.8/nes_py
copying nes_py/_image_viewer.py -> build/lib.linux-x86_64-3.8/nes_py
copying nes_py/_rom.py -> build/lib.linux-x86_64-3.8/nes_py
creating build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/play_human.py -> build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/init.py -> build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/cli.py -> build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/play_random.py -> build/lib.linux-x86_64-3.8/nes_py/app
creating build/lib.linux-x86_64-3.8/nes_py/wrappers
copying nes_py/wrappers/init.py -> build/lib.linux-x86_64-3.8/nes_py/wrappers
copying nes_py/wrappers/joypad_space.py -> build/lib.linux-x86_64-3.8/nes_py/wrappers
running build_ext
building 'nes_py.lib_nes_env' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/nes_py
creating build/temp.linux-x86_64-3.8/nes_py/nes
creating build/temp.linux-x86_64-3.8/nes_py/nes/src
creating build/temp.linux-x86_64-3.8/nes_py/nes/src/mappers
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ines_py/nes/include -I/usr/include/python3.8 -c nes_py/nes/src/emulator.cpp -o build/temp.linux-x86_64-3.8/nes_py/nes/src/emulator.o -std=c++1y -march=native -pipe -O3
cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
cc1plus: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1plus: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
error: command 'g++' failed with exit status 1
ERROR: Failed building wheel for nes-py
Running setup.py clean for nes-py
Failed to build nes-py
Installing collected packages: nes-py
Running setup.py install for nes-py ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/setup.py'"'"'; file='"'"'/tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-cs2n5g5x/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/geofaz/.local/include/python3.8/nes-py
cwd: /tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/
Complete output (33 lines):
running install
/home/geofaz/.local/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/nes_py
copying nes_py/nes_env.py -> build/lib.linux-x86_64-3.8/nes_py
copying nes_py/init.py -> build/lib.linux-x86_64-3.8/nes_py
copying nes_py/_image_viewer.py -> build/lib.linux-x86_64-3.8/nes_py
copying nes_py/_rom.py -> build/lib.linux-x86_64-3.8/nes_py
creating build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/play_human.py -> build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/init.py -> build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/cli.py -> build/lib.linux-x86_64-3.8/nes_py/app
copying nes_py/app/play_random.py -> build/lib.linux-x86_64-3.8/nes_py/app
creating build/lib.linux-x86_64-3.8/nes_py/wrappers
copying nes_py/wrappers/init.py -> build/lib.linux-x86_64-3.8/nes_py/wrappers
copying nes_py/wrappers/joypad_space.py -> build/lib.linux-x86_64-3.8/nes_py/wrappers
running build_ext
building 'nes_py.lib_nes_env' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/nes_py
creating build/temp.linux-x86_64-3.8/nes_py/nes
creating build/temp.linux-x86_64-3.8/nes_py/nes/src
creating build/temp.linux-x86_64-3.8/nes_py/nes/src/mappers
g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ines_py/nes/include -I/usr/include/python3.8 -c nes_py/nes/src/emulator.cpp -o build/temp.linux-x86_64-3.8/nes_py/nes/src/emulator.o -std=c++1y -march=native -pipe -O3
cc1plus: error: bad value (‘tigerlake’) for ‘-march=’ switch
cc1plus: note: valid arguments to ‘-march=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 native
cc1plus: error: bad value (‘tigerlake’) for ‘-mtune=’ switch
cc1plus: note: valid arguments to ‘-mtune=’ switch are: nocona core2 nehalem corei7 westmere sandybridge corei7-avx ivybridge core-avx-i haswell core-avx2 broadwell skylake skylake-avx512 cannonlake icelake-client icelake-server cascadelake bonnell atom silvermont slm goldmont goldmont-plus tremont knl knm intel x86-64 eden-x2 nano nano-1000 nano-2000 nano-3000 nano-x2 eden-x4 nano-x4 k8 k8-sse3 opteron opteron-sse3 athlon64 athlon64-sse3 athlon-fx amdfam10 barcelona bdver1 bdver2 bdver3 bdver4 znver1 znver2 btver1 btver2 generic native
error: command 'g++' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/setup.py'"'"'; file='"'"'/tmp/pip-install-qb_7k989/nes-py_018455e055ac4d4eb785c10c44e244a3/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-cs2n5g5x/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/geofaz/.local/include/python3.8/nes-py Check the logs for full command output.
Do you know what is the problem? Thanks in advance! :D
The text was updated successfully, but these errors were encountered: