how can I install extra python modules ?

742 views
Skip to first unread message

Rafael Costa

unread,
May 2, 2012, 1:49:24 PM5/2/12
to idapython
Hi All,

I'm porting a python script to idapython and now I'm stuck because I
need to parse a XML file. In my previous script I used lxml module. So
I'd know how to install this module or other extra modules ( I think I
will need this ).

Also I've installed lxml in other python installation in my OS but
when I try to import lxml inside my idapython script occurs an error
because idapython cannot find this module instalation.

I hope you can help me.
Thanks

Sebastian Muniz

unread,
May 2, 2012, 2:01:49 PM5/2/12
to idap...@googlegroups.com, Rafael Costa
Rafael,

You should be able to install additional python modules and use them
from IDAPython without any problem.

Probably you have more than one Python version installed ??? To make
sure check your python command line version against the version used by
IDAPython. Also check the dictionary with the path to the different
modules on sys.path to see where does Python get the modules from.

I hope this helps. Good luck!

~cheers, topo

Rafael de Oliveira Costa

unread,
May 2, 2012, 2:20:47 PM5/2/12
to Sebastian Muniz, idap...@googlegroups.com
Sebastian,

I have more than one Python version installed. One in C:\Python2.6 and the other inside IDA's directory, which I presume it is IDAPython.

I try to install mentioned module with easy_install inside IDA's directory but it gets an error. However I think that my problem is off the subject of this list. 

So I will try other way to install this module because like you said this should works.

Thanks for the helping

Rafael de Oliveira Costa, M.Sc. Student
PPGI - UFRJ
Rio de Janeiro, RJ, Brazil
http://www.labnet.nce.ufrj.br
"Enquanto permanecerem lutando por alguma coisa, os homens estarão sempre cometendo erros", Goethe

Mario Vilas

unread,
May 2, 2012, 3:41:35 PM5/2/12
to idap...@googlegroups.com
Whatever module it is, if it works with easy_install then it should
also work by downloading the source code and executing the setup.py
script from the target Python installation. (All easy_install does is
searching for the module and downloading it, the actual installation
is performed by setup.py).

Hope this helps! :)
-Mario
> --
> You received this message because you are subscribed to the Google Groups
> "idapython" group.
> To post to this group, send email to idap...@googlegroups.com.
> To unsubscribe from this group, send email to
> idapython+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/idapython?hl=en.



--
“There's a reason we separate military and the police: one fights the
enemy of the state, the other serves and protects the people. When the
military becomes both, then the enemies of the state tend to become
the people.”
Reply all
Reply to author
Forward
0 new messages