[Python] Error using etree in lxml

Discussão em 'Python' iniciado por Stack, Junho 13, 2025.

  1. Stack

    Stack Membro Participativo

    I want to use xpath in python . I tried

    import xml.etree.ElementTree as ET


    Since this library has limited usage I had to use lxml after a long session of search on google. I had several problems during installation and finally i installed lxml but when i use

    from lxml import etree


    it throws back an error as below. could you please tell me the solution to this problem!!!

    Traceback (most recent call last):
    File "<pyshell#0>", line 1, in <module>
    from lxml import etree
    ImportError: DLL load failed: %1 is not a valid Win32 application.


    Can any1 tell me what the problem would be?? Thanks for assistance!!

    Continue reading...

Compartilhe esta Página