2 bugs: Issues with commit and/or python update in conda environment
Summary and Steps to reproduce
Important note: these bugs have taken place after the "current blackout" and Idiap networking services restore
When trying to push to beat.editor some commits I now get two errors :
[INFO] Installing environment for https://github.com/ambv/black.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: Command: ('/home/neo/miniconda3/envs/beat_editor_v2/bin/python', '-mvirtualenv', '/home/neo/.cache/pre-commit/repos__f8_6t/py_env-python3.7', '-p', 'python3.7')
Return code: 3
Expected return code: 0
Output:
The path python3.7 (from --python=python3.7) does not exist
Errors: (none)
Check the log at /home/neo/.cache/pre-commit/pre-commit.log
(beateditor_v2) neo@matrix:~/softs/idiap/proAca.beat/beat_editor_v2/beat.editor$ cat /home/neo/.cache/pre-commit/pre-commit.log
An unexpected error has occurred: CalledProcessError: Command: ('/home/neo/miniconda3/envs/beat_editor_v2/bin/python', '-mvirtualenv', '/home/neo/.cache/pre-commit/repos__f8_6t/py_env-python3.7', '-p', 'python3.7')
Return code: 3
Expected return code: 0
Output:
The path python3.7 (from --python=python3.7) does not exist
Errors: (none)
Traceback (most recent call last):
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/error_handler.py", line 47, in error_handler
yield
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/main.py", line 261, in main
return run(runner, store, args)
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/commands/run.py", line 268, in run
repo.require_installed()
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/repository.py", line 195, in require_installed
_install_all(self._venvs(), self.repo_config['repo'], self.store)
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/repository.py", line 102, in _install_all
language.install_environment(prefix, version, deps)
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/languages/python.py", line 141, in install_environment
_make_venv(env_dir, python)
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/languages/python.py", line 153, in make_venv
cmd_output(*cmd, env=env, cwd='/')
File "/home/neo/miniconda3/envs/beat_editor_v2/lib/python3.6/site-packages/pre_commit/util.py", line 186, in cmd_output
returncode, cmd, retcode, output=(stdout, stderr),
pre_commit.util.CalledProcessError: Command: ('/home/neo/miniconda3/envs/beat_editor_v2/bin/python', '-mvirtualenv', '/home/neo/.cache/pre-commit/repos__f8_6t/py_env-python3.7', '-p', 'python3.7')
Return code: 3
Expected return code: 0
Output:
The path python3.7 (from --python=python3.7) does not exist
Errors: (none)
So I thought ok I maybe need to update python on my conda environment:
When I do a conda install python=3.7
I then get:
CondaHTTPError: HTTP 503 SERVICE UNAVAILABLE for url <https://www.idiap.ch/software/beat/conda/label/beta/linux-64/repodata.json>
Elapsed: 00:03.326174
A remote server error occurred when trying to retrieve this URL.
A 500-type error (e.g. 500, 501, 502, 503, etc.) indicates the server failed to
fulfill a valid request. The problem may be spurious, and will resolve itself if you
try your request again. If the problem persists, consider notifying the maintainer
of the remote server.