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

lxml_clean_html dependency issue in nbconvert lower version (6.5.1) #2148

Open
sjkim2322 opened this issue May 8, 2024 · 1 comment
Open

Comments

@sjkim2322
Copy link

from version 7.1.0, the lxml dependency has been removed, so this issue is unlikely to occur.

but In my case, I am using elyra, and the version of nbconvert used by elyra is fixed to 6.5.1.

The install requirement for nbconvert version 6.5.1 does not specify the lxml version.

lxml requires the lxml_html_clean dependency starting from version 5.2.0.

I can additionally install the lxml_html_clean module myself, but as mentioned above, I am using elyra and it is not easy to install additional modules.

Therefore, I would like to ask if there is an easy way to solve this problem in nbconvert.

@takluyver
Copy link
Member

It looks like Elyra is pinning one specific version of nbconvert. The dependencies of an existing version can't be changed, so even if this was fixed for 6.5.x it would get a new version number and need a change in Elyra.

Normally, if you pin dependencies to very specific versions, you also pin transient dependencies to avoid just this kind of issue from newer versions of transient dependencies. There are tools that can help manage that, like pip-tools which works with familiar requirements.txt files, or poetry which has its own lock file format.

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

2 participants