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

ImportError: No module named ipapi #20

Closed
GoogleCodeExporter opened this issue Feb 17, 2016 · 2 comments
Closed

ImportError: No module named ipapi #20

GoogleCodeExporter opened this issue Feb 17, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant