Skip to content

[Bug]: Installer hard-fails on existing corrupt venv instead of auto-cleaning/rebuilding #78

Description

@NitishKashyapR

Is your feature request related to a problem? Please describe.
When the FreeToken Desktop installer fails or is interrupted during the initial dependency/wheel installation stage, subsequent attempts fail immediately with:
Caused by: Querying Python at AppData\Local\FreeToken\venv\Scripts\python.exe failed with exit status exit code: 1
Currently, the user must manually navigate to %localappdata% and delete the FreeToken folder before retrying.

Describe the solution you'd like
The installer's bootstrap script (uv runner) should perform an integrity check on the existing virtual environment. If the interpreter check fails, it should automatically wipe the corrupted venv directory and recreate a clean environment rather than exiting with an unhandled exception.

Describe alternatives you've considered
Manually deleting the venv folder via Windows File Explorer or terminal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions