Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install under Python 3.11 due to failure building LXML #2606

Closed
Evolution0 opened this issue Nov 22, 2022 · 4 comments
Closed

Cannot install under Python 3.11 due to failure building LXML #2606

Evolution0 opened this issue Nov 22, 2022 · 4 comments

Comments

@Evolution0
Copy link

Describe the bug/problem
Cannot install under Python 3.11 due to being unable to build LXML 4.8.0 with Python 3.11.

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to install under Python 3.11

Environment (please complete the following information):

  • OS: Windows 10
  • Python version: Python 3.11
  • Calibre-Web version: 0.6.19
  • Docker container: None
  • Special Hardware: N/A
  • Browser: N/A

Additional context
This is an issue for a lot of projects under Python 3.11 that make use of LXML, its possible to get wheels of 4.9.0 for Python 3.11 even if I can't build it but not 4.8.0 (At least I could not) but calibre-web specifically is set to reject 4.9.0 as an option, is there a particular reason for that?

Switching to a 3.10 venv just as a sanity check and to confirm its not an issue with my system I can indeed install it without a problem, likely I will end up installing in a docker container in the meantime.

@OzzieIsaacs
Copy link
Collaborator

I limit the max versions of everything, because in the past some updates had breaking changes, so I‘d like to check it, before I allow it. In this case I don‘t expect any problems, so please try it

@dartie
Copy link

dartie commented Nov 28, 2022

At moment, the workaround is using a virtual environment with python3.8 and install calibreweb.

@devicemxl
Copy link

I download the whl file (for my pc architecture), open a cdm in downloads folder and install:
pip install lxml-4.9.0-cp311-cp311-win_amd64.whl
That's work for me.

@Evolution0
Copy link
Author

I download the whl file (for my pc architecture), open a cdm in downloads folder and install: pip install lxml-4.9.0-cp311-cp311-win_amd64.whl That's work for me.

Yeah at the time the cp311 wheel wasn't available, ~gohlke is what I usually use when I need a wheel of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants