Skip to content

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

Description

@Hossain-Albasha

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

Activity

  1. Hossain-Albasha commented on Jul 16, 2021

    @Hossain-Albasha
    Author

    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
  2. Golbeze commented on Sep 19, 2021

    @Golbeze

    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

  3. Golbeze commented on Sep 19, 2021

    @Golbeze

    also working for me, amazing

  4. leileigong commented on May 23, 2022

    @leileigong

    also working for me, thanks

  5. heokute commented on Dec 19, 2022

    @heokute

    working for me, thanks a lot :)

  6. Celestine45m commented on Mar 2, 2023

    @Celestine45m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions