Installation issue
See original GitHub issueI get a weird error when i test my installation using
python -m spinup.run ppo --hid [32,32] --env Walker2d-v2 --exp_name installtest
Error :
`================================================================================ ExperimentGrid [installtest] runs over parameters:
env_name [env]
Walker2d-v2
ac_kwargs:hidden_sizes [ac-hid]
[32, 32]
Variants, counting seeds: 1 Variants, not counting seeds: 1
================================================================================
Preparing to run the following experiments…
installtest
================================================================================
Launch delayed to give you a few seconds to review your experiments.
To customize or disable this behavior, change WAIT_BEFORE_LAUNCH in spinup/user_config.py.
================================================================================ Running experiment:
installtest
with kwargs:
{ “ac_kwargs”: { “hidden_sizes”: [ 32, 32 ] }, “env_name”: “Walker2d-v2”, “seed”: 0 }
Traceback (most recent call last): File “/Users/haresh/Documents/spinningup/spinup/utils/run_entrypoint.py”, line 10, in <module> thunk = pickle.loads(zlib.decompress(base64.b64decode(args.encoded_thunk))) File “/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 1388, in loads return Unpickler(file).load() File “/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 864, in load dispatchkey File “/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 892, in load_proto raise ValueError, “unsupported pickle protocol: %d” % proto ValueError: unsupported pickle protocol: 4
================================================================================
There appears to have been an error in your experiment.
Check the traceback above to see what actually went wrong. The traceback below, included for completeness (but probably not useful for diagnosing the error), shows the stack leading up to the experiment launch.
================================================================================
Traceback (most recent call last): File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”, line 85, in _run_code exec(code, run_globals) File “/Users/haresh/Documents/spinningup/spinup/run.py”, line 230, in <module> parse_and_execute_grid_search(cmd, args) File “/Users/haresh/Documents/spinningup/spinup/run.py”, line 162, in parse_and_execute_grid_search eg.run(algo, **run_kwargs) File “/Users/haresh/Documents/spinningup/spinup/utils/run_utils.py”, line 546, in run data_dir=data_dir, datestamp=datestamp, **var) File “/Users/haresh/Documents/spinningup/spinup/utils/run_utils.py”, line 171, in call_experiment subprocess.check_call(cmd, env=os.environ) File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py”, line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command ‘[‘python’, ‘/Users/haresh/Documents/spinningup/spinup/utils/run_entrypoint.py’, ‘eJyNUs9P1EAUnm6XpYCgEaORE4mX5eAuIfG2cnCNlyYcUOPJTIbOdDt2OlM7MygmJCYILMnEC08v/rO+7iLgjU46fe97/d7v791fZzGZPeFJpozntcxKJQa3ZAhrNJdK0dzrzEmj4RL6BQn3acVKQW0p5iaEEV2lB14qJzV1R7VALCRjw8W7VjmFfeinZHbidH38hkfTTtlrtnmHE0UuUOPRU3JBzsl5lHd4zLs/EsQWRqS1vCQumsYnUUSm3RyRnyhx8pZAfy8kQh9SzSoBKSmW/gXpYJDlafSJTMlJhD/unULotlljKlthNHxvRWOHBWuELYavTeYroZ0d2lpqLfXE1zMRP95JZYeN13QmDeojrGukWHXA2S6kf8YEipUQT44qOIMth3WGFxnDnomvtWhk63YwUgYhuztwhdclrZW3N9i1r9BrK8k1OCjWQ1LVkuamKVu3xYOwfMOF9Pd4jXSSqD0Po16cxEguv7BmYiEsal/RrPYQFmYUOMcEi/UzaHNL42PU9+EY+mFxoswBpoBKsREez+sdzKtsgztj0FhsXIINCRc588pZ2AtdLjOHpNCrDPftlvzPve4Vrg8uk/WNoIdMeWHhI/QxMvZr5QNTpWh2+PPDHQhLLKNX6aPbe4XkXGhq5bc5Jd1MN4UNXSsExyGHVWUmE9HcUPph2XhXe0e5bCC8usN0OXNsKLV1OConrLstU7uNM8b5zdcqrNyygfdpFB5dFczUxOBK1KZ9IcTtfQkiJJ89U3PyszssA3i3P/gLgUhOrw==’]’ returned non-zero exit status 1.`
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top GitHub Comments
I am also getting same error. I am having both python 2.7 and python 3.6 installed on my ubuntu 18.04. I have disabled python 2.7 by typing “alias python=python3” in ~/.bashrc then aslo it is not working? Please can anyone solved this problem
The “Change python version system-wide” section in the link provided by @justindixon appears to be the right solution. @HareshMiriyala, @venkat-kittu, try it and report back?