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

Bug with DIE under IDAPro 6.95 #31

Open
waadaa85 opened this issue Oct 5, 2016 · 1 comment
Open

Bug with DIE under IDAPro 6.95 #31

waadaa85 opened this issue Oct 5, 2016 · 1 comment

Comments

@waadaa85
Copy link

waadaa85 commented Oct 5, 2016

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.

@a1ext
Copy link

a1ext commented Mar 2, 2017

@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...

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

2 participants