tomliamlynch / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

ImportError: No module named ipapi #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download either androguard from source, 1.0RC1 or 0.9
2. Install all prerequisites
3. Run ./androlyze -s

What is the expected output? What do you see instead?

Expected output: IPython shell. 
What I get: 

Traceback (most recent call last):
  File "./androlyze.py", line 29, in <module>
    import IPython.ipapi
ImportError: No module named ipapi

What version of the product are you using? On what operating system?

IPython 0.12. Androguard from source, 1.0RC1 and 0.9. Ubuntu 11.10

Please provide any additional information below.

ipapi is deprecated in IPython 0.12 which is the latest stable version.

http://ipython.org/ipython-doc/stable/api/generated/IPython.core.ipapi.html

The following fix seems to work:

from IPython.frontend.terminal.embed import InteractiveShellEmbed
from IPython.config.loader import Config

cfg = Config()
ipshell = InteractiveShellEmbed(config=cfg, banner1="Androlyze version %s" % 
androconf.ANDROGUARD_VERSION)
ipshell()

Original issue reported on code.google.com by meli...@gmail.com on 6 Mar 2012 at 4:48

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 6 Mar 2012 at 7:24

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 9 Mar 2012 at 5:33