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

Obvious (provisorical) fix to lxml dependency incompatibility problem. #3733

Conversation

aknrdureegaesr
Copy link
Contributor

@aknrdureegaesr aknrdureegaesr commented Jan 10, 2024

Pull Request Checklist

  • I’ve read the guidelines for contributing.
  • I updated AUTHORS.txt and CHANGES.txt (if the change is non-trivial) and documentation (if applicable). Not applicable.
  • I tested my changes.

Description

For now, pin the lxml version to the last 4.x.y to maintain compatibility with existing code.

This is a band-aid. No root cause analysis of the incompatibility has been made yet.

This pertains to, but does not yet solve, #3732.


# remove when the lxml 5.x.y compatibility has been re-established
# via https://github.com/getnikola/nikola/issues/3732
lxml>=4.9.4,<5.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why versions from 3.3.5 to 4.9.3 are not OK?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test that, so I cannot answer that question.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For philosophy:

  • Nikola's tests only ever test against the latest versions of all dependencies.
  • I cringe at promising functionality for which there are no tests whatsoever.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 9 of the file you edited says lxml>=3.3.5.

@Kwpolska
Copy link
Member

Superseded by #3735 (which introduced a workaround for the lxml bug).

@Kwpolska Kwpolska closed this Jan 10, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants