Created
May 18, 2022 13:27
stack trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stack trace: | |
12 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/application.py:330 in run | |
328│ | |
329│ try: | |
→ 330│ exit_code = self._run(io) | |
331│ except Exception as e: | |
332│ if not self._catch_exceptions: | |
11 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/application.py:174 in _run | |
172│ self._load_plugins(io) | |
173│ | |
→ 174│ return super()._run(io) | |
175│ | |
176│ def _configure_io(self, io: IO) -> None: | |
10 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/application.py:425 in _run | |
423│ io.set_input(ArgvInput(argv)) | |
424│ | |
→ 425│ exit_code = self._run_command(command, io) | |
426│ self._running_command = None | |
427│ | |
9 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/application.py:467 in _run_command | |
465│ | |
466│ if error is not None: | |
→ 467│ raise error | |
468│ | |
469│ return event.exit_code | |
8 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/application.py:448 in _run_command | |
446│ | |
447│ try: | |
→ 448│ self._event_dispatcher.dispatch(event, COMMAND) | |
449│ | |
450│ if event.command_should_run(): | |
7 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/events/event_dispatcher.py:22 in dispatch | |
20│ | |
21│ if listeners: | |
→ 22│ self._do_dispatch(listeners, event_name, event) | |
23│ | |
24│ return event | |
6 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/events/event_dispatcher.py:89 in _do_dispatch | |
87│ break | |
88│ | |
→ 89│ listener(event, event_name, self) | |
90│ | |
91│ def _sort_listeners(self, event_name: str) -> None: | |
5 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/application.py:292 in configure_installer | |
290│ return | |
291│ | |
→ 292│ self._configure_installer(command, event.io) | |
293│ | |
294│ def _configure_installer(self, command: InstallerCommand, io: IO) -> None: | |
4 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/application.py:298 in _configure_installer | |
296│ | |
297│ poetry = command.poetry | |
→ 298│ installer = Installer( | |
299│ io, | |
300│ command.env, | |
3 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/installer.py:76 in __init__ | |
74│ self._installer = self._get_installer() | |
75│ if installed is None: | |
→ 76│ installed = self._get_installed() | |
77│ | |
78│ self._installed_repository = installed | |
2 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/installer.py:570 in _get_installed | |
568│ | |
569│ def _get_installed(self) -> InstalledRepository: | |
→ 570│ return InstalledRepository.load(self._env) | |
571│ | |
1 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/repositories/installed_repository.py:239 in load | |
237│ key=lambda d: str(d._path), | |
238│ ): | |
→ 239│ name = canonicalize_name(distribution.metadata["name"]) | |
240│ | |
241│ if name in seen: | |
TypeError | |
expected string or bytes-like object | |
at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/core/utils/helpers.py:31 in canonicalize_name | |
27│ return unicodedata.normalize("NFC", string) | |
28│ | |
29│ | |
30│ def canonicalize_name(name: str) -> str: | |
→ 31│ return _canonicalize_regex.sub("-", name).lower() | |
32│ | |
33│ | |
34│ def module_name(name: str) -> str: | |
35│ return canonicalize_name(name).replace(".", "_").replace("-", "_") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment