patching icon indicating copy to clipboard operation
patching copied to clipboard

Patching cancelled...

Open PFAhard opened this issue 3 years ago • 8 comments

Patching cancelled... when try to apply

PFAhard avatar Apr 25 '22 06:04 PFAhard

Install properly as a user-plugin. Dont mix with other keystone stuff

Kein avatar Sep 10 '22 22:09 Kein

@Kein What does that mean? i just installed it as given by the instructions. no other user-plugins installed.

eg import urllib.request as r; exec(r.urlopen('https://github.com/gaasedelen/patching/raw/main/install.py').read())

The issue is that from patching.util.qt import QT_AVAILABLE returns False and thus self.view is not populated and cant be opened

Slluxx avatar Feb 17 '23 17:02 Slluxx

c:\Users\%USER%\AppData\Roaming\Hex-Rays\IDA Pro\plugins\

Kein avatar Feb 17 '23 17:02 Kein

Yes, i know where the plugins folder is. There is nothing in it besides the patching plugin.

Slluxx avatar Feb 17 '23 18:02 Slluxx

I managed to fix it by installing PyQt5 via pip and moving the file D:\Program Files\Python311\Lib\site-packages\PyQt5\sip.cp311-win_amd64.pyd to E:\Programs\IDA Pro 7.6\python\3\PyQt5\sip.pyd

Then i commented out line 32 (self.setWindowFlags) in patching\ui\save_ui.py

To fix IDA crashing when clicking on "Assemble...", i commented out line 42 (self._line_assembly.setFocus) in patching\ui\preview_ui.py

IDA Pro 7.6, Python 3.11, PyQt5==5.15.9

Slluxx avatar Feb 17 '23 18:02 Slluxx

I managed to fix it by installing PyQt5 via pip and moving the file D:\Program Files\Python311\Lib\site-packages\PyQt5\sip.cp311-win_amd64.pyd to E:\Programs\IDA Pro 7.6\python\3\PyQt5\sip.pyd

This fixed both the "Assemble" crashing and "Patching cancelled" issue for me. Thank you.

ngokmink avatar Jun 05 '23 19:06 ngokmink

I managed to fix it by installing PyQt5 via pip and moving the file D:\Program Files\Python311\Lib\site-packages\PyQt5\sip.cp311-win_amd64.pyd to E:\Programs\IDA Pro 7.6\python\3\PyQt5\sip.pyd

Then i commented out line 32 (self.setWindowFlags) in patching\ui\save_ui.py

To fix an IDA crashing when clicking on "Assemble...", i commented out line 42 (self._line_assembly.setFocus) in patching\ui\preview_ui.py

IDA Pro 7.6, Python 3.11, PyQt5==5.15.9

thanks,I don't know how you came up with the solution, but it did solve my problem

likeNlong avatar Aug 06 '23 13:08 likeNlong

I managed to fix it by installing PyQt5 via pip and moving the file D:\Program Files\Python311\Lib\site-packages\PyQt5\sip.cp311-win_amd64.pyd to E:\Programs\IDA Pro 7.6\python\3\PyQt5\sip.pyd

Then i commented out line 32 (self.setWindowFlags) in patching\ui\save_ui.py

To fix an IDA crashing when clicking on "Assemble...", i commented out line 42 (self._line_assembly.setFocus) in patching\ui\preview_ui.py

IDA Pro 7.6, Python 3.11, PyQt5==5.15.9

thanks+1

DragonQuestHero avatar Nov 17 '23 21:11 DragonQuestHero