XSCE / xsce

xsce code base
Other
32 stars 32 forks source link

pathagar failed to install #895

Open tim-moody opened 7 years ago

tim-moody commented 7 years ago

on debian vm appliance I ran ansible twice with the same result (also happened with iiab)

TASK [pathagar : Install pathagar requirements in a virtualenv] **** ok: [127.0.0.1] => (item=Django==1.4.5) ok: [127.0.0.1] => (item=django-tagging==0.3.1) ok: [127.0.0.1] => (item=django-sendfile==0.3.6) failed: [127.0.0.1] (item=lxml==3.4.4) => {"cmd": "/usr/local/pathagar/venv/bin/pip2 install --no-index --find-links=file:///opt/schoolserver/pip-packages lxml==3.4.4", "failed": true, "item": "lxml==3.4.4", "msg": "stdout: Ignoring indexes: https://pypi.python.org/simple/\nDownloading/unpacking lxml==3.4.4\n Running setup.py (path:/tmp/pip-build-NEL18P/lxml/setup.py) egg_info for package lxml\n /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\n warnings.warn(msg)\n Building lxml version 3.4.4.\n Building without Cython.\n Using build configuration of libxslt 1.1.28\n \n warning: no previously-included files found matching '*.py'\nInstalling collected packages: lxml\n Found existing installation: lxml 3.4.0\n Not uninstalling lxml at /usr/lib/python2.7/dist-packages, outside environment /usr/local/pathagar/venv\n Running setup.py install for lxml\n /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\n warnings.warn(msg)\n Building lxml version 3.4.4.\n Building without Cython.\n Using build configuration of libxslt 1.1.28\n building 'lxml.etree' extension\n x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -I/tmp/pip-build-NEL18P/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w\n x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so\n /usr/bin/ld: cannot find -lz\n collect2: error: ld returned 1 exit status\n error: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n Complete output from command /usr/local/pathagar/venv/bin/python2 -c \"import setuptools, tokenize;file='/tmp/pip-build-NEL18P/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))\" install --record /tmp/pip-34uKHw-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/pathagar/venv/include/site/python2.7:\n /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'\n\n warnings.warn(msg)\n\nBuilding lxml version 3.4.4.\n\nBuilding without Cython.\n\nUsing build configuration of libxslt 1.1.28\n\nrunning install\n\nrunning build\n\nrunning build_py\n\ncreating build\n\ncreating build/lib.linux-x86_64-2.7\n\ncreating build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/init.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml\n\ncreating build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/init.py -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncreating build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/init.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncopying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html\n\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron\n\ncopying src/lxml/isoschematron/init.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron\n\ncopying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml\n\ncopying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncopying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes\n\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources\n\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng\n\ncopying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng\n\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl\n\ncopying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl\n\ncopying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl\n\ncreating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\ncopying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1\n\nrunning build_ext\n\nbuilding 'lxml.etree' extension\n\ncreating build/temp.linux-x86_64-2.7\n\ncreating build/temp.linux-x86_64-2.7/src\n\ncreating build/temp.linux-x86_64-2.7/src/lxml\n\nx86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -I/tmp/pip-build-NEL18P/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w\n\nx86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so\n\n/usr/bin/ld: cannot find -lz\n\ncollect2: error: ld returned 1 exit status\n\nerror: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n\n----------------------------------------\n Can't roll back lxml; was not uninstalled\nCleaning up...\nCommand /usr/local/pathagar/venv/bin/python2 -c \"import setuptools, tokenize;file='/tmp/pip-build-NEL18P/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))\" install --record /tmp/pip-34uKHw-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/pathagar/venv/include/site/python2.7 failed with error code 1 in /tmp/pip-build-NEL18P/lxml\nStoring debug log for failure in /root/.pip/pip.log\n"}

jvonau commented 7 years ago

Think I have seen this kind of error before, try moving lxml to be with django-taggit in the next stanza below.

jvonau commented 7 years ago

While this gets sorted out default to not installing #919, local_vars can be used for local testing.