Python 3.7 install from pip fails while building

Bug #1757938 reported by Matt on 2018-03-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Undecided
Unassigned

Bug Description

Python : sys.version_info(major=3, minor=7, micro=0, releaselevel='alpha', serial=4)

Windows 10x64 insider preview b17123

The command python -m pip install lxml fails with an error:
 building 'lxml.etree' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\src
    creating build\temp.win-amd64-3.7\Release\src\lxml
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCYTHON_CLINE_IN_TRACEBACK=0 -Isrc -Isrc\lxml\includes "-IC:\Program Files\Python37\include" "-IC:\Program Files\Python37\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" /Tcsrc\lxml\etree.c /Fobuild\temp.win-amd64-3.7\Release\src\lxml\etree.obj -w
    cl : Command line warning D9025 : overriding '/W3' with '/w'
    etree.c
    c:\users\marcus family\appdata\local\temp\pip-build-_2mgkw67\lxml\src\lxml\includes/etree_defs.h(14): fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory
    Compile failed: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.11.25503\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    creating Users
    creating Users\MARCUS~1
    creating Users\MARCUS~1\AppData
    creating Users\MARCUS~1\AppData\Local
    creating Users\MARCUS~1\AppData\Local\Temp
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" /TcC:\Users\MARCUS~1\AppData\Local\Temp\xmlXPathInitr9vv6tr5.c /FoUsers\MARCUS~1\AppData\Local\Temp\xmlXPathInitr9vv6tr5.obj
    xmlXPathInitr9vv6tr5.c
    C:\Users\MARCUS~1\AppData\Local\Temp\xmlXPathInitr9vv6tr5.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.11.25503\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    *********************************************************************************
    Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
    *********************************************************************************

(full command output: https://pastebin.com/raw/FA2hvtwQ)

I've got VS Community installed, could this be part of the problem

PS sorry about the formatting

scoder (scoder) wrote :

Well, if you read the big fat warning in the output, then it's clear that lxml cannot be built because you do not have the library dependencies installed. See the installation instructions, or just wait for Py3.7 to be released, as I'll probably provide binary wheels then.

Changed in lxml:
status: New → Invalid
Matt (mattwmaster58) wrote :

How would I install those? Shouldn't the 'complete package' be available from pip?

Matt (mattwmaster58) wrote :

Edit: In my foolishness I failed to read the entire comment. sorry

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers