Skip to content
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

Failed to install a module from svn if verbose mode is on #11050

Closed
devsagul opened this issue Apr 20, 2022 · 0 comments · Fixed by #11051
Closed

Failed to install a module from svn if verbose mode is on #11050

devsagul opened this issue Apr 20, 2022 · 0 comments · Fixed by #11051
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@devsagul
Copy link
Contributor

devsagul commented Apr 20, 2022

Description

Running pip3 install -v svn+ssh://this.url.does.not.exist fails because it tries to call svn checkout '' --force-interactive svn+ssh://this.url.does.not.exist <tmp-dir> which fails, due to argument '' not being a valid URL for checkout.

The bug was introduced in 22.0.0 while making it possible to propagate verbose mode to the underlying tools.

Expected behavior

pip3 install -v svn+ssh://this.url.does.not.exist should fail, because this.url.does.not.exist is not an existing URL for a svn repo, like in non-verbose mode:

Running command svn checkout --quiet --force-interactive svn+ssh://this.url.does.not.exist <tmp-dir>
  svn: E170013: Unable to connect to a repository at URL 'svn+ssh://this.url.does.not.exist'

pip version

22.0.4

Python version

3.10.2

OS

linux

How to Reproduce

  1. Run python3 -m pip install --upgrade pip==22.0.4
  2. Run python3 -m pip install -v svn+ssh://this.url.does.not.exist

Output

$ python3 -m pip install --upgrade pip==22.0.4
Requirement already satisfied: pip==22.0.4 in ./.venv/lib/python3.10/site-packages (22.0.4)
$ python3 -m pip install -v svn+ssh://this.url.does.not.exist
Using pip 22.0.4 from /home/devsagul/projects/oss/pip/.venv/lib/python3.10/site-packages/pip (python 3.10)
Collecting svn+ssh://this.url.does.not.exist
  Checking out svn+ssh://this.url.does.not.exist to /tmp/pip-req-build-6ehjzgc7
  Running command svn --version
  svn, version 1.14.1 (r1886195)
     compiled Dec  2 2021, 22:24:51 on x86_64-pc-linux-gnu

  Copyright (C) 2021 The Apache Software Foundation.
  This software consists of contributions made by many people;
  see the NOTICE file for more information.
  Subversion is open source software, see http://subversion.apache.org/

  The following repository access (RA) modules are available:

  * ra_svn : Module for accessing a repository using the svn network protocol.
    - with Cyrus SASL authentication
    - handles 'svn' scheme
  * ra_local : Module for accessing a repository on local disk.
    - handles 'file' scheme
  * ra_serf : Module for accessing a repository via WebDAV protocol using serf.
    - using serf 1.3.9 (compiled with 1.3.9)
    - handles 'http' scheme
    - handles 'https' scheme

  The following authentication credential caches are available:

  * Gnome Keyring
  * GPG-Agent
  * KWallet (KDE)

  Running command svn checkout '' --force-interactive svn+ssh://this.url.does.not.exist /tmp/pip-req-build-6ehjzgc7
  svn: E125002: '' does not appear to be a URL
  error: subprocess-exited-with-error
  
  × svn checkout '' --force-interactive svn+ssh://this.url.does.not.exist /tmp/pip-req-build-6ehjzgc7 did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: svn checkout '' --force-interactive svn+ssh://this.url.does.not.exist /tmp/pip-req-build-6ehjzgc7
  cwd: [inherit]
error: subprocess-exited-with-error

× svn checkout '' --force-interactive svn+ssh://this.url.does.not.exist /tmp/pip-req-build-6ehjzgc7 did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


### Code of Conduct

- [X] I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant