Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode error in mobi.py #5

Open
8b00001000 opened this issue Dec 6, 2016 · 0 comments
Open

Unicode error in mobi.py #5

8b00001000 opened this issue Dec 6, 2016 · 0 comments

Comments

@8b00001000
Copy link
Contributor

Traceback (most recent call last):
  File "pthcode/alexandria/alexandria", line 492, in <module>
    if __name__ == '__main__': main()
  File "pthcode/alexandria/alexandria", line 490, in main
    upload(filename, config, trackers)
  File "pthcode/alexandria/alexandria", line 438, in upload
    isbn = extract_isbn(filename)
  File "pthcode/alexandria/alexandria", line 408, in extract_isbn
    b = mobi.Book(filename)
  File "~/pthcode/alexandria/mobi.py", line 109, in __init__
    d = f.read(68)
  File "/usr/lib/python3.4/codecs.py", line 319, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 37-38: invalid continuation byte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant