Created
June 7, 2021 21:07
-
-
Save joshorr/9093c552515451f9e1037adff54a990a to your computer and use it in GitHub Desktop.
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
Updating dependencies | |
Resolving dependencies... | |
1: fact: poetry-demo is 0.1.0 | |
1: derived: poetry-demo | |
1: fact: poetry-demo depends on pendulum (^0) | |
1: fact: poetry-demo depends on pytest (^5.2) | |
1: fact: poetry-demo depends on pytest (^5.2) | |
1: selecting poetry-demo (0.1.0) | |
1: derived: pytest (>=5.2,<6.0) | |
1: derived: pendulum (>=0,<0.1) | |
PyPI: 15 packages found for pytest >=5.2,<6.0 | |
1: fact: pytest (5.4.3) depends on py (>=1.5.0) | |
1: fact: pytest (5.4.3) depends on packaging (*) | |
1: fact: pytest (5.4.3) depends on attrs (>=17.4.0) | |
1: fact: pytest (5.4.3) depends on more-itertools (>=4.0.0) | |
1: fact: pytest (5.4.3) depends on pluggy (>=0.12,<1.0) | |
1: fact: pytest (5.4.3) depends on wcwidth (*) | |
1: fact: pytest (5.4.3) depends on atomicwrites (>=1.0) | |
1: fact: pytest (5.4.3) depends on colorama (*) | |
1: selecting pytest (5.4.3) | |
1: derived: colorama | |
1: derived: atomicwrites (>=1.0) | |
1: derived: wcwidth | |
1: derived: pluggy (>=0.12,<1.0) | |
1: derived: more-itertools (>=4.0.0) | |
1: derived: attrs (>=17.4.0) | |
1: derived: packaging | |
1: derived: py (>=1.5.0) | |
PyPI: 0 packages found for pendulum >=0,<0.1 | |
1: fact: no versions of pendulum match >=0,<0.1 | |
1: conflict: no versions of pendulum match >=0,<0.1 | |
1: ! pendulum (>=0,<0.1) is satisfied by pendulum (>=0,<0.1) | |
1: ! which is caused by "poetry-demo depends on pendulum (^0)" | |
1: ! thus: version solving failed | |
1: Version solving took 0.037 seconds. | |
1: Tried 1 solutions. | |
Stack trace: | |
4 ~/src/caches/poetry/git/poetry/poetry/puzzle/solver.py:271 in _solve | |
269│ try: | |
270│ result = resolve_version( | |
→ 271│ self._package, self._provider, locked=locked, use_latest=use_latest | |
272│ ) | |
273│ | |
3 ~/src/caches/poetry/git/poetry/poetry/mixology/__init__.py:24 in resolve_version | |
22│ solver = VersionSolver(root, provider, locked=locked, use_latest=use_latest) | |
23│ | |
→ 24│ return solver.solve() | |
25│ | |
2 ~/src/caches/poetry/git/poetry/poetry/mixology/version_solver.py:81 in solve | |
79│ next = self._root.name | |
80│ while next is not None: | |
→ 81│ self._propagate(next) | |
82│ next = self._choose_package_version() | |
83│ | |
1 ~/src/caches/poetry/git/poetry/poetry/mixology/version_solver.py:121 in _propagate | |
119│ # where that incompatibility will allow us to derive new assignments | |
120│ # that avoid the conflict. | |
→ 121│ root_cause = self._resolve_conflict(incompatibility) | |
122│ | |
123│ # Back jumping erases all the assignments we did at the previous | |
SolveFailure | |
Because poetry-demo depends on pendulum (^0) which doesn't match any versions, version solving failed. | |
at ~/src/caches/poetry/git/poetry/poetry/mixology/version_solver.py:315 in _resolve_conflict | |
311│ ) | |
312│ self._log(f'{bang} which is caused by "{most_recent_satisfier.cause}"') | |
313│ self._log(f"{bang} thus: {incompatibility}") | |
314│ | |
→ 315│ raise SolveFailure(incompatibility) | |
316│ | |
317│ def _choose_package_version(self) -> Optional[str]: | |
318│ """ | |
319│ Tries to select a version of a required package. | |
The following error occurred when trying to handle this error: | |
Stack trace: | |
11 ~/src/caches/pypoetry/virtualenvs/poetry-IxB5H-MU-py3.7/lib/python3.7/site-packages/cleo/application.py:314 in run | |
312│ | |
313│ try: | |
→ 314│ exit_code = self._run(io) | |
315│ except Exception as e: | |
316│ if not self._catch_exceptions: | |
10 ~/src/caches/poetry/git/poetry/poetry/console/application.py:167 in _run | |
165│ self._load_plugins(io) | |
166│ | |
→ 167│ return super()._run(io) | |
168│ | |
169│ def _configure_io(self, io: IO) -> None: | |
9 ~/src/caches/pypoetry/virtualenvs/poetry-IxB5H-MU-py3.7/lib/python3.7/site-packages/cleo/application.py:409 in _run | |
407│ io.set_input(ArgvInput(argv)) | |
408│ | |
→ 409│ exit_code = self._run_command(command, io) | |
410│ self._running_command = None | |
411│ | |
8 ~/src/caches/pypoetry/virtualenvs/poetry-IxB5H-MU-py3.7/lib/python3.7/site-packages/cleo/application.py:451 in _run_command | |
449│ | |
450│ if error is not None: | |
→ 451│ raise error | |
452│ | |
453│ return event.exit_code | |
7 ~/src/caches/pypoetry/virtualenvs/poetry-IxB5H-MU-py3.7/lib/python3.7/site-packages/cleo/application.py:435 in _run_command | |
433│ | |
434│ if event.command_should_run(): | |
→ 435│ exit_code = command.run(io) | |
436│ else: | |
437│ exit_code = ConsoleCommandEvent.RETURN_CODE_DISABLED | |
6 ~/src/caches/pypoetry/virtualenvs/poetry-IxB5H-MU-py3.7/lib/python3.7/site-packages/cleo/commands/base_command.py:118 in run | |
116│ io.input.validate() | |
117│ | |
→ 118│ status_code = self.execute(io) | |
119│ | |
120│ if status_code is None: | |
5 ~/src/caches/pypoetry/virtualenvs/poetry-IxB5H-MU-py3.7/lib/python3.7/site-packages/cleo/commands/command.py:85 in execute | |
83│ | |
84│ try: | |
→ 85│ return self.handle() | |
86│ except KeyboardInterrupt: | |
87│ return 1 | |
4 ~/src/caches/poetry/git/poetry/poetry/console/commands/update.py:47 in handle | |
45│ self._installer.update(True) | |
46│ | |
→ 47│ return self._installer.run() | |
48│ | |
3 ~/src/caches/poetry/git/poetry/poetry/installation/installer.py:112 in run | |
110│ local_repo = Repository() | |
111│ | |
→ 112│ return self._do_install(local_repo) | |
113│ | |
114│ def dry_run(self, dry_run: bool = True) -> "Installer": | |
2 ~/src/caches/poetry/git/poetry/poetry/installation/installer.py:252 in _do_install | |
250│ ) | |
251│ | |
→ 252│ ops = solver.solve(use_latest=self._whitelist) | |
253│ else: | |
254│ self._io.write_line("Installing dependencies from lock file") | |
1 ~/src/caches/poetry/git/poetry/poetry/puzzle/solver.py:99 in solve | |
97│ with self._provider.progress(): | |
98│ start = time.time() | |
→ 99│ packages, depths = self._solve(use_latest=use_latest) | |
100│ end = time.time() | |
101│ | |
SolverProblemError | |
Because poetry-demo depends on pendulum (^0) which doesn't match any versions, version solving failed. | |
at ~/src/caches/poetry/git/poetry/poetry/puzzle/solver.py:278 in _solve | |
274│ packages = result.packages | |
275│ except OverrideNeeded as e: | |
276│ return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest) | |
277│ except SolveFailure as e: | |
→ 278│ raise SolverProblemError(e) | |
279│ | |
280│ results = dict( | |
281│ depth_first_search( | |
282│ PackageNode(self._package, packages), aggregate_package_nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment