mariorl's People
Forkers
darkcoder2000 richarddev01 quinnculver diptobarman10 snazari purnasankar sachin7695 cst0313 chaiya2513 adamselim1 d1egoprog jcari-dev sourav1429 yrspwn alexispacek cunrom arvizuyalma debduti suryashankarbhat cswclui flyinghzy andy6607tpce erenulu2020 douglasmendes sajal1701 oustercode dmares01 kartikmodi25 priyanshupansari readyaddy brad0788 13ac1company1 soniamartins3 kaival347 codedragon32 abd-ennour sasank15 njarac anshulxing thanhen ryganzk mariostudent kartikpapney subbu1446 bchanez ibrahimsabieh ausboss jegadeesh2001 nicholasdufresne jadynfrank27 luis314159 vierinenemil blackpearl3881 alingavriliuc lrscray inabatron alian3785 majboor udaykirankavaturu exampleex daniel1000123442 bmuaz wilmer1324 harshit2807161 samgmin9096 bouchra2178 tignioj shyguyevan seeker223 samirmartins saurabh20026 izk123 yaashhnaaamariorl's Issues
Solved issue - For all people that want to try this tutorial as it was uploaded in 2021.
For all people that want to try this tutorial as it was uploaded in 2021.
Here is the way back maschine:
Windows 10 Version:
Create a Python Virtual Environment with Python 3.10.1 with CMD.exe.
-> install Python 3.10.1
-> "py -3.10 -m venv myenv"
-> "myenv\Scripts\activate"
-> to deactivate it simply type "deactivate" at cmd.exe prompt.
Activate your python virtual environment for Python 3.10.1.
The cmd prompt will look differently.
You can check all installed packages by typing "pip freeze".
(or use the specific command for conda etc.)
You will see, it is empty.
Now install the packages with the stated version numbers listed below.
I suggest installing stable-baselines3[extra] last.
After each installation of a package, check the below listed
packages for their version again!
For example, if you install stable-baselines3[extra] last, it will automatically
"update" your gymnasium or numpy etc. to a higher version which will cause issues!
In this case uninstall the unwantedly updated package and reinstall the version listed below again.
Python 3.10.1
gym==0.23.0
gymnasium==0.26.1
gym-super-mario-bros==7.3.0
nes_py==8.2.1
numpy==1.26.4
Shimmy==0.1.0
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!
JoypadSpace.reset() got an unexpected keyword argument 'seed'
when I run state=run.env or model.learn(total_timesteps=1000,callback=callback) cell it continuously throw JoypadSpace.reset() got an unexpected keyword argument 'seed' Lemme know if you guys know about this
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'
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?
REQUEST ON MODELS
Hey Nick, could you please upload 2 or 3 of the best models ?
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
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.