question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poetry Never Updates pywin32

See original GitHub issue
  • [x ] 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, version 1909
  • Poetry version: 1.1.0
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

poetry update always attempts to update pywin32, but never does. Every new install lists pywin32 as requiring update

>>> poetry update
Updating dependencies
Resolving dependencies...

Package operations: 0 installs, 1 update, 0 removals

  • Updating pywin32 (228 C:/Code/project/.venv/Lib/site-packages/pythonwin -> 228)

The pyproject.toml file is as follows:

[tool.poetry]
name = "project"
version = "0.1.0"
description = "test"
license = "Apache-2.0"

[tool.poetry.dependencies]
python = "^3.8"
numpy = "^1.19.2"
matplotlib = "^3.3.2"
pywin32 = "^228"

[tool.poetry.dev-dependencies]
black = "^20.8b1"
flake8 = "^3.8.4"
pytest = "^6.1.1"
pylint = "^2.6.0"
jupyter = "^1.0.0"
notebook = "^6.1.4"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

I am running Python 3.8.6.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:24 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
abncommented, Oct 14, 2020

Dug into this a further. Found the root cause.

https://github.com/python-poetry/poetry/blob/20a3161b0e3f417f04b833c192dcb72076098a4b/poetry/repositories/installed_repository.py#L141-L148

We seem to be assuming that a package is a “path” package because the .pth file lists multiple paths but none of them are vcs pakcages. The else block should only set source_type = "directory" if at least one of the paths listed is outside the site package directories (ie. editable package).

0reactions
jaepil-choicommented, Jun 25, 2021

The issue still persists. I should not have updated poetry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Poetry was not installed with the recommended ...
The error message suggests you've probably installed poetry with pip, which does not support automatic poetry updates.
Read more >
Thank GOD for Poetry! : r/Python - Reddit
I've never had any problems with dependencies or with updates making breaking changes or things like that. I work with a lot of...
Read more >
Python for Windows Extensions - Browse /pywin32/Build 217 ...
Download Latest Version README.txt (951 Bytes) Get Updates ... To download pywin32: * Select the "Browse All Files" link, then navigate to the...
Read more >
Python for Excel: A Modern Environment for Automation and ...
you can install python and https://pypi.org/project/pywin32/ as a limited ... on PyPI and pipenv or poetry, to future versions of your book.
Read more >
[Solved][Python] requests.exceptions.TooManyRedirects
... module 'win32ctypes.pywin32.win32api' has no attribute 'error' ... This Website Is Temporarily Suspended From Regular Updates ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found