Skip to content

Logs are cluttered with FutureWarnings for ebooklib package #7

@rhigman

Description

@rhigman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions