'How can I read an epub book in python

How can I read an epub book and open it using python. I'm not able to implement EbookLib 0.15 from https://pypi.python.org/pypi/EbookLib/0.15

Here's the code I'm trying

from ebooklib import epub 
book = epub.read_epub('test.epub')

I get the following error:

AttributeError: 'builtin_function_or_method' object has no attribute 'rfind'


Solution 1:[1]

This error was due to a bug in ebooklib. The bug was fixed in ebooklib v16.0.

Solution 2:[2]

Read the first sentence of Read and save does not work section

did not put it in a link format because the website is unsecure

I don't think you can read epub files, kinda annoying.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 snakecharmerb
Solution 2 Talha Junaid