EpubImage.__init__() got an unexpected keyword argument 'uid'
superiums opened this issue · 5 comments
superiums commented
Traceback (most recent call last):
File "/opt/code/py/docSpider/ebook.py", line 19, in <module>
img = epub.EpubImage(uid='image_1', file_name='static/ebooklib.gif', media_type='image/gif', content=image_content)
TypeError: EpubImage.__init__() got an unexpected keyword argument 'uid'
[Done] exited with code=1 in 0.053 seconds
EpubImage init function takes no params.
version: 0.17.1-2
The init function of EpubImage is:
class EpubImage(EpubItem):
"""
Represents Image in the EPUB file.
"""
def __init__(self):
super(EpubImage, self).__init__()
seems missing all args.
SaulLawliet commented
Try replace pip with source code
hernanescu commented
Hi! I'm having the same issue, any recommended way of fixing this?
SaulLawliet commented
Hi! I'm having the same issue, any recommended way of fixing this?
There is a difference between "pip" and "source code", try to use source code
aerkalov commented
That version has not been released yet. You can install the master branch from the GitHub until it gets released:
pip install git+https://github.com/aerkalov/ebooklib
vorte commented
I just ran into this as well.
It looks like there hasn't been a release for ebooklib in a while, is it possible to get a new version published? 🙏