question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poxy looks for Libxml2 which is not installed by default on Windows

See original GitHub issue
"C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.35.32019\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -I/usr/include/libxml2 "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.35.32019\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.35.32019\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /TcC:\Users\wroy\AppData\Local\Temp\xmlXPathInitxjkf60b1.c /FoUsers\wroy\AppData\Local\Temp\xmlXPathInitxjkf60b1.obj
      xmlXPathInitxjkf60b1.c
      C:\Users\wroy\AppData\Local\Temp\xmlXPathInitxjkf60b1.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.35.32019\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      *********************************************************************************
      Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
      *********************************************************************************
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

Can be fixed by installing lxml-4.9.0-cp311-cp311-win_amd64.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
marzercommented, Dec 4, 2022

Hmmn, the lxml docs say this:

If you fail to build lxml on your MS Windows system from the signed and tested sources that we release, consider using the binary builds from PyPI […]

I’m confused about what this is saying. To me this means pip install lxml should do the right thing on windows? That tracks with my experience so far, at least, but I’m not sure if this is a case of correlation and not causation…

1reaction
marzercommented, Dec 4, 2022

Actually, wait. This suggests otherwise. Well, I’m confused; I use windows as my daily driver and haven’t run into this O_O

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Windows tell me that .dll file is not found when I just ...
It appears that your lib path for the DLL version of the lib appears prior to the static lib version.
Read more >
Problems installing XML::LibXML for Perl5.10 on Win32 platform
A dialog box pops up with message: "xmltestReaderSetSchema could not be found in libxml2.dll" - meaning libxml2 was looked up, but not loaded...
Read more >
Bug #988819 “[SRU] wrong path to libxml2.so.2 in mod_security
Debian has fixed this by updating apache2 to use dlopen's search path and changing mod-security.load to not use any absolute path. We have ......
Read more >
lxml FAQ - Frequently Asked Questions
On Linux systems, the default place to look is the index file /etc/xml/catalog, which most importantly provides a mapping from doctype IDs to...
Read more >
conda 4.7.10 cannot install packages, make new envs, or ...
and installed a package yesterday with no issues. (base) C:\Users\XXXXX>conda create -n slippy python=3.7 Collecting package metadata (repodata.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found