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

Can't upgrade from 1.1.12 to 1.2.0a2 due toCould not find poetry-1.2.0a2-darwin.sha256sum file #5045

Closed
3 tasks done
motin opened this issue Jan 15, 2022 · 2 comments
Closed
3 tasks done
Labels
kind/bug Something isn't working as expected

Comments

@motin
Copy link

motin commented Jan 15, 2022

  • 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: MacOS Monterey 12.1 (Apple M1 Max)

  • Poetry version: 1.1.12

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

Issue

Can't upgrade to 1.2.0a2 due toCould not find poetry-1.2.0a2-darwin.sha256sum file.

Output from following upgrade instructions on https://python-poetry.org/blog/announcing-poetry-1.2.0a2/

$ poetry self update --preview -vvv
Updating to 1.2.0a2

  Stack trace:

  6  ~/.poetry/lib/poetry/_vendor/py3.9/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/lib/poetry/_vendor/py3.9/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():

  4  ~/.poetry/lib/poetry/_vendor/py3.9/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

  3  ~/.poetry/lib/poetry/_vendor/py3.9/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]

  2  ~/.poetry/lib/poetry/console/commands/self/update.py:197 in handle
      195│             return self.update_with_new_method(release.version)
      196│
    → 197│         self.update(release)
      198│
      199│     def update(self, release):

  1  ~/.poetry/lib/poetry/console/commands/self/update.py:212 in update
      210│
      211│         try:
    → 212│             self._update(version)
      213│         except Exception:
      214│             if not self.lib_backup.exists():

  RuntimeError

  Could not find poetry-1.2.0a2-darwin.sha256sum file

  at ~/.poetry/lib/poetry/console/commands/self/update.py:260 in _update
      256│         try:
      257│             r = urlopen(base_url + "/{}/{}".format(version, checksum))
      258│         except HTTPError as e:
      259│             if e.code == 404:
    → 260│                 raise RuntimeError("Could not find {} file".format(checksum))
      261│
      262│             raise
      263│
      264│         checksum = r.read().decode().strip()
@motin motin added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 15, 2022
@motin
Copy link
Author

motin commented Jan 15, 2022

Closing since there is a similar issue for linux with a solution already here: #5025 (comment)

Copy link

github-actions bot commented Mar 2, 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 2, 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

2 participants