Unable to complete a static build with pip

Hello, Following the instructions at https://lxml.de/installation.html#installation I am running STATIC_DEPS=true pip install --no-binary :all: lxml but I am receiving this error: Downloading libxslt into libs/libxslt-1.1.33.tar.gz from ftp://xmlsoft.org/l ibxml2/libxslt-1.1.33.tar.gz Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-sgNr8u/lxml/setup.py", line 241, in <module> **setup_extra_options() File "/tmp/pip-install-sgNr8u/lxml/setup.py", line 150, in setup_extra_opt ions STATIC_CFLAGS, STATIC_BINARIES) File "setupinfo.py", line 75, in ext_modules multicore=OPTION_MULTICORE) File "buildlibxml.py", line 390, in build_libxml2xslt libxslt_dir = unpack_tarball(download_libxslt(download_dir, libxslt_ver sion), build_dir) File "buildlibxml.py", line 218, in download_libxslt version_re, filename, version=version) File "buildlibxml.py", line 291, in download_library urlretrieve(full_url, dest_filename) File "/usr/lib64/python2.7/urllib.py", line 94, in urlretrieve return _urlopener.retrieve(url, filename, reporthook, data) File "/usr/lib64/python2.7/urllib.py", line 240, in retrieve fp = self.open(url, data) File "/usr/lib64/python2.7/urllib.py", line 208, in open return getattr(self, name)(url) File "/usr/lib64/python2.7/urllib.py", line 552, in open_ftp (fp, retrlen) = self.ftpcache[key].retrfile(file, type) File "/usr/lib64/python2.7/urllib.py", line 903, in retrfile self.ftp.cwd(file) File "/usr/lib64/python2.7/ftplib.py", line 562, in cwd return self.voidcmd(cmd) File "/usr/lib64/python2.7/ftplib.py", line 254, in voidcmd return self.voidresp() File "/usr/lib64/python2.7/ftplib.py", line 229, in voidresp resp = self.getresp() File "/usr/lib64/python2.7/ftplib.py", line 224, in getresp raise error_perm, resp IOError: [Errno ftp error] [Errno ftp error] 550 Failed to change directory. I believe the problem is that version 1.1.33 of libxslt has not actually been released and there is only a rc1 source tarball. How can I work around this issue? I would like to do a static build of libxml and libxslt because I am attempting to track down a memory issue and I want to be running the latest released versions of those libraries, as opposed to the versions offered by the host operating system. Thanks, Scott K

Scott Koranda schrieb am 01.08.2018 um 19:50:
Yes, that is the reason. The build support in the latest lxml release doesn't deal well with this case.
How can I work around this issue?
You can set the env var LIBXSLT_VERSION=1.1.32 (or probably also LIBXSLT_VERSION=1.1.33-rc1).
Seems like a good idea in such a case. Stefan

Scott Koranda schrieb am 01.08.2018 um 19:50:
Yes, that is the reason. The build support in the latest lxml release doesn't deal well with this case.
How can I work around this issue?
You can set the env var LIBXSLT_VERSION=1.1.32 (or probably also LIBXSLT_VERSION=1.1.33-rc1).
Seems like a good idea in such a case. Stefan
participants (2)
-
Scott Koranda
-
Stefan Behnel