sinedie / SRTranslator

SRT files translator
Do What The F*ck You Want To Public License
212 stars 25 forks source link

Trying to install - Building wheel for lxml (pyproject.toml) ... error #69

Closed eXpressionist closed 11 months ago

eXpressionist commented 11 months ago

W10 x64, Python 3.12. I've installed Microsoft C++ Build Tools with "C++ build tools". Then trying to install SRTranslator via pip and getting error

<...>
Building wheel for lxml (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for lxml (pyproject.toml) did not run successfully.
  │ exit code: 1

<...>

 C:\Users\EXPRES~1\AppData\Local\Temp\xmlXPathInittcl7bd0n.c(1): fatal error C1083: cannot open include file: libxml/xpath.h: No such file or directory,
      *********************************************************************************
      Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
      *********************************************************************************

I've installed lxml via pip, and also did pip install --upgrade setuptools - doesn't help :( Tried to manually install from www.lfd.uci.edu lxml-4.9.0-cp311-cp311-win_amd64.whl and lxml-4.9.0-cp311-cp311-win32.whl - both are "not a supported wheel on this platform".

sinedie commented 11 months ago

Seems like lxml library isn't available in python 3.12 (yet). Try downgrade python (3.10 maybe???) or ask the developers of that package.

Closing it due the issue is not from this package

eXpressionist commented 11 months ago

Just please change libxml==4.9.3 (actual version) in requirements and it should work.

p.s. works for me

sinedie commented 11 months ago

@eXpressionist done