poetry: Package zipp (3.1.0) not found.

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

I tried to install the my pyproject.toml, but it fails. The following error occurs.

[PackageNotFound]
Package zipp (3.1.0) not found.

I checked the zipp can be installed via pip by pip install zipp==3.1.0.

How can I install it?

The result in debug mode
Using virtualenv: /Users/hiroshi.matsui/Library/Caches/pypoetry/virtualenvs/smtools-Es-ovORe-py3.6
Updating dependencies
Resolving dependencies...
   1: fact: smtools is 0.1.0
   1: derived: smtools
   1: fact: smtools depends on joblib (^0.14.1)
   1: fact: smtools depends on tqdm (^4.41.1)
   1: fact: smtools depends on numpy (^1.18.1)
   1: fact: smtools depends on matplotlib (^3.1.2)
   1: fact: smtools depends on pandas (^0.25.3)
   1: fact: smtools depends on boto3 (^1.11.0)
   1: fact: smtools depends on sagemaker (^1.50.1)
   1: fact: smtools depends on slackweb (^1.0.5)
   1: fact: smtools depends on chainer (6.0.0)
   1: fact: smtools depends on pyyaml (^5.3)
   1: fact: smtools depends on colorama (^0.4.3)
   1: fact: smtools depends on pillow (^6.2.1)
   1: fact: smtools depends on mypy (^0.761)
   1: fact: smtools depends on flake8 (^3.7.9)
   1: fact: smtools depends on black (^19.10b0)
   1: fact: smtools depends on rope (^0.16.0)
   1: fact: smtools depends on mypy (^0.761)
   1: fact: smtools depends on flake8 (^3.7.9)
   1: fact: smtools depends on black (^19.10b0)
   1: fact: smtools depends on rope (^0.16.0)
   1: selecting smtools (0.1.0)
   1: derived: rope (^0.16.0)
   1: derived: black (^19.10b0)
   1: derived: flake8 (^3.7.9)
   1: derived: mypy (^0.761)
   1: derived: pillow (^6.2.1)
   1: derived: colorama (^0.4.3)
   1: derived: pyyaml (^5.3)
   1: derived: chainer (6.0.0)
   1: derived: slackweb (^1.0.5)
   1: derived: sagemaker (^1.50.1)
   1: derived: boto3 (^1.11.0)
   1: derived: pandas (^0.25.3)
   1: derived: matplotlib (^3.1.2)
   1: derived: numpy (^1.18.1)
   1: derived: tqdm (^4.41.1)
   1: derived: joblib (^0.14.1)
   1: selecting rope (0.16.0)
   1: fact: black (19.10b0) depends on click (>=6.5)
   1: fact: black (19.10b0) depends on attrs (>=18.1.0)
   1: fact: black (19.10b0) depends on appdirs (*)
   1: fact: black (19.10b0) depends on toml (>=0.9.4)
   1: fact: black (19.10b0) depends on typed-ast (>=1.4.0)
   1: fact: black (19.10b0) depends on regex (*)
   1: fact: black (19.10b0) depends on pathspec (>=0.6,<1)
   1: selecting black (19.10b0)
   1: derived: pathspec (>=0.6,<1)
   1: derived: regex (*)
   1: derived: typed-ast (>=1.4.0)
   1: derived: toml (>=0.9.4)
   1: derived: appdirs (*)
   1: derived: attrs (>=18.1.0)
   1: derived: click (>=6.5)
   1: fact: flake8 (3.7.9) depends on entrypoints (>=0.3.0,<0.4.0)
   1: fact: flake8 (3.7.9) depends on pyflakes (>=2.1.0,<2.2.0)
   1: fact: flake8 (3.7.9) depends on pycodestyle (>=2.5.0,<2.6.0)
   1: fact: flake8 (3.7.9) depends on mccabe (>=0.6.0,<0.7.0)
   1: selecting flake8 (3.7.9)
   1: derived: mccabe (>=0.6.0,<0.7.0)
   1: derived: pycodestyle (>=2.5.0,<2.6.0)
   1: derived: pyflakes (>=2.1.0,<2.2.0)
   1: derived: entrypoints (>=0.3.0,<0.4.0)
   1: fact: mypy (0.761) depends on typed-ast (>=1.4.0,<1.5.0)
   1: fact: mypy (0.761) depends on typing-extensions (>=3.7.4)
   1: fact: mypy (0.761) depends on mypy-extensions (>=0.4.3,<0.5.0)
   1: selecting mypy (0.761)
   1: derived: mypy-extensions (>=0.4.3,<0.5.0)
   1: derived: typing-extensions (>=3.7.4)
   1: derived: typed-ast (>=1.4.0,<1.5.0)
   1: selecting colorama (0.4.3)
   1: fact: chainer (6.0.0) depends on typing (*)
   1: fact: chainer (6.0.0) depends on typing_extensions (*)
   1: fact: chainer (6.0.0) depends on filelock (*)
   1: fact: chainer (6.0.0) depends on numpy (>=1.9.0)
   1: fact: chainer (6.0.0) depends on protobuf (>=3.0.0,<3.8.0rc1)
   1: fact: chainer (6.0.0) depends on six (>=1.9.0)
   1: selecting chainer (6.0.0)
   1: derived: six (>=1.9.0)
   1: derived: protobuf (>=3.0.0,<3.8.0rc1)
   1: derived: filelock (*)
   1: derived: typing (*)
   1: selecting slackweb (1.0.5)
   1: fact: pandas (0.25.3) depends on python-dateutil (>=2.6.1)
   1: fact: pandas (0.25.3) depends on pytz (>=2017.2)
   1: fact: pandas (0.25.3) depends on numpy (>=1.13.3)
   1: selecting pandas (0.25.3)
   1: derived: pytz (>=2017.2)
   1: derived: python-dateutil (>=2.6.1)
   1: selecting joblib (0.14.1)
   1: selecting pycodestyle (2.5.0)
   1: selecting entrypoints (0.3)
   1: selecting mypy-extensions (0.4.3)
   1: selecting pillow (6.2.2)
   1: selecting pyyaml (5.3.1)
   1: selecting numpy (1.18.2)
   1: selecting pathspec (0.7.0)
   1: selecting typed-ast (1.4.1)
   1: selecting mccabe (0.6.1)
   1: selecting pyflakes (2.1.1)
   1: selecting typing-extensions (3.7.4.1)
   1: selecting toml (0.10.0)
   1: fact: matplotlib (3.2.1) depends on cycler (>=0.10)
   1: fact: matplotlib (3.2.1) depends on kiwisolver (>=1.0.1)
   1: fact: matplotlib (3.2.1) depends on numpy (>=1.11)
   1: fact: matplotlib (3.2.1) depends on pyparsing (>=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6)
   1: fact: matplotlib (3.2.1) depends on python-dateutil (>=2.1)
   1: selecting matplotlib (3.2.1)
   1: derived: pyparsing (>=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6)
   1: derived: kiwisolver (>=1.0.1)
   1: derived: cycler (>=0.10)
   1: fact: cycler (0.10.0) depends on six (*)
   1: selecting cycler (0.10.0)
   1: selecting kiwisolver (1.1.0)
   1: selecting tqdm (4.43.0)
   1: selecting attrs (19.3.0)
   1: selecting click (7.1.1)
   1: selecting six (1.14.0)
   1: selecting appdirs (1.4.3)
   1: fact: python-dateutil (2.8.1) depends on six (>=1.5)
   1: selecting python-dateutil (2.8.1)
   1: selecting typing (3.7.4.1)
   1: selecting pytz (2019.3)
   1: fact: protobuf (3.7.1) depends on six (>=1.9)
   1: selecting protobuf (3.7.1)
   1: selecting pyparsing (2.4.6)
   1: selecting filelock (3.0.12)
   1: fact: sagemaker (1.52.0.post0) depends on boto3 (>=1.10.44)
   1: fact: sagemaker (1.52.0.post0) depends on numpy (>=1.9.0)
   1: fact: sagemaker (1.52.0.post0) depends on protobuf (>=3.1)
   1: fact: sagemaker (1.52.0.post0) depends on scipy (>=0.19.0)
   1: fact: sagemaker (1.52.0.post0) depends on protobuf3-to-dict (>=0.1.5)
   1: fact: sagemaker (1.52.0.post0) depends on smdebug-rulesconfig (0.1.2)
   1: fact: sagemaker (1.52.0.post0) depends on importlib-metadata (>=1.4.0)
   1: fact: sagemaker (1.52.0.post0) depends on packaging (>=20.0)
   1: selecting sagemaker (1.52.0.post0)
   1: derived: packaging (>=20.0)
   1: derived: importlib-metadata (>=1.4.0)
   1: derived: smdebug-rulesconfig (0.1.2)
   1: derived: protobuf3-to-dict (>=0.1.5)
   1: derived: scipy (>=0.19.0)
   1: selecting smdebug-rulesconfig (0.1.2)
   1: fact: protobuf3-to-dict (0.1.5) depends on protobuf (>=2.3.0)
   1: fact: protobuf3-to-dict (0.1.5) depends on six (*)
   1: selecting protobuf3-to-dict (0.1.5)
   1: fact: packaging (20.3) depends on pyparsing (>=2.0.2)
   1: fact: packaging (20.3) depends on six (*)
   1: selecting packaging (20.3)
   1: fact: importlib-metadata (1.5.2) depends on zipp (>=0.5)
   1: selecting importlib-metadata (1.5.2)
   1: derived: zipp (>=0.5)
   1: fact: scipy (1.4.1) depends on numpy (>=1.13.3)
   1: selecting scipy (1.4.1)
   1: Version solving took 0.905 seconds.
   1: Tried 1 solutions.

[PackageNotFound]
Package zipp (3.1.0) not found.

Traceback (most recent call last):
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/clikit/console_application.py", line 131, in run
    status_code = command.handle(parsed_args, io)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/clikit/api/command/command.py", line 120, in handle
    status_code = self._do_handle(args, io)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/clikit/api/command/command.py", line 171, in _do_handle
    return getattr(handler, handler_method)(args, io, self)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cleo/commands/command.py", line 92, in wrap_handle
    return self.handle()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/console/commands/install.py", line 63, in handle
    return_code = installer.run()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/installation/installer.py", line 74, in run
    self._do_install(local_repo)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/installation/installer.py", line 161, in _do_install
    ops = solver.solve(use_latest=self._whitelist)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/puzzle/solver.py", line 36, in solve
    packages, depths = self._solve(use_latest=use_latest)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/puzzle/solver.py", line 181, in _solve
    self._package, self._provider, locked=locked, use_latest=use_latest
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/mixology/__init__.py", line 7, in resolve_version
    return solver.solve()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/mixology/version_solver.py", line 80, in solve
    next = self._choose_package_version()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/mixology/version_solver.py", line 378, in _choose_package_version
    version = self._provider.complete_package(version)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/puzzle/provider.py", line 550, in complete_package
    repository=package.dependency.source_name,
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/repositories/pool.py", line 124, in package
    raise PackageNotFound('Package {} ({}) not found.'.format(name, version))

I also tried to remove the library sagemaker depending on (importlib-metadata >) zipp from pyproject.toml, but it fails. The following error occurs. ( Package jmespath (0.9.5) not found. )

The error when removing sagemaker
Using virtualenv: /Users/hiroshi.matsui/Library/Caches/pypoetry/virtualenvs/smtools-Es-ovORe-py3.6
Updating dependencies
Resolving dependencies...
   1: fact: smtools is 0.1.0
   1: derived: smtools
   1: fact: smtools depends on joblib (^0.14.1)
   1: fact: smtools depends on tqdm (^4.41.1)
   1: fact: smtools depends on numpy (^1.18.1)
   1: fact: smtools depends on matplotlib (^3.1.2)
   1: fact: smtools depends on pandas (^0.25.3)
   1: fact: smtools depends on boto3 (^1.11.0)
   1: fact: smtools depends on slackweb (^1.0.5)
   1: fact: smtools depends on chainer (6.0.0)
   1: fact: smtools depends on pyyaml (^5.3)
   1: fact: smtools depends on colorama (^0.4.3)
   1: fact: smtools depends on pillow (^6.2.1)
   1: fact: smtools depends on mypy (^0.761)
   1: fact: smtools depends on flake8 (^3.7.9)
   1: fact: smtools depends on black (^19.10b0)
   1: fact: smtools depends on rope (^0.16.0)
   1: fact: smtools depends on mypy (^0.761)
   1: fact: smtools depends on flake8 (^3.7.9)
   1: fact: smtools depends on black (^19.10b0)
   1: fact: smtools depends on rope (^0.16.0)
   1: selecting smtools (0.1.0)
   1: derived: rope (^0.16.0)
   1: derived: black (^19.10b0)
   1: derived: flake8 (^3.7.9)
   1: derived: mypy (^0.761)
   1: derived: pillow (^6.2.1)
   1: derived: colorama (^0.4.3)
   1: derived: pyyaml (^5.3)
   1: derived: chainer (6.0.0)
   1: derived: slackweb (^1.0.5)
   1: derived: boto3 (^1.11.0)
   1: derived: pandas (^0.25.3)
   1: derived: matplotlib (^3.1.2)
   1: derived: numpy (^1.18.1)
   1: derived: tqdm (^4.41.1)
   1: derived: joblib (^0.14.1)
PyPI: No release information found for rope-0.2, skipping
PyPI: No release information found for rope-0.2RC, skipping
PyPI: No release information found for rope-0.2pre2, skipping
PyPI: No release information found for rope-0.2pre3, skipping
PyPI: No release information found for rope-0.2pre4, skipping
PyPI: No release information found for rope-0.3, skipping
PyPI: No release information found for rope-0.3m1, skipping
PyPI: No release information found for rope-0.3m2, skipping
PyPI: No release information found for rope-0.3m3, skipping
PyPI: No release information found for rope-0.3m4, skipping
PyPI: No release information found for rope-0.3m5, skipping
PyPI: No release information found for rope-0.3rc1, skipping
PyPI: No release information found for rope-0.4, skipping
PyPI: No release information found for rope-0.4m1, skipping
PyPI: No release information found for rope-0.4m2, skipping
PyPI: No release information found for rope-0.4m3, skipping
PyPI: No release information found for rope-0.4m4, skipping
PyPI: No release information found for rope-0.4m5, skipping
PyPI: No release information found for rope-0.4rc1, skipping
PyPI: No release information found for rope-0.5, skipping
PyPI: No release information found for rope-0.5m1, skipping
PyPI: No release information found for rope-0.5m2, skipping
PyPI: No release information found for rope-0.5m3, skipping
PyPI: No release information found for rope-0.5m4, skipping
PyPI: No release information found for rope-0.5m5, skipping
PyPI: No release information found for rope-0.5rc1, skipping
PyPI: No release information found for rope-0.6, skipping
PyPI: No release information found for rope-0.6.1, skipping
PyPI: No release information found for rope-0.6.2, skipping
PyPI: No release information found for rope-0.6m1, skipping
PyPI: No release information found for rope-0.6m2, skipping
PyPI: No release information found for rope-0.6m3, skipping
PyPI: No release information found for rope-0.6m4, skipping
PyPI: No release information found for rope-0.6m5, skipping
PyPI: No release information found for rope-0.6m6, skipping
PyPI: No release information found for rope-0.7, skipping
PyPI: No release information found for rope-0.7.1, skipping
PyPI: No release information found for rope-0.7.2, skipping
PyPI: No release information found for rope-0.7.3, skipping
PyPI: No release information found for rope-0.7.4, skipping
PyPI: No release information found for rope-0.7.5, skipping
PyPI: No release information found for rope-0.7.6, skipping
PyPI: No release information found for rope-0.7.7, skipping
PyPI: No release information found for rope-0.7.8, skipping
PyPI: No release information found for rope-0.7.9, skipping
PyPI: No release information found for rope-0.8, skipping
PyPI: No release information found for rope-0.8.1, skipping
PyPI: No release information found for rope-0.8.2, skipping
PyPI: No release information found for rope-0.8.3, skipping
PyPI: No release information found for rope-0.8.4, skipping
PyPI: No release information found for rope-0.9, skipping
PyPI: No release information found for rope-0.9.1, skipping
PyPI: 1 packages found for rope >=0.16.0,<0.17.0
PyPI: 1 packages found for black >=19.10b0,<20.0
PyPI: 1 packages found for flake8 >=3.7.9,<4.0.0
PyPI: No release information found for mypy-0.500, skipping
PyPI: 1 packages found for mypy >=0.761,<0.762
PyPI: 2 packages found for pillow >=6.2.1,<7.0.0
PyPI: 1 packages found for colorama >=0.4.3,<0.5.0
PyPI: No release information found for pyyaml-3.01, skipping
PyPI: No release information found for pyyaml-3.02, skipping
PyPI: No release information found for pyyaml-3.03, skipping
PyPI: No release information found for pyyaml-3.04, skipping
PyPI: No release information found for pyyaml-3.05, skipping
PyPI: No release information found for pyyaml-3.06, skipping
PyPI: No release information found for pyyaml-3.07, skipping
PyPI: No release information found for pyyaml-3.08, skipping
PyPI: No release information found for pyyaml-3.09, skipping
PyPI: 2 packages found for pyyaml >=5.3,<6.0
PyPI: 1 packages found for chainer 6.0.0
PyPI: 1 packages found for slackweb >=1.0.5,<2.0.0
PyPI: No release information found for boto3-0.0.15, skipping
PyPI: 48 packages found for boto3 >=1.11.0,<2.0.0
PyPI: 1 packages found for pandas >=0.25.3,<0.26.0
PyPI: No release information found for matplotlib-0.63.0, skipping
PyPI: No release information found for matplotlib-0.64, skipping
PyPI: No release information found for matplotlib-0.65, skipping
PyPI: No release information found for matplotlib-0.70, skipping
PyPI: No release information found for matplotlib-0.71, skipping
PyPI: No release information found for matplotlib-0.83.2, skipping
PyPI: No release information found for matplotlib-0.85, skipping
PyPI: No release information found for matplotlib-0.87.1, skipping
PyPI: No release information found for matplotlib-0.87.2, skipping
PyPI: No release information found for matplotlib-0.87.3, skipping
PyPI: No release information found for matplotlib-0.87.4, skipping
PyPI: No release information found for matplotlib-0.87.5, skipping
PyPI: No release information found for matplotlib-0.87.6, skipping
PyPI: No release information found for matplotlib-0.87.7, skipping
PyPI: No release information found for matplotlib-0.90.0, skipping
PyPI: No release information found for matplotlib-0.90.1, skipping
PyPI: No release information found for matplotlib-0.91.2, skipping
PyPI: No release information found for matplotlib-0.91.3, skipping
PyPI: No release information found for matplotlib-0.91.4, skipping
PyPI: No release information found for matplotlib-0.98.0, skipping
PyPI: No release information found for matplotlib-0.98.1, skipping
PyPI: No release information found for matplotlib-0.98.3, skipping
PyPI: No release information found for matplotlib-0.98.5.1, skipping
PyPI: No release information found for matplotlib-0.98.5.3, skipping
PyPI: No release information found for matplotlib-0.99.0, skipping
PyPI: No release information found for matplotlib-0.99.1, skipping
PyPI: No release information found for matplotlib-0.99.3, skipping
PyPI: No release information found for matplotlib-1.0.0, skipping
PyPI: 4 packages found for matplotlib >=3.1.2,<4.0.0
PyPI: No release information found for numpy-0.9.6, skipping
PyPI: No release information found for numpy-0.9.8, skipping
PyPI: No release information found for numpy-1.0.3, skipping
PyPI: No release information found for numpy-1.0.4, skipping
PyPI: No release information found for numpy-1.0b1, skipping
PyPI: No release information found for numpy-1.0b4, skipping
PyPI: No release information found for numpy-1.0b5, skipping
PyPI: No release information found for numpy-1.0rc1, skipping
PyPI: No release information found for numpy-1.0rc2, skipping
PyPI: No release information found for numpy-1.0rc3, skipping
PyPI: No release information found for numpy-1.1.1, skipping
PyPI: No release information found for numpy-1.2.0, skipping
PyPI: No release information found for numpy-1.2.1, skipping
PyPI: No release information found for numpy-1.4.0, skipping
PyPI: 2 packages found for numpy >=1.18.1,<2.0.0
PyPI: No release information found for tqdm-2.0.0.dev0, skipping
PyPI: 4 packages found for tqdm >=4.41.1,<5.0.0
PyPI: No release information found for joblib-0.1a, skipping
PyPI: No release information found for joblib-0.3.2d, skipping
PyPI: No release information found for joblib-0.3.2f, skipping
PyPI: 1 packages found for joblib >=0.14.1,<0.15.0
   1: selecting rope (0.16.0)
   1: fact: black (19.10b0) depends on click (>=6.5)
   1: fact: black (19.10b0) depends on attrs (>=18.1.0)
   1: fact: black (19.10b0) depends on appdirs (*)
   1: fact: black (19.10b0) depends on toml (>=0.9.4)
   1: fact: black (19.10b0) depends on typed-ast (>=1.4.0)
   1: fact: black (19.10b0) depends on regex (*)
   1: fact: black (19.10b0) depends on pathspec (>=0.6,<1)
   1: selecting black (19.10b0)
   1: derived: pathspec (>=0.6,<1)
   1: derived: regex (*)
   1: derived: typed-ast (>=1.4.0)
   1: derived: toml (>=0.9.4)
   1: derived: appdirs (*)
   1: derived: attrs (>=18.1.0)
   1: derived: click (>=6.5)
PyPI: 2 packages found for pathspec >=0.6,<1
PyPI: 277 packages found for regex *
PyPI: 2 packages found for typed-ast >=1.4.0
PyPI: 3 packages found for toml >=0.9.4
PyPI: 7 packages found for appdirs *
PyPI: 5 packages found for attrs >=18.1.0
PyPI: 6 packages found for click >=6.5
   1: fact: flake8 (3.7.9) depends on entrypoints (>=0.3.0,<0.4.0)
   1: fact: flake8 (3.7.9) depends on pyflakes (>=2.1.0,<2.2.0)
   1: fact: flake8 (3.7.9) depends on pycodestyle (>=2.5.0,<2.6.0)
   1: fact: flake8 (3.7.9) depends on mccabe (>=0.6.0,<0.7.0)
   1: selecting flake8 (3.7.9)
   1: derived: mccabe (>=0.6.0,<0.7.0)
   1: derived: pycodestyle (>=2.5.0,<2.6.0)
   1: derived: pyflakes (>=2.1.0,<2.2.0)
   1: derived: entrypoints (>=0.3.0,<0.4.0)
PyPI: No release information found for mccabe-0.0.0, skipping
PyPI: 2 packages found for mccabe >=0.6.0,<0.7.0
PyPI: No release information found for pycodestyle-0.0.0, skipping
PyPI: 1 packages found for pycodestyle >=2.5.0,<2.6.0
PyPI: No release information found for pyflakes-0.2.0, skipping
PyPI: No release information found for pyflakes-0.2.1, skipping
PyPI: 2 packages found for pyflakes >=2.1.0,<2.2.0
PyPI: 1 packages found for entrypoints >=0.3.0,<0.4.0
   1: fact: mypy (0.761) depends on typed-ast (>=1.4.0,<1.5.0)
   1: fact: mypy (0.761) depends on typing-extensions (>=3.7.4)
   1: fact: mypy (0.761) depends on mypy-extensions (>=0.4.3,<0.5.0)
   1: selecting mypy (0.761)
   1: derived: mypy-extensions (>=0.4.3,<0.5.0)
   1: derived: typing-extensions (>=3.7.4)
   1: derived: typed-ast (>=1.4.0,<1.5.0)
PyPI: 1 packages found for mypy-extensions >=0.4.3,<0.5.0
PyPI: 2 packages found for typing-extensions >=3.7.4
   1: selecting colorama (0.4.3)
   1: fact: chainer (6.0.0) depends on typing (*)
   1: fact: chainer (6.0.0) depends on typing_extensions (*)
   1: fact: chainer (6.0.0) depends on filelock (*)
   1: fact: chainer (6.0.0) depends on numpy (>=1.9.0)
   1: fact: chainer (6.0.0) depends on protobuf (>=3.0.0,<3.8.0rc1)
   1: fact: chainer (6.0.0) depends on six (>=1.9.0)
   1: selecting chainer (6.0.0)
   1: derived: six (>=1.9.0)
   1: derived: protobuf (>=3.0.0,<3.8.0rc1)
   1: derived: filelock (*)
   1: derived: typing (*)
PyPI: 6 packages found for six >=1.9.0
PyPI: 19 packages found for protobuf >=3.0.0,<3.8.0rc1
PyPI: 28 packages found for filelock *
PyPI: 11 packages found for typing *
   1: selecting slackweb (1.0.5)
   1: fact: pandas (0.25.3) depends on python-dateutil (>=2.6.1)
   1: fact: pandas (0.25.3) depends on pytz (>=2017.2)
   1: fact: pandas (0.25.3) depends on numpy (>=1.13.3)
   1: selecting pandas (0.25.3)
   1: derived: pytz (>=2017.2)
   1: derived: python-dateutil (>=2.6.1)
PyPI: 11 packages found for pytz >=2017.2
PyPI: No release information found for python-dateutil-0.1, skipping
PyPI: No release information found for python-dateutil-0.3, skipping
PyPI: No release information found for python-dateutil-0.4, skipping
PyPI: No release information found for python-dateutil-0.5, skipping
PyPI: No release information found for python-dateutil-1.0, skipping
PyPI: No release information found for python-dateutil-1.1, skipping
PyPI: No release information found for python-dateutil-1.2, skipping
PyPI: No release information found for python-dateutil-2.0, skipping
PyPI: 9 packages found for python-dateutil >=2.6.1
   1: selecting joblib (0.14.1)
   1: selecting pycodestyle (2.5.0)
   1: selecting entrypoints (0.3)
   1: selecting mypy-extensions (0.4.3)
   1: selecting pillow (6.2.2)
   1: selecting pyyaml (5.3.1)
   1: selecting numpy (1.18.2)
   1: selecting pathspec (0.7.0)
   1: selecting typed-ast (1.4.1)
   1: selecting mccabe (0.6.1)
   1: selecting pyflakes (2.1.1)
   1: selecting typing-extensions (3.7.4.1)
   1: selecting toml (0.10.0)
   1: fact: matplotlib (3.2.1) depends on cycler (>=0.10)
   1: fact: matplotlib (3.2.1) depends on kiwisolver (>=1.0.1)
   1: fact: matplotlib (3.2.1) depends on numpy (>=1.11)
   1: fact: matplotlib (3.2.1) depends on pyparsing (>=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6)
   1: fact: matplotlib (3.2.1) depends on python-dateutil (>=2.1)
   1: selecting matplotlib (3.2.1)
   1: derived: pyparsing (>=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6)
   1: derived: kiwisolver (>=1.0.1)
   1: derived: cycler (>=0.10)
PyPI: No release information found for pyparsing-1.1.2, skipping
PyPI: No release information found for pyparsing-1.2, skipping
PyPI: No release information found for pyparsing-1.3.3, skipping
PyPI: 27 packages found for pyparsing >=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6
PyPI: 2 packages found for kiwisolver >=1.0.1
PyPI: 1 packages found for cycler >=0.10
   1: fact: cycler (0.10.0) depends on six (*)
   1: selecting cycler (0.10.0)
   1: selecting kiwisolver (1.1.0)
   1: selecting tqdm (4.43.0)
   1: selecting attrs (19.3.0)
   1: selecting click (7.1.1)
   1: selecting six (1.14.0)
   1: selecting appdirs (1.4.3)
   1: fact: python-dateutil (2.8.1) depends on six (>=1.5)
   1: selecting python-dateutil (2.8.1)
   1: selecting typing (3.7.4.1)
   1: selecting pytz (2019.3)
   1: fact: protobuf (3.7.1) depends on six (>=1.9)
   1: selecting protobuf (3.7.1)
   1: selecting pyparsing (2.4.6)
   1: selecting filelock (3.0.12)
   1: fact: boto3 (1.12.29) depends on botocore (>=1.15.29,<1.16.0)
   1: fact: boto3 (1.12.29) depends on jmespath (>=0.7.1,<1.0.0)
   1: fact: boto3 (1.12.29) depends on s3transfer (>=0.3.0,<0.4.0)
   1: selecting boto3 (1.12.29)
   1: derived: s3transfer (>=0.3.0,<0.4.0)
   1: derived: jmespath (>=0.7.1,<1.0.0)
   1: derived: botocore (>=1.15.29,<1.16.0)
PyPI: 4 packages found for s3transfer >=0.3.0,<0.4.0
PyPI: 8 packages found for jmespath >=0.7.1,<1.0.0
PyPI: No release information found for botocore-1.4.45, skipping
PyPI: 1 packages found for botocore >=1.15.29,<1.16.0
   1: fact: botocore (1.15.29) depends on python-dateutil (>=2.1,<3.0.0)
   1: fact: botocore (1.15.29) depends on jmespath (>=0.7.1,<1.0.0)
   1: fact: botocore (1.15.29) depends on docutils (>=0.10,<0.16)
   1: fact: botocore (1.15.29) depends on urllib3 (>=1.20,<1.26)
   1: selecting botocore (1.15.29)
   1: derived: urllib3 (>=1.20,<1.26)
   1: derived: docutils (>=0.10,<0.16)
PyPI: No release information found for urllib3-0.3, skipping
PyPI: No release information found for urllib3-0.3.1, skipping
PyPI: No release information found for urllib3-0.4.0, skipping
PyPI: No release information found for urllib3-0.4.1, skipping
PyPI: 18 packages found for urllib3 >=1.20,<1.26
PyPI: 8 packages found for docutils >=0.10,<0.16
   1: fact: s3transfer (0.3.3) depends on botocore (>=1.12.36,<2.0a.0)
   1: selecting s3transfer (0.3.3)
PyPI: Getting info for jmespath (0.9.5) from PyPI
   1: Version solving took 1.244 seconds.
   1: Tried 1 solutions.

[PackageNotFound]
Package jmespath (0.9.5) not found.

Traceback (most recent call last):
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/clikit/console_application.py", line 131, in run
    status_code = command.handle(parsed_args, io)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/clikit/api/command/command.py", line 120, in handle
    status_code = self._do_handle(args, io)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/clikit/api/command/command.py", line 171, in _do_handle
    return getattr(handler, handler_method)(args, io, self)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cleo/commands/command.py", line 92, in wrap_handle
    return self.handle()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/console/commands/remove.py", line 74, in handle
    status = installer.run()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/installation/installer.py", line 74, in run
    self._do_install(local_repo)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/installation/installer.py", line 161, in _do_install
    ops = solver.solve(use_latest=self._whitelist)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/puzzle/solver.py", line 36, in solve
    packages, depths = self._solve(use_latest=use_latest)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/puzzle/solver.py", line 181, in _solve
    self._package, self._provider, locked=locked, use_latest=use_latest
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/mixology/__init__.py", line 7, in resolve_version
    return solver.solve()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/mixology/version_solver.py", line 80, in solve
    next = self._choose_package_version()
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/mixology/version_solver.py", line 378, in _choose_package_version
    version = self._provider.complete_package(version)
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/puzzle/provider.py", line 550, in complete_package
    repository=package.dependency.source_name,
  File "/Users/hiroshi.matsui/.pyenv/versions/3.6.5/lib/python3.6/site-packages/poetry/repositories/pool.py", line 124, in package
    raise PackageNotFound('Package {} ({}) not found.'.format(name, version))
</detials>

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 11
  • Comments: 21 (2 by maintainers)

Most upvoted comments

Shouldn’t poetry check if a mirror is down, give some specific error rather than “package not found?”

Same issue on Alpine linux, Poetry 1.0.5 with Python 3.8.2 Many packages not found, and the request to pypi.org/pypi return status code 503. pip install successfully, but pip search will follows: “get pip._vendor.requests.exceptions.HTTPError: 503 Server Error: Backend is unhealthy for url: https://pypi.org/pypi

It seems that it’s not the search issue that is affecting Poetry but rather the PyPI JSON API releases endpoints that are currently not working (For instance, while https://pypi.org/pypi/poetry/json works, https://pypi.org/pypi/poetry/1.0.5/json does not) which is why Poetry triggers the PackageNotFound error since the endpoint returns a 404 error.

It seems that it’s now fixed on PyPI’s end.

curl -I https://pypi.org/pypi returns 503 and sometimes 301, so I’d say this is a PyPI issue that affects poetry. Clearing the cache does not help; tested with poetry add pytd. However, it’s probably a good idea to do so once PyPI is up again.

I can confirm pypi is back. Maybe poetry can throw a more explicit error, when pypi endpoints are down?

This is really annoying, is there any workaround?

$ pip install --user devpi-server
$ devpi-init
$ devpi-server

# second terminal
$ PIP_INDEX_URL=http://127.0.0.1:3141/root/pypi/+simple poetry add asyncio

That’s simplified version of https://devpi.net/docs/devpi/devpi/stable/+d/quickstart-pypimirror.html

Yes, it is caused by a PyPI error but:

  1. The error is very confusing
  2. Using pip or pipenv to manage library still works, and we’re being stuck because we use Poetry.

I’m not familiar with the code base but why does Poetry need to use pip search?

This is what PyPI is at the moment. So poetry is not at fault here.

image

Package wemake-python-styleguide (0.14.0) not found. Package django-mptt (0.11.0) not found. Package django-debug-toolbar (2.2) not found. Package django-ckeditor (5.9.0) not found. Package billiard (3.6.3.0) not found. Package kombu (4.6.8) not found. … plus at least 20 more packages …

The latest versions shows up correctly on poetry show--outdated.

This is a serious bug, it’s blocking us from upgrading our project 😦