keypatch icon indicating copy to clipboard operation
keypatch copied to clipboard

da_idaapi.py", line 616, in IDAPython_ExecScript exec(code, g)

Open Fallen1997 opened this issue 3 years ago • 6 comments

E:\Hex\plugins\keypatch.py: module 'idaapi' has no attribute 'Choose2' Traceback (most recent call last): File "E:\Hex\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript exec(code, g) File "E:/Hex/plugins/keypatch.py", line 1134, in class SearchResultChooser(idaapi.Choose2): AttributeError: module 'idaapi' has no attribute 'Choose2'

I'm using the lastest release 2.1 from github. i've been looking for solution and trying to solve this for hours

Using IDA pro 7.5 SP3

Fallen1997 avatar Jul 14 '21 08:07 Fallen1997

I got it working.

I'm using ida 7.5 SP3 on windows. if your IDA giving similar error, i did this then it worked. install python 3 if you don't have it

  1. Open CMD (command prompr) as ADMINISTRATOR
  2. Type cd C:\Program Files\IDA Pro 7.5 SP3 ( or cd then wherever you have IDA path installed to)
  3. Type idapyswitch.exe (This comes with IDA 7.5+ this allows you to switch to python 3) you should have this in ida folder if not then download it from ida site
  4. You will be able to pick a number, in my case 0 was python 3. after that it should say "Applying version" or something similar, if the console closes right away that means you did not open cmd as admin
  5. now Open cmd as admin again, type pip install six. skip if you done this already
  6. Type in CMD pip install keystone-engine
  7. Download Keypatch from HERE
  8. Copy the keypatch.py and go to the IDA installation folder then go to plugin, paste it there.
  9. Done

Fallen1997 avatar Jul 16 '21 16:07 Fallen1997

i encounter a same situation, and and i found it was the porting problem in keypatch code, so i patch the source, and finally reach a place that many code call idaapi.add_menu_item,which is already deprecated in new version, it took much time to write new code suit for 7.5, as IDA introduce a more flexible mechanism to performance menu item,so i came here to find something simple to fix it up

Golbeze avatar Sep 19 '21 09:09 Golbeze

also working for me, amazing

Golbeze avatar Sep 19 '21 09:09 Golbeze

also working for me, thanks

leileigong avatar May 23 '22 07:05 leileigong

working for me, thanks a lot :)

heokute avatar Dec 19 '22 16:12 heokute

update you keypatch.py from https://github.com/keystone-engine/keypatch/blob/08e743b841be90c99554b7fa4a6f5e11c6b1d8f8/keypatch.py

Bwing4 avatar Mar 02 '23 07:03 Bwing4