Kirk Sayre added the comment: I've been fighting with this issue today trying to import networkx in the embedded Python shipped with IDA-Pro. I have implemented a local fix to pgen.py that allows networkx to import and be used in IDAPython scripts. I added a check to see if a .zip archive appears in the path of the file loaded in the constructor and if so I use the zipfile package to open the archived file rather than the standard file open() function.
I've uploaded the modified pgen.py in case any one is interested. ---------- nosy: +kirk.d.sayre versions: +Python 2.7 -Python 3.5 Added file: http://bugs.python.org/file46866/pgen.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24960> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com