aerkalov/ebooklib

epub does not function with Kivy

Opened this issue · 1 comments

Hi,
I am trying to read a well formed epub using ebooklib in a GUI program usind Kivy and I am getting the follwing error:

book = epub.read_epub(sys.argv[1])
^^^^^^^^^^^^^^
AttributeError: module 'ebooklib.epub' has no attribute 'read_epub'
To test, I used the parse.py to make sure the epub is correct and it worked., but within my code it gives me the above error.
As a test I just import the kivy modules that I need in my version of parse.py. Then the new version just having import statements caused the above error again. I am attaching my version of parse.py. If you run it as it is it won't work, if you delete the import statments, it will work.
parse.py.gz

Hey, check to make sure your import statment is from ebooklib import epub and not import ebooklib as epub