jankatins / knitpy

knitpy: Elegant, flexible and fast dynamic report generation with python
https://github.com/jankatins/knitpy
Other
368 stars 29 forks source link

AttributeError No attribute 'decodebytes' on knitpy.render() #41

Closed nehalecky closed 8 years ago

nehalecky commented 8 years ago

I can confirm that that #38 fixed the other issues, thank you much @JanSchulz.

Again, hope this issue reporting is beneficial. :)

In the call to .render :

In [14]: knitpy.render('knitpy_overview.pymd')
[TerminalIPythonApp] ERROR | Could not save a image
Traceback (most recent call last):
  File "/home/vagrant/vm/shared/knitpy/knitpy/documents.py", line 292, in add_image
    mimedata = base64.decodebytes(mimedata.encode())
AttributeError: 'module' object has no attribute 'decodebytes'
Out[14]: [u'/home/vagrant/vm/shared/knitpy/examples/knitpy_overview.html']

The call does generate the resultant documents, so that's great. How else can I help?

jankatins commented 8 years ago

I do hope I got that... I really need to get that unittesting going...

jankatins commented 8 years ago

Please checkout master again, this should be fixed...

nehalecky commented 8 years ago

Hi @JanSchulz, thank you! Yes, fixed via 265cf1773ba0e51a636efccbe0ad0d3c0f48c3e8