Skip to content

Collection of FileExistsError and/or PermissionError crashes during venv creation #1556

@carlosperate

Description

@carlosperate

Creating this issue to collect the cases where we encounter an error like this:

Traceback (most recent call last):
  File "C:\Users\idea\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\virtual_environment.py", line 462, in quarantine_failed_venv
    os.rename(self.path, error_dirpath)
PermissionError: [WinError 5] Access is denied: 'C:\\Users\\idea\\AppData\\Local\\python\\mu\\mu_venv-38-20210509-222823' -> 'C:\\Users\\idea\\AppData\\Local\\python\\mu\\mu_venv-38-20210509-222823.FAILED'

In many cases this seems to be a "secondary" error, where something else has failed beforehand, and then quen trying to rename the venv we get a different error.

For this reason is better to keep these individual issues open, as the first problem might be different. There is a chance that they all have similar problems manifesting in different ways, but as that is not clear yet let's look at them individually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions