Flag: Tornado! Hurricane!

 Forums >>  IDA Pro  >>  IDAPython Plug-in Init Woes

Topic created on: September 11, 2006 04:46 CDT by ColdWinterWind .

I believe I have 'everything' installed correctly to support PaiMei (SWEET gui, BTW!); MySQL 4.12 (already installed, working fine); Python 2.4 (PaiMei works...).  Launch IDA 4.8, load previously analysed executable, popup error "IDAPythonError:  Error executing init.py","...idaapi.py","...idc.py","...idautils.py".  Out to idle, execute 'init.py', get Traceback (most recent call last):
  File "C:\idapro\python\init.py", line 15, in ?
    import _idaapi
  File "C:\idapro\python\_idaapi.py", line 9, in ?
    import idaapi
  File "C:\idapro\python\idaapi.py", line 41, in ?
    BADADDR = _idaapi.BADADDR
NameError: name '_idaapi' is not defined


Obviously there's a discontinuity in naming convention, I've tried manually "grep/replacing" to achieve conformity, delete .pyc files & run again.  Still no joy, downloaded SWIG (as recommended by dyce), got no compiler...

Used IDAPython 0.8 & 0.7 (both Win32), running XPProSP1.  A bunch of youse guys (and girls I presume) are successfully running IDAPython.  What am I missing?

  igorsk     September 11, 2006 05:46.36 CDT
I have IDAPython 0.8 and I don't have _idaapi.py in the "python" dir. Could it be a leftover from the 0.7 install?

  p0l     September 11, 2006 07:36.03 CDT
I think the _ before idaapi is a SWIG convention, and this script isn't really supposed to be ran standalone. I believe idapython 0.7 is linked against python 2.3, and since you're using 2.4, this probably caused the problem. Also, if you're using idapython 0.8, make sure that version 0.7 is not in the plugins folder anymore, even if it was renamed, as this will still cause the same problem since IDA will still load it. I had this same error a long time ago and this was the case.

  t0n     September 11, 2006 14:53.30 CDT
http://www.openrce.org/forums/posts/227

IDA 4.9+ is required to run PaiMei. Scroll to the very bottom.

  ColdWinterWind     September 12, 2006 01:34.30 CDT
Didja ever have it happen that simply ASKING THE QUESTION gives your subconcious an opening to give you the answer?  I had a very serious Homer [D'oh!] Simpson moment.  All three of you were right!

Thanks all for being so quick on the gReply(lFix).  Now where'd I put my checkbook...?

Note: Registration is required to post to the forums.

There are 31,322 total registered users.


Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
hi!
Jul/01
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06


Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n


Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM

oleavr
Oct/24
Anatomy of a code tracer

hasherezade
Sep/24
IAT Patcher - new tool for ...

oleavr
Aug/27
CryptoShark: code tracer ba...

oleavr
Jun/25
Build a debugger in 5 minutes

More ...


Recent Blog Comments
nieo on:
Mar/22
IAT Patcher - new tool for ...

djnemo on:
Nov/17
Kernel debugger vs user mod...

acel on:
Nov/14
Kernel debugger vs user mod...

pedram on:
Dec/21
frida.github.io: scriptable...

capadleman on:
Jun/19
Using NtCreateThreadEx for ...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit