-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation issue #13
Comments
This is pretty weird---it looks like when the |
@HareshMiriyala what version of python (and python packages) are you using |
I am also getting same error. |
@venkat-kittu: Looks like the answer to your problem is given in this Stack Overflow question. The alias with bashrc is insufficient---the executable with base name @HareshMiriyala, do you have the same setup, where both Python versions are installed but you use an alias in the shell to get Python 3.6? |
Jachiam, yes, I do have both python2.7 and python3.6. I'm running OSX Mojave. |
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? |
@jachiam has the correct answer - tried it and it worked! |
Based on @saams4u, I'm going to consider this closed for now, but @venkat-kittu or @HareshMiriyala, if the solution doesn't work for you, let me know and I'll reopen this. |
Hi all, Running experiment: walker with kwargs: { Traceback (most recent call last): |
Okay, so this fixed it : Install anaconda 3.7 as it says here : https://spinningup.openai.com/en/latest/user/installation.html#id8 Then use |
@HareshMiriyala Glad you got it figured out! |
I am also getting this error. I checked my python version is 3.6.6. @HareshMiriyala @jachiam can you tell me how you fixed those? |
I 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]
ac_kwargs:hidden_sizes [ac-hid]
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
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
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.`
The text was updated successfully, but these errors were encountered: