DIE icon indicating copy to clipboard operation
DIE copied to clipboard

Bug with DIE under IDAPro 6.95

Open waadaa85 opened this issue 8 years ago • 1 comments

Hello. I don't know if DIE is still maintained but here is a blocking issue with IDAPro 6.95

I've installed DIE carefully following instructions and I got this error when IDA starts:

[2] Loading data parsers die_proxy.py: global name 'idaapi' is not defined Traceback (most recent call last): File "D:\IDA695\python\ida_idaapi.py", line 509, in IDAPython_ExecScript execfile(script, g) File "D:/IDA695/plugins/die_proxy.py", line 13, in plugin = imp.load_source(name, plugin_path) File "D:\IDA695\DIE\DIE.py", line 24, in import DIE.UI.BPView File "D:\IDA695\DIE\DIE\UI\BPView.py", line 5, in from DIE.Lib import BpHandler File "D:\IDA695\DIE\DIE\Lib\BpHandler.py", line 546, in _bp_handler = BpHandler() File "D:\IDA695\DIE\DIE\Lib\BpHandler.py", line 36, in init self.iat = StaticImports() # Static IAT File "D:\IDA695\DIE\DIE\Lib\DbgImports.py", line 24, in init self.get_iat_data() File "D:\IDA695\DIE\DIE\Lib\DbgImports.py", line 42, in get_iat_data imp_num = idaapi.get_import_module_qty() # Number of imported modules NameError: global name 'idaapi' is not defined

Additional info:

  • DIE installed from a git clone of the latest master downloaded from here.
  • Python is provided by Anaconda2
  • all DIE dependencies are installed (with anaconda-provided pip) using DIE's requirements.txt
  • pywin32 has been also installed through anaconda2.
  • All dependencies are within the python path.
  • IDAPython is working. Simple commands (such as "import imp" and " help("imp") " ) entered on CLI within idaq.exe are executed correctly. Even "import idaapi" works
  • %DIEDIR% exists and points to D:\IDA695\DIE and I tried to point to

Please advise, Best Regards.

waadaa85 avatar Oct 05 '16 13:10 waadaa85

@waadaa85 try to put the following line at the beginning of the DIE\Lib\DbgImports.py file:

import idaapi

P.S. oww... seems like there are few things to fix to make it works under IDA 6.9x...

a1ext avatar Mar 02 '17 21:03 a1ext