Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
beat.editor
beat.editor
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • beat
  • beat.editorbeat.editor
  • Issues
  • #271

Closed
Open
Opened Jun 23, 2020 by Flavio TARSETTI@flavio.tarsetti
  • Report abuse
  • New issue
Report abuse New issue

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.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: beat/beat.editor#271