Skip to content

Plugin Manager fails to update enabled plugin on Windows due to permission error (when updating Sidekick) #8285

Description

@Marvisak

Version and Platform (required):

  • Binary Ninja Version: 5.3.9757-stable
  • Edition: Non-Commercial
  • OS: Windows 11
  • OS Version: 25H2
  • CPU Architecture: x64

Bug Description:
When updating Sidekick (or disabling and enabling without turning binary ninja off, any action that causes dependency update) on a Windows machine, the installation of Python packages fails with a generic error. After digging around I found out it's a permission error connected to markupsafe (might be another package) being used while it's binary is updated.

Steps To Reproduce:

  • Install Sidekick on Windows
  • Disable and re-enable it

Expected Behavior:
Sidekick should update without any issues

Additional Information:
Reproduced on 2 machines
Workarounds:

  • Disable the plugin, restart and update/re-enable
  • Turn Binary Ninja off and run the commands displayed in the log (with Binary Ninja turned on the permission error is displayed)

Example traceback:

ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\jenkins\bundled-python\310\python-3.10.10-packaged-amd64\python310\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper
  File "C:\Users\jenkins\bundled-python\310\python-3.10.10-packaged-amd64\python310\pip\_internal\cli\req_command.py", line 247, in wrapper
  File "C:\Users\jenkins\bundled-python\310\python-3.10.10-packaged-amd64\python310\pip\_internal\commands\install.py", line 566, in run
  File "C:\Users\jenkins\bundled-python\310\python-3.10.10-packaged-amd64\python310\pip\_internal\commands\install.py", line 621, in _handle_target_dir
  File "shutil.py", line 750, in rmtree
  File "shutil.py", line 620, in _rmtree_unsafe
  File "shutil.py", line 618, in _rmtree_unsafe
PermissionError: [WinError 5] Přístup byl odepřen: 'C:\\Users\\XXX\\AppData\\Roaming\\Binary Ninja\\python310\\site-packages\\markupsafe\\_speedups.cp310-win_amd64.pyd'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions