Created
April 1, 2015 22:32
-
-
Save epifanio/c69650fbf8b986b7a443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core.display import HTML | |
video = open("/home/epifanio/jupyter/mp_video_unh/time.mkv", "rb").read() | |
video_encoded = video_encoded = video.encode("base64").decode('ascii') | |
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<ipython-input-22-70cb70c5b2b2> in <module>() | |
1 from IPython.core.display import HTML | |
2 video = open("/home/epifanio/jupyter/mp_video_unh/time.mkv", "rb").read() | |
----> 3 video_encoded = video_encoded = video.encode("base64").decode('ascii') | |
AttributeError: 'bytes' object has no attribute 'encode' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment