Going back to the original topic of the issue "no module named urllib" I can confirm it was resolved by installing required packages with Ipy. It was my fault thinking that installing packages with CPython, and then simply set IronPythonű1s search path pointing to the same Lib\site-packages folder would work. Although I do not understand the difference, probably because I am new to Python. Thanks again for your help Thimo.
On Wed, Jul 20, 2016 at 4:28 PM, László Frank <laszlo.fr...@gmail.com> wrote: > Thanks Thimo for the update. > > >> If you do not need a specific feature from lxml, then the defualt > ElementTree shoul work nicely > Actually, the python library I am trying to use is not my code, it has > been published by Cisco and is quite complex. Here and there pops up the > lxml import, and at current stage I can't decide whether I can port it to > ElementTree (but I guess Cisco had a good reason for using lxml). I > remember seeing XSLT and XPath is used in the code and I don't think > standard xml supports it. > > >> The IronPython is based on libxml. > I do not know what you mean by that. Libxml2 is written in C and compiled > into to a native image. As a result, I can't make use of it from > IronPython. Sadly enough the situation is the same as with lxml. > > Sadly enough,I can't see any other option than creating a wrapper class > around .Net XDocument and mimic lxml functionality through it. Quite some > effort.. > > Regards, > Laszlo > > > On Tue, Jul 19, 2016 at 7:32 PM, Langbehn, Thimo <t.langb...@euroimmun.de> > wrote: > >> Hi László, >> >> > Based on your suggestion I think I will have to re-install a couple of >> packages with Ipy, as I only did it with Python and thought it is >> eventually the same. >> >> The additional Packages, as installed with pip, are usually the same. The >> core packages that come with (Iron)Python however are different. >> >> > Touching the installation topic, I would like to ask one other thing. I >> already learnt I can't use lxml package from IronPython. Have you by any >> chance heard about any alternatives to it ? >> >> If you do not need a specific feature from lxml, then the defualt >> ElementTree shoul work nicely. The IronPython is based on libxml. >> >> import xml.etree.ElementTree as ET >> See https://docs.python.org/2/library/xml.etree.elementtree.html >> >> Cheers, >> >> Thimo >> > >
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users