title: Could not import idaapi. Name error: name 'idaapi' is not defined
body: <p>I have a python script that auto read and export particular offsets from a game. It's made with the help of IDA 6.6 and it's python scripts/libs. Now I am not very experienced with python and I don't know why I get this errors: </p>
  
  <ol>
  <li>Could not import idaapi. Running in 'pydoc mode'.</li>
  <li>Traceback (most recent call last): File "C:\Users\1234\Desktop\idapyhon\offsets.py", line 1, in  from idc import BADADDR, INF_BASEADDR,  SEARCH_DOWN, FUNCATTR_START, FUNCATTR_END File "D:\prg\IDA 6.6\python\idc.py", line 41, in  <strong>EA64</strong> = idaapi.BADADDR == 0xFFFFFFFFFFFFFFFFL NameError: name 'idaapi' is not defined</li>
  </ol>
  
  <p>offsets.py:
      pastebin.com/sp08SiS9</p>
  
  <p>idc.py:
      pastebin.com/6eJRtphF</p>
  
  <p>What this script must do is get all the offsets from the game and place them in txt file in the "output" dir.</p>
  
  <p>Let me know if you need any other code.</p>