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

DIE fails to load on ida for linux #17

Open
crowell opened this issue Jun 20, 2015 · 8 comments
Open

DIE fails to load on ida for linux #17

crowell opened this issue Jun 20, 2015 · 8 comments

Comments

@crowell
Copy link

crowell commented Jun 20, 2015

import of networkx fails

image

@crowell
Copy link
Author

crowell commented Jun 20, 2015

also confirmed failure on OS X

@tmr232
Copy link
Collaborator

tmr232 commented Jun 20, 2015

Did you install the requirements? (using pip install -r requirements.txt in DIE's top directory)
It should solve it.

@crowell
Copy link
Author

crowell commented Jun 20, 2015

@tmr232 yes i did this, nope it didn't solve the issue

@ynvb
Copy link
Owner

ynvb commented Jun 20, 2015

I have never tested it on OSX\Linux versions of IDA.
Have yo tries installing networkx manually?

@crowell
Copy link
Author

crowell commented Jun 20, 2015

@ynvb yes, i installed from pip (system python) pip (virtualenv), and from the ubuntu repository.

none of them works.

I can import networkx from my python shell normally though

>>> import networkx as nx
>>> 

@ltfish
Copy link

ltfish commented Jun 21, 2015

I think it's because your IDA installation is using the Python bundled with IDA itself, not the global one. if that's the case, import networkx will fail in IDAPython - since you didn't install networkx for the bundled Python (with IDA).

Check out ~/ida-6.x/python to see if that's the case. You may simply symlink your installation of networkx to '~/ida-6.x/python/networkx`, and see if the problem solves.

This was a big pain when we were developing idalink :-(

@tmr232
Copy link
Collaborator

tmr232 commented Jun 21, 2015

This solution had two main issues:

  1. It will require adding a similar symlink to each and every dependency;
  2. If the system python is not compatible to IDA's version it might cause weird errors.

If you have a compatible python version install, you can probably use one of the following solutions (untested as I do not have IDA for Linux):

  1. Symlink the entire site-packages directory, or use a .pth to link it;
  2. Use a virtualenv like script to "activate" IDA's python environment, then use pip normally.

I hope this helps.

@crowell
Copy link
Author

crowell commented Jun 21, 2015

with virtualenv + this plugin i got it working, debugging throws some errors about numbers being too large to convert to int, I'll try to dig a bit and give you a better bug report when i have time to dig into it.

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

4 participants