question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation issue

See original GitHub issue

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]

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
venkat-kittucommented, Nov 10, 2018

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

1reaction
jachiamcommented, Nov 11, 2018

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Describes how to troubleshoot problems that occur when you install, uninstall, or upgrade a program on a Windows-based computer by using Windows Installer....
Read more >
Fix problems installing Chrome - Google Chrome Help
Fix problems installing Chrome. If you get an error message when you try to download and install Google Chrome, try these fixes.
Read more >
Possible Causes of an Installation Problem
A problem installing Directory Server Enterprise Edition could be caused by one of the following: Incorrect patches installed. Installing a patch that does...
Read more >
12 irritating Windows 10 installation issues, and how to fix them
Having trouble installing and setting up Windows 10? You aren't alone. Here are a dozen-plus of the most common problems, along with a...
Read more >
General installation problems - IBM
These problems and resolutions are related to general issues that might occur ... During a Microsoft Windows installation, if you receive a message...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found