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

poetry 1.2.0b2 fails to upgrade local packages #5961

Closed
3 tasks done
ruomad opened this issue Jul 6, 2022 · 2 comments
Closed
3 tasks done

poetry 1.2.0b2 fails to upgrade local packages #5961

ruomad opened this issue Jul 6, 2022 · 2 comments
Labels
kind/bug Something isn't working as expected

Comments

@ruomad
Copy link

ruomad commented Jul 6, 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: windows 10 2020H2 19042.1706
  • Poetry version: 1.2.0b2
  • Python version: 3.10.5

Issue

Trying to update or remove a local package fails with the error (see attached log) :

  Installing collected packages: savemail
    Attempting uninstall: savemail
      Found existing installation: savemail 1.0.2
  ERROR: Exception:
  Traceback (most recent call last):
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\cli\base_command.py", line 167, in exc_logging_wrapper
      status = run_func(*args)
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\cli\req_command.py", line 205, in wrapper
      return func(self, options, args)
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\commands\install.py", line 405, in run
      installed = install_given_reqs(
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\req\__init__.py", line 68, in install_given_reqs
      uninstalled_pathset = requirement.uninstall(auto_confirm=True)
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\req\req_install.py", line 637, in uninstall
      uninstalled_pathset = UninstallPathSet.from_dist(dist)
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\req\req_uninstall.py", line 522, in from_dist
      for path in uninstallation_paths(dist):
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\req\req_uninstall.py", line 41, in unique
      for item in fn(*args, **kw):
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\req\req_uninstall.py", line 81, in uninstallation_paths
      for entry in entries:
    File "C:\Users\USER\AppData\Local\Programs\Python\Poetry\venv\lib\site-packages\virtualenv\seed\wheels\embed\pip-22.0.4-py3-none-any.whl\pip\_internal\metadata\base.py", line 405, in 
      return (str(pathlib.Path(row[0])) for row in csv.reader(text.splitlines()))
  IndexError: list index out of range

pyproject.toml:

[tool.poetry]
name = "atest"
version = "0.1.0"
description = ""
authors = ["Bruno Damour "]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10,<3.11"
savemail = {path = "../savemail"}

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
@ruomad ruomad added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jul 6, 2022
@dimbleby
Copy link
Contributor

dimbleby commented Jul 6, 2022

duplicate #5799

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jul 31, 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

4 participants