Skip to content

WinError 1224 writing shortcut #357

@zooba

Description

@zooba

Got this error doing an uninstall:

!! INTERNAL ERROR: OSError: [WinError 1224] Writing shortcut: The requested operation cannot be performed on a file with a user-mapped section open.
TRACEBACK:
Traceback (most recent call last):
  File "manage\__init__.py", line 51, in main
  File "manage\commands.py", line 925, in execute
  File "manage\uninstall_command.py", line 186, in execute
  File "manage\install_command.py", line 325, in update_all_shortcuts
  File "manage\install_command.py", line 253, in _create_start_shortcut
  File "manage\startutils.py", line 146, in create_one
  File "manage\startutils.py", line 32, in _make
  File "manage\startutils.py", line 73, in _make_directory
  File "manage\startutils.py", line 50, in _make
OSError: [WinError 1224] Writing shortcut: The requested operation cannot be performed on a file with a user-mapped section open.

It looks random, so we should probably just retry a few times instead of immediately failing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions