Skip to content
New issue

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

Cannot upgrade poetry on windows to 1.2.0b2 due to Could not find poetry-1.2.0b2-win32.sha256sum file #5855

Closed
2 of 3 tasks
adam-grant-hendry opened this issue Jun 15, 2022 · 5 comments
Labels
kind/bug Something isn't working as expected

Comments

@adam-grant-hendry
Copy link

  • 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: Windows 10

  • Poetry version: 1.1.13

  • Link of a Gist with the contents of your pyproject.toml file: N/A

Issue

I have installed poetry with the updated recomended installer, not get-poetry.py or install-poetry.py. When I attempt to upgrade to the preview version, I get the following error:

PS> poetry self update --preview -vvv
Updating to 1.2.0b2

  Stack trace:

  6  ~\.poetry\venv\lib\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

  5  ~\.poetry\venv\lib\site-packages\clikit\api\command\command.py:120 in handle
      118│     def handle(self, args, io):  # type: (Args, IO) -> int
      119try:
    → 120│             status_code = self._do_handle(args, io)
      121│         except KeyboardInterrupt:
      122if io.is_debug():

  4  ~\.poetry\venv\lib\site-packages\clikit\api\command\command.py:171 in _do_handle
      169│         handler_method = self._config.handler_method
      170│
    → 171return getattr(handler, handler_method)(args, io, self)
      172173│     def __repr__(self):  # type: () -> str

  3  ~\.poetry\venv\lib\site-packages\cleo\commands\command.py:92 in wrap_handle
       90│         self._command = command
       91│
    →  92return self.handle()
       9394│     def handle(self):  # type: () -> Optional[int]

  2  ~\.poetry\venv\lib\site-packages\poetry\console\commands\self\update.py:197 in handle
      195return self.update_with_new_method(release.version)
      196│ 
    → 197│         self.update(release)
      198199│     def update(self, release):

  1  ~\.poetry\venv\lib\site-packages\poetry\console\commands\self\update.py:212 in update
      210211try:
    → 212│             self._update(version)
      213│         except Exception:
      214if not self.lib_backup.exists():

  RuntimeError

  Could not find poetry-1.2.0b2-win32.sha256sum file

  at ~\.poetry\venv\lib\site-packages\poetry\console\commands\self\update.py:260 in _update
      256try:
      257│             r = urlopen(base_url + "/{}/{}".format(version, checksum))
      258│         except HTTPError as e:
      259if e.code == 404:
    → 260│                 raise RuntimeError("Could not find {} file".format(checksum))
      261262│             raise
      263264│         checksum = r.read().decode().strip()
@adam-grant-hendry adam-grant-hendry added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jun 15, 2022
@Secrus
Copy link
Member

Secrus commented Jun 15, 2022

Which version are you updating from? 1.1.13? If so, you need to uninstall old Poetry and install new one. It is not possible to upgrade 1.1.x -> 1.2.x with self update command.

@adam-grant-hendry
Copy link
Author

Solution is to use:

PS> (Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --preview

The documentation really needs some TLC. Things are persistently unclear.

@Secrus
Copy link
Member

Secrus commented Jun 15, 2022

The documentation really needs some TLC. Things are persistently unclear.

Could you please point out what exactly is unclear? It would really help us to know where to improve the docs.

@adam-grant-hendry
Copy link
Author

@Secrus Please see my comment here.

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 16, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants