marzer / poxy

Documentation generator for C++
https://pypi.org/project/poxy
MIT License
135 stars 5 forks source link

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

Closed wroyca closed 11 months ago

wroyca commented 1 year ago
"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

marzer commented 1 year ago

Huh? lxml is listed as a requirement in requirements.txt, and is included by the pip install script. This likely isn't a bug in poxy, but something amiss with your local python environment.

marzer commented 1 year ago

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

marzer commented 1 year ago

Ah, that page lists the binary page you've linked above. I see now 😅

Not sure what a good solve for this is, since I can't automate that in the installer (I don't think). I guess just documenting it?

wroyca commented 1 year ago

Ah, that page lists the binary page you've linked above. I see now 😅

Not sure what a good solve for this is, since I can't automate that in the installer (I don't think). I guess just documenting it?

Seems reasonable :)

marzer commented 1 year ago

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...

wroyca commented 1 year ago

I tried but it didn't work, I ended up with more gibberish errors. Unfortunately, I don't have the logs anymore, but it may be worth trying again

marzer commented 1 year ago

it may be worth trying again

Yup. I'd like to test this on a 'clean room' PC at some point, one that I haven't been doing any dev tasks on - I'm concerned that all my use of Poxy on windows has always been on machines that I've also done dev stuff on and may have accidently installed the libxml prerequisites through some other means.

wroyca commented 11 months ago

No longer the case, closing. :)