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.

[1.1.0b2] Bumping version leaves orphaned dist-info in site-packages

See original GitHub issue

Issue

When updating my packages version with poetry version old dist-info directories are left in site-packages. This trips up pip, importlib and pkg_resources for example when trying to find the packages information. To reproduce: (run with poetry config virtualenvs.in-project true)

  1. ❯ poetry new example
  2. ❯ poetry install
  3. ❯ ls .venv/lib/python3.8/site-packages/example*.dist-info
.venv/lib/python3.8/site-packages/example-0.1.0.dist-info:
INSTALLER  METADATA  RECORD
  1. ❯ poetry version minor && poetry install
  2. ❯ ls .venv/lib/python3.8/site-packages/example*.dist-info
.venv/lib/python3.8/site-packages/example-0.1.0.dist-info:
INSTALLER  METADATA  RECORD

.venv/lib/python3.8/site-packages/example-0.2.0.dist-info:
INSTALLER  METADATA  RECORD
  1. ❯ poetry run pip show example
Name: example
Version: 0.2.0
Summary: 
Home-page: None
Author: Jonas Bulik
Author-email: jonas@bulik.dev
License: None
Location: /tmp/example/.venv/lib/python3.8/site-packages
Requires: 
Required-by: 
  1. ❯ poetry version 0.1.0
  2. ❯ poetry run pip show example
Name: example
Version: 0.2.0
Summary: 
Home-page: None
Author: Jonas Bulik
Author-email: jonas@bulik.dev
License: None
Location: /tmp/example/.venv/lib/python3.8/site-packages
Requires: 
Required-by: 

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
abncommented, Apr 9, 2021

Oh, I misread the issue. Looks like there is a new issue in the lines not being updated during install. But this might not be related to the #3900 fix.

Also you will note that in 1.1.5 you will have seen;

The virtual environment found in /home/fredrik/code/repos/a/.venv seems to be broken.

This is because the new venv does not have pip in it (#2826).

1reaction
abncommented, Apr 9, 2021

That is expected. Because of #3876. There are followup fixes for that in #3891 and #3900.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Important notes 1.x — Borg - Deduplicating Archiver 2.0.0b4 ...
This was due to a broken validator that considered all (even valid) item metadata as invalid. As they were considered invalid, borg discarded...
Read more >
Changelog — Python 3.11.1 documentation
Paths are no longer encoded to UTF-8/strict to avoid encoding errors if it contains surrogate characters (bytes paths are decoded with the surrogateescape...
Read more >
Read the Docs Documentation
Read the Docs simplifies software documentation by building, versioning, and hosting of your docs, automatically.
Read more >
Changelog — PsychoPy v2022.2.4
Fixes: experiments using iohub were not running on MacOS standalone due to broken version of the gevent library. fixes to connection from Builder...
Read more >
Untitled
upgrade package to newer version at request of author. ... libmikmod is not already installed - gzip info page (Bug #9035) - Update...
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