Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requires lxml #2

Open
PaintOnBrush opened this issue Jun 23, 2023 · 1 comment
Open

requires lxml #2

PaintOnBrush opened this issue Jun 23, 2023 · 1 comment

Comments

@PaintOnBrush
Copy link

didn't see it noted.

i used
pip install lxml

@AlexBatVi
Copy link

AlexBatVi commented Oct 10, 2024

It is not worked for me:

 Collecting lxml
   Using cached lxml-5.3.0.tar.gz (3.7 MB)
   Installing build dependencies ... done
   Getting requirements to build wheel ... done
   Preparing metadata (pyproject.toml) ... done
 Building wheels for collected packages: lxml
   Building wheel for lxml (pyproject.toml) ... error
   error: subprocess-exited-with-error
   
   × Building wheel for lxml (pyproject.toml) did not run successfully.
   │ exit code: 1
   ╰─> [117 lines of output]
       <string>:67: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
       Building lxml version 5.3.0.
       Building without Cython.
       Building against pre-built libxml2 andl libxslt libraries
       running bdist_wheel
       running build
       running build_py
       creating build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\builder.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\cssselect.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\doctestcompare.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\ElementInclude.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\pyclasslookup.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\sax.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\usedoctest.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\_elementpath.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\__init__.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       creating build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\__init__.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       creating build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\builder.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\clean.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\defs.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\diff.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\ElementSoup.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\formfill.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\html5parser.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\soupparser.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\usedoctest.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\_diffcommand.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\_html5builder.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\_setmixin.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       copying src\lxml\html\__init__.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\html
       creating build\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron
       copying src\lxml\isoschematron\__init__.py -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron
       copying src\lxml\etree.h -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\etree_api.h -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\lxml.etree.h -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\lxml.etree_api.h -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\etree.pyx -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\objectify.pyx -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\apihelpers.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\classlookup.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\cleanup.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\debug.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\docloader.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\dtd.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\extensions.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\iterparse.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\nsclasses.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\objectpath.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\parser.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\parsertarget.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\proxy.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\public-api.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\readonlytree.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\relaxng.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\saxparser.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\schematron.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\serializer.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xinclude.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xmlerror.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xmlid.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xmlschema.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xpath.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xslt.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\xsltext.pxi -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml
       copying src\lxml\includes\c14n.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\config.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\dtdvalid.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\etreepublic.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\htmlparser.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\relaxng.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\schematron.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\tree.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\uri.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\xinclude.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\xmlerror.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\xmlparser.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\xmlschema.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\xpath.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\xslt.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\__init__.pxd -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\etree_defs.h ->build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       copying src\lxml\includes\lxml-version.h > build\lib.mingw_x86_64_ucrt-cpython-311\lxml\includes
       creating build\lib.mingw_x86_64_ucrt-cpthon-311\lxml\isoschematron\resources\rng
       copying src\lxml\isoschematron\resource\rng\iso-schematron.rng -> build\lib.mingw_x86_64_ucrt-python-311\lxml\isoschematron\resources\rn
       creating build\lib.mingw_x86_64_ucrt-cpthon-311\lxml\isoschematron\resources\xsl
       copying src\lxml\isoschematron\resource\xsl\RNG2Schtrn.xsl -> build\lib.mingw_x86_64_ucrt-python-311\lxml\isoschematron\resources\xsl>       copying src\lxml\isoschematron\resource\xsl\XSD2Schtrn.xsl -> uild\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron\resources\xsl>       creating build\lib.mingw_x86_64_ucrt-python-311\lxml\isoschematron\resources\xsl\iso-shematron-xslt1
       copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl-> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt
       copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> uild\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1>       copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_messag.xsl -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1>       copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleto_for_xslt1.xsl -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1>       copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.mingw_x86_64ucrt-cpython-311\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
       copying src\lxml\ioschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.mingw_x86_64_ucrt-cpython-311\lxml\isoscematron\resources\xsl\iso-schematron-xslt1
       running build_ext>       building 'lxml.etree' extension>       creating build\temp.mingw_x86_64_ucrt-cpython-311\src\lxml>       gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3 -march=nocona -msahf -mtune=generic -O2 -pipe -p,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -O3 -CYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc\lxml\includes -IC:\Programs\msys64\ucrt64/include/python3.11 -c rc\lxml\etree.c -o build\temp.mingw_x86_64_ucrt-cpython-311\src\lxml\etree.o -w
       In file included from src\lxml\etree.c:1328:
       src\lxml\includes/etree_defs.h:12:10: fatal error: libxml/xmlversion.h: No such file or directory
          12 | #include "libxml/xmlversion.h"
             |          ^~~~~~~~~~~~~~~~~~~~~
       compilation terminated.
       Compile failed: command
       gcc -shared -O -Wall -I/usr/include/libxml2 -c C:\Users\kza.c -o \temp\xmlxpathinitqnhl6kza.o
       \xmlXPathInitqnhl6kza.c:1:10: fatal error: libxml/xpath.h: No such file or directory
           1 | #include "libxml/xpath.h"
             |          ^~~~~~~~~~~~~~~~
       compilation terminated.
       *********************************************************************************
       Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
       *********************************************************************************
       error: command 'bin\\gcc.EXE' failed with exit code 1
       [end of output]
 
   note: This error originates from a subprocess, and is likely not a problem with pip.
   ERROR: Failed building wheel for lxml
 Failed to build lxml
 ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lxml)
``'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants