Open aaktaev opened 2 years ago
When I try to set lxml==4.9.1 , it fails:
RROR: Cannot install -r /app/list.txt (line 97) and lxml==4.9.1 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested lxml==4.9.1
pyiso 0.4.0 depends on lxml==3.6.4
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
I encountered a similar problem with you. My Mac M1 needs arm64 package but lxml failed to be installed.
Failed to build lxml
Installing collected packages: lxml, billiard, beautifulsoup4, vine, mock, html5lib, click-didyoumean, click-repl, amqp, kombu, celery, pyiso
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
╰─> [140 lines of output]
Building lxml version 3.6.4.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
running install
/Users/yuhengzhang/miniforge3/envs/psa/lib/python3.9/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-39
creating build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/sax.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/builder.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml
creating build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
creating build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/html
creating build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-11.0-arm64-cpython-39/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-11.0-arm64-cpython-39/lxml/includes
creating build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron/resources
creating build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron/resources/rng
creating build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-11.0-arm64-cpython-39/lxml/isoschematron/resources/xsl
creating build/lib.macosx-11.0-arm64-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-11.0-arm64-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-11.0-arm64-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-11.0-arm64-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-11.0-arm64-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-11.0-arm64-cpython-39/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-39/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-11.0-arm64-cpython-39
creating build/temp.macosx-11.0-arm64-cpython-39/src
creating build/temp.macosx-11.0-arm64-cpython-39/src/lxml
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/yuhengzhang/miniforge3/envs/psa/include -arch arm64 -fPIC -O2 -isystem /Users/yuhengzhang/miniforge3/envs/psa/include -arch arm64 -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Isrc/lxml/includes -I/Users/yuhengzhang/miniforge3/envs/psa/include/python3.9 -c src/lxml/lxml.etree.c -o build/temp.macosx-11.0-arm64-cpython-39/src/lxml/lxml.etree.o -w -flat_namespace
src/lxml/lxml.etree.c:214085:38: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__TempStore.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214095:45: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ExceptionContext.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214102:37: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__LogEntry.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214114:41: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__BaseErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214123:41: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ListErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214128:44: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ErrorLogContext.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214140:37: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214149:43: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__DomainErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214158:45: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__RotatingErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214168:38: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_PyErrorLog.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214182:20: error: no member named 'tp_print' in 'struct _typeobject'
LxmlDocumentType.tp_print = 0;
~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214189:35: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_DocInfo.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214194:19: error: no member named 'tp_print' in 'struct _typeobject'
LxmlElementType.tp_print = 0;
~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214271:48: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree___ContentOnlyElement.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214308:36: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__Comment.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214316:50: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__ProcessingInstruction.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214324:35: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree__Entity.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214329:33: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_4lxml_5etree_QName.tp_print = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
src/lxml/lxml.etree.c:214335:23: error: no member named 'tp_print' in 'struct _typeobject'
LxmlElementTreeType.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
cc -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/include/libxml2 -c /var/folders/6q/39cht5wn1q33_whm58ry71kc0000gn/T/xmlXPathInit2lafizkr.c -o var/folders/6q/39cht5wn1q33_whm58ry71kc0000gn/T/xmlXPathInit2lafizkr.o
cc var/folders/6q/39cht5wn1q33_whm58ry71kc0000gn/T/xmlXPathInit2lafizkr.o -L/Library/Developer/CommandLineTools/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: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
@ajdonnison Would you be able to provide the Python version (and ideally lxml and pandas versions) you're working with, as it seems like a lot of people are having installation issues?
By removing the pandas version constraint in the source code, I was able to get a conflict-free install via setup.py on Python 3.10.0 by resolving other dependencies using conda. I haven't yet run through the full test suites to see what breaks in pandas 0.21 let alone 1.x. It looks like the tests also have a number of dependencies (nose, parameterized, mock, libfaketime, requests_mock, freezegun) which are not included in requirements.txt or setup.py.
When I try to install pandas==0.20.3
to satisfy the pandas version constraint, I get the error
pandas==0.20.3 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']
However, I was running into some lxml errors which indicated issues with a python version below 3.8.5. My suspicion is that @ajdonnison is working on a version without the pandas constraint, or has a lucky python+lxml+pandas combination that the dependency solver can't figure out...
Thanks @ajdonnison for your work on this; I last touched the code in 2017(!) but am now back and looking at EU data, for which I'm hoping your code will be helpful!
I'm trying to make docker image where will be installed pyiso==0.4.0 (with python3.8.13):