You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing some packages with the --index-url option pointing at a private repository fails with this error:
Internal error with venv metadata inspection.
Unable to install ellipsix-pipxbugtest.
Check the name or spec for errors, and verify that it can be installed with pip.
I've managed to reproduce this with pipx 0.15.6.0 and current master (184799c), but 0.15.5.1 and earlier versions of pipx install the package with no problems.
I've tried to check if this is a problem in my package, but I haven't found anything to indicate so.
How to reproduce
Acquire a wheel or source distribution of https://github.com/diazona/pipx-bug-test-project. Either clone and build it yourself with python setup.py sdist bdist_wheel or pyproject-build -sw, or for convenience I've posted the files on my website: wheel or sdist
Create the following directory structure for a local PyPI mirror
Run python3 -m http.server from the <server root> directory
Run pipx install with --index-url pointing to the server.
I get the following output:
$ pipx install --verbose --index-url http://localhost:8000 ellipsix.pipxbugtestpipx >(setup:704): pipx version is 0.15.6.0.dev0pipx >(setup:705): Default python interpreter is '/home/diazona/tmp/pipx-bug-test-venv/bin/python3.8'pipx >(package_name_from_spec:299): Determined package name: ellipsix-pipxbugtestpipx >(package_name_from_spec:300): Package name determined in 0.0screating virtual environment...pipx >(run_subprocess:120): running /home/diazona/tmp/pipx-bug-test-venv/bin/python3.8 -m venv --without-pip /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtestpipx >(run_subprocess:120): running /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtest/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))pipx >(run_subprocess:120): running /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/shared/bin/python -c import sysconfig; print(sysconfig.get_path('purelib'))pipx >(run_subprocess:120): running /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtest/bin/python --versionpipx >(_parsed_package_to_package_or_url:128): cleaned package spec: ellipsix-pipxbugtestinstalling ellipsix-pipxbugtest...pipx >(run_subprocess:120): running /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtest/bin/python -m pip install --index-url http://localhost:8000 ellipsix-pipxbugtestpipx >(run_subprocess:120): running /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtest/bin/python -c <contents of venv_metadata_inspector.py> ellipsix-pipxbugtest /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtest/binpipx >(get_venv_metadata_for_package:314): Internal error with venv metadata inspection.pipx >(get_venv_metadata_for_package:315): venv_metadata_inspector.py Traceback:Traceback (most recent call last): File "<string>", line 159, in <module> File "<string>", line 120, in main File "<string>", line 37, in get_apps File "/home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/shared/lib/python3.8/site-packages/pkg_resources/__init__.py", line 480, in get_distribution dist = get_provider(dist) File "/home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/shared/lib/python3.8/site-packages/pkg_resources/__init__.py", line 356, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "/home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/shared/lib/python3.8/site-packages/pkg_resources/__init__.py", line 899, in require needed = self.resolve(parse_requirements(requirements)) File "/home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/shared/lib/python3.8/site-packages/pkg_resources/__init__.py", line 785, in resolve raise DistributionNotFound(req, requirers)pkg_resources.DistributionNotFound: The 'ellipsix-pipxbugtest' distribution was not found and is required by the applicationpipx >(_parsed_package_to_package_or_url:128): cleaned package spec: ellipsix-pipxbugtestpipx >(rmdir:25): removing directory /home/diazona/tmp/pipx-bug-test-venv/libexec/pipx/venvs/ellipsix-pipxbugtestUnable to install ellipsix-pipxbugtest.Check the name or spec for errors, and verify that it can be installed with pip.
Note that all the following commands work fine, assuming the file has been downloaded:
Describe the bug
Installing some packages with the
--index-url
option pointing at a private repository fails with this error:I've managed to reproduce this with pipx 0.15.6.0 and current master (184799c), but 0.15.5.1 and earlier versions of pipx install the package with no problems.
I've tried to check if this is a problem in my package, but I haven't found anything to indicate so.
How to reproduce
Acquire a wheel or source distribution of https://github.com/diazona/pipx-bug-test-project. Either clone and build it yourself with
python setup.py sdist bdist_wheel
orpyproject-build -sw
, or for convenience I've posted the files on my website: wheel or sdistCreate the following directory structure for a local PyPI mirror
Run
python3 -m http.server
from the<server root>
directoryRun
pipx install
with--index-url
pointing to the server.I get the following output:
Note that all the following commands work fine, assuming the file has been downloaded:
Installing the package with
pip
(whether from a downloaded file, a repository URL, using--index-url
, etc.) works fine as well.Expected behavior
It should install successfully:
The text was updated successfully, but these errors were encountered: