Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fallen1997 opened this issue Jul 14, 2021 · 6 comments
Open

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

Fallen1997 opened this issue Jul 14, 2021 · 6 comments

Comments

@Fallen1997
Copy link

Fallen1997 commented Jul 14, 2021

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
Copy link
Author

Fallen1997 commented Jul 16, 2021

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

@Golbeze
Copy link

Golbeze commented Sep 19, 2021

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
Copy link

Golbeze commented Sep 19, 2021

also working for me, amazing

@leileigong
Copy link

also working for me, thanks

@heokute
Copy link

heokute commented Dec 19, 2022

working for me, thanks a lot :)

@Bwing4
Copy link

Bwing4 commented Mar 2, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants