geneagrapher
geneagrapher copied to clipboard
Required lxml version is restricted
Hi, I was trying to install geneagrapher using pip, but my pip returns an error (attached below). I am not certain what the error was about, but I found that the required lxml version was old and restricted, so I tried changing the requirement from lxml==4.2.5
to lxml>=4.2.5
and then everything went well. Perhaps it would be good to relax the requirement (or use a new version of lxml)?
Detail error log here:
Building wheels for collected packages: geneagrapher, lxml
Building wheel for geneagrapher (setup.py) ... done
Created wheel for geneagrapher: filename=geneagrapher-1.0-py3-none-any.whl size=206184 sha256=d7b0843d34383129e085198f2b45b1d2b7f6d8e68c1fb39e58f137828aaf0137
Stored in directory: /private/var/folders/fc/ckq7rt157jvftnycqt444j6c0000gn/T/pip-ephem-wheel-cache-cig50idw/wheels/74/c1/f0/2567cf6194cd803e82d361d64f1fc877fb17172be8761b77cc
Building wheel for lxml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [146 lines of output]
Building lxml version 4.2.5.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-12-x86_64-cpython-39
creating build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/sax.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/__init__.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/builder.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-12-x86_64-cpython-39/lxml
creating build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
creating build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/html
creating build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron
copying src/lxml/etree.h -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/etree_api.h -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/lxml.etree.h -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-12-x86_64-cpython-39/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/__init__.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-12-x86_64-cpython-39/lxml/includes
creating build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources
creating build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/rng
creating build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl
creating build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-12-x86_64-cpython-39/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-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-12-x86_64-cpython-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-12-x86_64-cpython-39
creating build/temp.macosx-12-x86_64-cpython-39/src
creating build/temp.macosx-12-x86_64-cpython-39/src/lxml
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DCYTHON_CLINE_IN_TRACEBACK=0 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -Isrc -Isrc/lxml/includes -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/lxml/etree.c -o build/temp.macosx-12-x86_64-cpython-39/src/lxml/etree.o -w -flat_namespace
src/lxml/etree.c:247851:33: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_Error.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247859:37: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_LxmlError.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247867:37: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_C14NError.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247877:38: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__TempStore.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247890:45: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ExceptionContext.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247900:37: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__LogEntry.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247915:41: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__BaseErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247927:41: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ListErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247938:44: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ErrorLogContext.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247954:37: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247966:43: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__DomainErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247978:45: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__RotatingErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:247991:38: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_PyErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:248008:20: error: no member named 'tp_print' in 'struct _typeobject'
LxmlDocumentType.tp_print = 0;
~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:248018:35: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_DocInfo.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:248026:19: error: no member named 'tp_print' in 'struct _typeobject'
LxmlElementType.tp_print = 0;
~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:248106:48: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree___ContentOnlyElement.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:248146:36: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__Comment.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/etree.c:248157:50: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ProcessingInstruction.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Compile failed: command '/usr/bin/clang' failed with exit code 1
creating var
creating var/folders
creating var/folders/fc
creating var/folders/fc/ckq7rt157jvftnycqt444j6c0000gn
creating var/folders/fc/ckq7rt157jvftnycqt444j6c0000gn/T
cc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include -I/usr/include/libxml2 -c /var/folders/fc/ckq7rt157jvftnycqt444j6c0000gn/T/xmlXPathInitsrk5ia83.c -o var/folders/fc/ckq7rt157jvftnycqt444j6c0000gn/T/xmlXPathInitsrk5ia83.o
cc var/folders/fc/ckq7rt157jvftnycqt444j6c0000gn/T/xmlXPathInitsrk5ia83.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib -lxml2 -o a.out
error: command '/usr/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
Successfully built geneagrapher
Failed to build lxml