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
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.
Issue
poetry add iso-639 fails, complaining that it couldn't find a matching version. Even though the package iso-639 exists and is installable via pip.
Debug info
➜ poetry add iso-639 -vvv
Loading configuration file /home/diwank/.config/pypoetry/config.toml
Using virtualenv: /lab/.cache/pypoetry/virtualenvs/instructdial-DOY0V45x-py3.8
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
Creating new session for pypi.org
Skipping url (https://files.pythonhosted.org/packages/10/e9/7e5b1474ad1b35193edf802807b2440b9ea4d89e69b8fea7b6f6ac1ba293/iso-639-0.4.2.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/2c/db/43444e5f54ca043ce6f257b4023337c891b126fffc70a8ea287bd66e8e0f/iso-639-0.4.3.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/5a/29/f324bce91c03e1896b09e0630f6cfbaac31647c9631083e87ed0ff946f83/iso-639-0.4.4.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/5a/8d/27969852f4e664525c3d070e44b2b719bc195f4d18c311c52e57bb93614e/iso-639-0.4.5.tar.gz) due to invalid version (None)
Source (PyPI): 0 packages found for iso-639 *
Stack trace:
9 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/cleo/application.py:327 in run
325│
326│ try:
→ 327│ exit_code = self._run(io)
328│ except BrokenPipeError:
329│ # If we are piped to another process, it may close early and send a
8 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/poetry/console/application.py:190 in _run
188│ self._load_plugins(io)
189│
→ 190│ exit_code: int = super()._run(io)
191│ return exit_code
192│
7 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/cleo/application.py:431 in _run
429│ io.input.interactive(interactive)
430│
→ 431│ exit_code = self._run_command(command, io)
432│ self._running_command = None
433│
6 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/cleo/application.py:473 in _run_command
471│
472│ if error is not None:
→ 473│ raise error
474│
475│ return terminate_event.exit_code
5 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/cleo/application.py:457 in _run_command
455│
456│ ifcommand_event.command_should_run():
→ 457│ exit_code = command.run(io)
458│ else:
459│ exit_code = ConsoleCommandEvent.RETURN_CODE_DISABLED
4 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/cleo/commands/base_command.py:119 in run
117│ io.input.validate()
118│
→ 119│ status_code = self.execute(io)
120│
121│ if status_code is None:
3 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/cleo/commands/command.py:62 in execute
60│
61│ try:
→ 62│ returnself.handle()
63│ except KeyboardInterrupt:
64│ return 1
2 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/poetry/console/commands/add.py:158 in handle
156│ return 0
157│
→ 158│ requirements = self._determine_requirements(
159│ packages,
160│ allow_prereleases=self.option("allow-prereleases"),
1 ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/poetry/console/commands/init.py:373 in _determine_requirements
371│ elif"version" not in requirement:
372│ # determine the best version automatically
→ 373│ name, version = self._find_best_version_for_package(
374│ requirement["name"],
375│ allow_prereleases=allow_prereleases,
ValueError
Could not find a matching version of package iso-639
at ~/.asdf/installs/poetry/1.3.1/venv/lib/python3.8/site-packages/poetry/console/commands/init.py:414 in _find_best_version_for_package
410│ )
411│
412│ if not package:
413│ # TODO: find similar
→ 414│ raise ValueError(f"Could not find a matching version of package {name}")
415│
416│ return package.pretty_name, selector.find_recommended_require_version(package)
417│
418│ def _parse_requirements(self, requirements: list[str]) -> list[dict[str, Any]]:
The text was updated successfully, but these errors were encountered:
-vvv
option) and have included the output below.Issue
poetry add iso-639
fails, complaining that it couldn't find a matching version. Even though the package iso-639 exists and is installable viapip
.Debug info
The text was updated successfully, but these errors were encountered: