Code Monkey home page Code Monkey logo

mariorl's People

Contributors

nicknochnack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mariorl's Issues

Error while installing nes_py on LINUX UBUNTU

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

Load model Issue with Python 3.9

I am having an issue with loading the model zip file which gave me this error "UserWarning: Could not deserialize object lr_schedule. Consider using the custom_objects argument to replace this object" . I wonder if anyone has experience with this one and the way to fix it. Thank you!

ValueError: not enough values to unpack (expected 5, got 4)


ValueError Traceback (most recent call last)
Cell In[4], line 10
8 env.reset()
9 # Do random actions
---> 10 state, reward, done, info = env.step(env.action_space.sample())
11 # Show the game on the screen
12 env.render()

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\nes_py\wrappers\joypad_space.py:74, in JoypadSpace.step(self, action)
59 """
60 Take a step using the given action.
61
(...)
71
72 """
73 # take the step and record the output
---> 74 return self.env.step(self._action_map[action])

File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gym\wrappers\time_limit.py:50, in TimeLimit.step(self, action)
39 def step(self, action):
40 """Steps through the environment and if the number of steps elapsed exceeds max_episode_steps then truncate.
41
42 Args:
(...)
...
---> 50 observation, reward, terminated, truncated, info = self.env.step(action)
51 self._elapsed_steps += 1
53 if self._elapsed_steps >= self._max_episode_steps:

ValueError: not enough values to unpack (expected 5, got 4)
I get this error while trying to run, how can I fix it?

Please provide the package versions you where using

There are a lot of incompatiblies by now and whether I upgrade or downgrade some packages back and forth there's always a thing which is incompatible. Please provide the package versions you were using, so the youtube tutorial is more easy to follow

TypeError: JoypadSpace.reset() got an unexpected keyword argument 'seed'

I got this error during the preprocessing. When I tried to run state = env.reset()

TypeError Traceback (most recent call last)
Cell In[5], line 1
----> 1 state = env.reset()

File c:\Users\gou\anaconda3\envs\tf\Lib\site-packages\stable_baselines3\common\vec_env\vec_frame_stack.py:41, in VecFrameStack.reset(self)
37 def reset(self) -> Union[np.ndarray, Dict[str, np.ndarray]]:
38 """
39 Reset all environments
40 """
---> 41 observation = self.venv.reset() # pytype:disable=annotation-type-mismatch
42 observation = self.stacked_obs.reset(observation) # type: ignore[arg-type]
43 return observation

File c:\Users\gou\anaconda3\envs\tf\Lib\site-packages\stable_baselines3\common\vec_env\dummy_vec_env.py:76, in DummyVecEnv.reset(self)
74 def reset(self) -> VecEnvObs:
75 for env_idx in range(self.num_envs):
---> 76 obs, self.reset_infos[env_idx] = self.envs[env_idx].reset(seed=self._seeds[env_idx])
77 self._save_obs(env_idx, obs)
78 # Seeds are only used once

File c:\Users\gou\anaconda3\envs\tf\Lib\site-packages\shimmy\openai_gym_compatibility.py:112, in GymV26CompatibilityV0.reset(self, seed, options)
110 super().reset(seed=seed)
111 # Options are ignored
--> 112 return self.gym_env.reset(seed=seed, options=options)
...
378 """Resets the environment, returning a modified observation using :meth:self.observation."""
--> 379 obs, info = self.env.reset(**kwargs)
380 return self.observation(obs), info

TypeError: JoypadSpace.reset() got an unexpected keyword argument 'seed'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.