`pip` timeouts can cause complete deletion of package directory contents on Windows

Open
#297 2 comments 1 reaction 1 assignee View on GitHub

@chennes is already working on this.

Since Jun 29, 2026.

Assessment

This issue has not been assessed yet.

Description

For background see https://github.com/FreeCAD/FreeCAD/issues/25810

The Addon Manager calls pip with a predefined timeout. This is problematic for several reasons:

  1. The main mechanism for doing the update does not update the UI with any kind of indication that it's still going, and the timeout is now very long.
  2. It's not cancellable by the user, even though the underlying call is, so it could be.
  3. On Windows, when the pip --upgrade call is terminated by a timeout, it deletes the contents of the target directory. So we need to make a backup before beginning. This would be a good idea anyway, so if the upgrade fails it can be dealt with.
Dominant language
Python
Stars
24
Forks
36
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FreeCAD/AddonManager

All issues in FreeCAD/AddonManager

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.