We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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).
-vvv
OS version and name: Debian 11
Poetry version: 1.1.8
Link of a Gist with the contents of your pyproject.toml file: no project.toml
I installed poetry with install-poetry.py in a fresh installed Debian that comes with Python 3.9.
install-poetry.py
I execute on 1.1.8 the command: poetry self update --preview
poetry self update --preview
If doesn't work, but if I python install-poetry.py --uninstall and python install-poetry.py --preview, it works.
python install-poetry.py --uninstall
python install-poetry.py --preview
-vvv option gives the following output:
Updating Poetry to 1.2.0a2 Updating dependencies Resolving dependencies... 1: fact: poetry-updater is 0.0.0 1: derived: poetry-updater 1: fact: poetry-updater depends on poetry (1.2.0a2) 1: selecting poetry-updater (0.0.0) 1: derived: poetry (==1.2.0a2) 1: fact: poetry (1.2.0a2) requires Python >=3.6,<4.0 1: conflict: poetry (1.2.0a2) requires Python >=3.6,<4.0 1: ! poetry (1.2.0a2) is satisfied by poetry (1.2.0a2) 1: ! which is caused by "poetry-updater depends on poetry (1.2.0a2)" 1: ! thus: version solving failed 1: Version solving took 0.007 seconds. 1: Tried 1 solutions. Stack trace: 10 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/clikit/console_application.py:131 in run 129│ parsed_args = resolved_command.args 130│ → 131│ status_code = command.handle(parsed_args, io) 132│ except KeyboardInterrupt: 133│ status_code = 1 9 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/clikit/api/command/command.py:120 in handle 118│ def handle(self, args, io): # type: (Args, IO) -> int 119│ try: → 120│ status_code = self._do_handle(args, io) 121│ except KeyboardInterrupt: 122│ if io.is_debug(): 8 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/clikit/api/command/command.py:171 in _do_handle 169│ handler_method = self._config.handler_method 170│ → 171│ return getattr(handler, handler_method)(args, io, self) 172│ 173│ def __repr__(self): # type: () -> str 7 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/cleo/commands/command.py:92 in wrap_handle 90│ self._command = command 91│ → 92│ return self.handle() 93│ 94│ def handle(self): # type: () -> Optional[int] 6 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/commands/self/update.py:195 in handle 193│ 194│ if new_update_method: → 195│ return self.update_with_new_method(release.version) 196│ 197│ self.update(release) 5 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/commands/self/update.py:239 in update_with_new_method 237│ self.line("") 238│ → 239│ self._update_with_new_method(version) 240│ self._make_bin() 241│ 4 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/console/commands/self/update.py:343 in _update_with_new_method 341│ ) 342│ installer.update(True) → 343│ installer.run() 344│ 345│ def _make_bin(self): 3 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/installer.py:103 in run 101│ local_repo = Repository() 102│ → 103│ return self._do_install(local_repo) 104│ 105│ def dry_run(self, dry_run=True): # type: (bool) -> Installer 2 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/installer.py:235 in _do_install 233│ ) 234│ → 235│ ops = solver.solve(use_latest=self._whitelist) 236│ else: 237│ self._io.write_line("Installing dependencies from lock file") 1 ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/puzzle/solver.py:65 in solve 63│ with self._provider.progress(): 64│ start = time.time() → 65│ packages, depths = self._solve(use_latest=use_latest) 66│ end = time.time() 67│ SolverProblemError The current project's Python requirement (2.7.18) is not compatible with some of the required packages Python requirement: - poetry requires Python >=3.6,<4.0, so it will not be satisfied for Python 2.7.18 Because poetry-updater depends on poetry (1.2.0a2) which requires Python >=3.6,<4.0, version solving failed. at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/puzzle/solver.py:241 in _solve 237│ packages = result.packages 238│ except OverrideNeeded as e: 239│ return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest) 240│ except SolveFailure as e: → 241│ raise SolverProblemError(e) 242│ 243│ results = dict( 244│ depth_first_search( 245│ PackageNode(self._package, packages), aggregate_package_nodes • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties For poetry, a possible solution would be to set the `python` property to "<empty>" https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies, https://python-poetry.org/docs/dependency-specification/#using-environment-markers
The text was updated successfully, but these errors were encountered:
Hello @staticdev,
you haven't come back to this issue for a long while. So I assume this is solved in the meantime and I can close this ticket.
Feel free to leave a comment if you disagree.
fin swimmer
Sorry, something went wrong.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
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).OS version and name: Debian 11
Poetry version: 1.1.8
Link of a Gist with the contents of your pyproject.toml file: no project.toml
Issue
I installed poetry with
install-poetry.py
in a fresh installed Debian that comes with Python 3.9.I execute on 1.1.8 the command:
poetry self update --preview
If doesn't work, but if I
python install-poetry.py --uninstall
andpython install-poetry.py --preview
, it works.-vvv option gives the following output:
The text was updated successfully, but these errors were encountered: