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

Logs are cluttered with FutureWarnings for ebooklib package #7

Open
rhigman opened this issue Nov 11, 2024 · 0 comments
Open

Logs are cluttered with FutureWarnings for ebooklib package #7

rhigman opened this issue Nov 11, 2024 · 0 comments

Comments

@rhigman
Copy link
Member

rhigman commented Nov 11, 2024

In every run, the following warning is raised, sometimes multiple times:

/usr/local/lib/python3.11/site-packages/ebooklib/epub.py:1410: FutureWarning: This search incorrectly ignores the root element, and will be fixed in a future version.  If you rely on the current behaviour, change it to './/xmlns:rootfile[@media-type]'
  for root_file in tree.findall('//xmlns:rootfile[@media-type]', namespaces={'xmlns': NAMESPACES['CONTAINERNS']}):

Unfortunately this is due to a bug in the ebooklib package, which hasn't yet been fixed in a released version: aerkalov/ebooklib#307

Once a release with the fix is made, we should upgrade the dependency.

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

1 participant