This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kirk.d.sayre
Recipients Florian Hassanen, Marcus.Smith, Oleg N, Sébastien Taylor, benjamin.peterson, dstufft, fourplusone, kirk.d.sayre, ncoghlan, paul.moore, ppinard
Date 2017-05-16.20:37:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494967055.56.0.702404073459.issue24960@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-16 20:37:35kirk.d.sayresetrecipients: + kirk.d.sayre, paul.moore, ncoghlan, benjamin.peterson, dstufft, Marcus.Smith, Oleg N, Florian Hassanen, fourplusone, Sébastien Taylor, ppinard
2017-05-16 20:37:35kirk.d.sayresetmessageid: <1494967055.56.0.702404073459.issue24960@psf.upfronthosting.co.za>
2017-05-16 20:37:35kirk.d.sayrelinkissue24960 messages
2017-05-16 20:37:35kirk.d.sayrecreate