DIE
DIE copied to clipboard
DIE fails to load on ida for linux
import of networkx fails

also confirmed failure on OS X
Did you install the requirements? (using pip install -r requirements.txt in DIE's top directory)
It should solve it.
@tmr232 yes i did this, nope it didn't solve the issue
I have never tested it on OSX\Linux versions of IDA. Have yo tries installing networkx manually?
@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
>>>
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 :-(
This solution had two main issues:
- It will require adding a similar symlink to each and every dependency;
- 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):
- Symlink the entire
site-packagesdirectory, or use a.pthto link it; - Use a virtualenv like script to "activate" IDA's python environment, then use pip normally.
I hope this helps.
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.