Skip to content

Instantly share code, notes, and snippets.

@blissdev
Created February 7, 2023 19:53
Show Gist options
  • Save blissdev/15caeb58a22b7dd53a50047585a1a2d5 to your computer and use it in GitHub Desktop.
Save blissdev/15caeb58a22b7dd53a50047585a1a2d5 to your computer and use it in GitHub Desktop.
(.venv) m1mbp:nix-python-venv-lxml-example blissdev$ ./.venv/bin/pip-sync bootstrap-requirements.txt requirements.txt
Collecting lxml==4.9.2
Using cached lxml-4.9.2.tar.gz (3.7 MB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
Building lxml version 4.9.2.
Building without Cython.
Building against libxml2 2.9.4 and libxslt 1.1.29
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.0-arm64-cpython-311
creating build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/sax.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/builder.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/etree_api.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/lxml.etree.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/objectify.pyx -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/etree.pyx -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/public-api.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xmlid.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/cleanup.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xslt.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xpath.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/debug.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/serializer.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/classlookup.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/saxparser.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/objectpath.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/relaxng.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xinclude.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/iterparse.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/parser.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/dtd.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/apihelpers.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xmlerror.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/readonlytree.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/extensions.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xmlschema.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/schematron.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/docloader.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/nsclasses.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/parsertarget.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xsltext.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/proxy.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/rng
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-11.0-arm64-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.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-11.0-arm64-cpython-311
creating build/temp.macosx-11.0-arm64-cpython-311/src
creating build/temp.macosx-11.0-arm64-cpython-311/src/lxml
clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/nl6w48s4xv3p62ysl080jg38hxkxrqsi-libxcrypt-4.4.33/include -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/include -I/nix/store/f8fdbfylqzwmil8yl1kwkbw620p49il8-python3-3.11.1/include/python3.11 -c src/lxml/etree.c -o build/temp.macosx-11.0-arm64-cpython-311/src/lxml/etree.o -w -flat_namespace
In file included from src/lxml/etree.c:858:
src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Compile failed: command '/nix/store/fb4rdxr69sy1vsi98z3njxjzdq3rj3ah-clang-wrapper-11.1.0/bin/clang' failed with exit code 1
creating tmp
creating tmp/nix-shell.mN8kJI
cc -I/usr/include/libxml2 -c /tmp/nix-shell.mN8kJI/xmlXPathInitir6ekzl8.c -o tmp/nix-shell.mN8kJI/xmlXPathInitir6ekzl8.o
/tmp/nix-shell.mN8kJI/xmlXPathInitir6ekzl8.c:1:10: fatal error: 'libxml/xpath.h' file not found
#include "libxml/xpath.h"
^~~~~~~~~~~~~~~~
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/nix/store/fb4rdxr69sy1vsi98z3njxjzdq3rj3ah-clang-wrapper-11.1.0/bin/clang' 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
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
Building lxml version 4.9.2.
Building without Cython.
Building against libxml2 2.9.4 and libxslt 1.1.29
running install
/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-11.0-arm64-cpython-311
creating build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/sax.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/builder.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/html
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/etree_api.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/lxml.etree.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/objectify.pyx -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/etree.pyx -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/public-api.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xmlid.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/cleanup.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xslt.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xpath.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/debug.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/serializer.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/classlookup.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/saxparser.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/objectpath.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/relaxng.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xinclude.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/iterparse.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/parser.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/dtd.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/apihelpers.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xmlerror.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/readonlytree.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/extensions.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xmlschema.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/schematron.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/docloader.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/nsclasses.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/parsertarget.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/xsltext.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/proxy.pxi -> build/lib.macosx-11.0-arm64-cpython-311/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-11.0-arm64-cpython-311/lxml/includes
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/rng
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl
creating build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-11.0-arm64-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.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-11.0-arm64-cpython-311/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-11.0-arm64-cpython-311
creating build/temp.macosx-11.0-arm64-cpython-311/src
creating build/temp.macosx-11.0-arm64-cpython-311/src/lxml
clang -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/nix/store/nl6w48s4xv3p62ysl080jg38hxkxrqsi-libxcrypt-4.4.33/include -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc/lxml/includes -I/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/include -I/nix/store/f8fdbfylqzwmil8yl1kwkbw620p49il8-python3-3.11.1/include/python3.11 -c src/lxml/etree.c -o build/temp.macosx-11.0-arm64-cpython-311/src/lxml/etree.o -w -flat_namespace
In file included from src/lxml/etree.c:858:
src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Compile failed: command '/nix/store/fb4rdxr69sy1vsi98z3njxjzdq3rj3ah-clang-wrapper-11.1.0/bin/clang' failed with exit code 1
cc -I/usr/include/libxml2 -c /tmp/nix-shell.mN8kJI/xmlXPathInit47l9i9gv.c -o tmp/nix-shell.mN8kJI/xmlXPathInit47l9i9gv.o
/tmp/nix-shell.mN8kJI/xmlXPathInit47l9i9gv.c:1:10: fatal error: 'libxml/xpath.h' file not found
#include "libxml/xpath.h"
^~~~~~~~~~~~~~~~
1 error generated.
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/nix/store/fb4rdxr69sy1vsi98z3njxjzdq3rj3ah-clang-wrapper-11.1.0/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: pip install --upgrade pip
Traceback (most recent call last):
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/./.venv/bin/pip-sync", line 8, in <module>
sys.exit(cli())
^^^^^
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/piptools/scripts/sync.py", line 174, in cli
sync.sync(
File "/Users/blissdev/Projects/nix-python-venv-lxml-example/.venv/lib/python3.11/site-packages/piptools/sync.py", line 240, in sync
run( # nosec
File "/nix/store/f8fdbfylqzwmil8yl1kwkbw620p49il8-python3-3.11.1/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment