Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2019, 03:36 PM   #1
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
[Viewer] TypeError: expected string or buffer

Hi, Kovid.

I'm getting this error when trying to open a specific book (just one, from what I've noticed) from the GUI. Looks like a cache problem. It opens fine when I use a different cache folder.

Any hints?

Spoiler:

calibre, version 4.2.0
ERRO: Exceção sem tratamento: <b>TypeError</b>:expected string or buffer

calibre 4.2 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: pt_BR
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 21, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 21, 0) && Diaps Editing Toolbag (0, 3, 5) && Find Duplicates (1, 6, 3) && Skoob Books (1, 3, 1) && EpubMerge (2, 5, 0) && ACE (1, 0, 8) && Open With (1, 5, 10) && EpubSplit (2, 7, 0) && Goodreads (1, 4, 0) && ScrambleEbook (0, 4, 1) && Set KFX metadata (from KFX Output) (1, 32, 0) && KFX Output (1, 32, 0) && LanguageTool (0, 1, 0) && KindleUnpack - The Plugin (0, 81, 5) && Skoob Sync (0, 2, 7) && EpubCheck (0, 2, 1) && Count Pages (1, 8, 3) && KFX metadata reader (from KFX Input) (1, 21, 0) && KFX Input (1, 21, 0) && Goodreads Sync (1, 12, 1) && TTS to MP3 (0, 1, 3)
Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\ui.py", line 346, in load_finished
File "site-packages\calibre\gui2\viewer\web_view.py", line 60, in set_book_path
File "site-packages\calibre\utils\serialize.py", line 118, in json_loads
File "json\__init__.py", line 352, in loads
File "json\decoder.py", line 364, in decode
TypeError: expected string or buffer

thiago.eec is offline   Reply With Quote
Old 10-31-2019, 10:05 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looks like a corrupted cache folder. Delete the cache and you should be fine.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-01-2019, 04:20 AM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
It worked. Thanks.
thiago.eec is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring Metadata Failed (internal buffer error) yonkyunior Calibre 1 10-29-2018 04:16 AM
WebReaderViewer - built in image/frame/string/html viewer for kindle Aeris Kindle Developer's Corner 13 11-05-2013 02:11 AM
Mathch a string while ignoring some character in that string? ElMiko Sigil 12 12-01-2011 10:05 PM
Calibre: TypeError:expected string or buffer Jonimeesermann Calibre 4 10-02-2010 11:40 AM
TypeError: 'dict' object is not callable sauravishal Calibre 3 01-23-2009 06:21 PM


All times are GMT -4. The time now is 05:22 AM.


MobileRead.com is a privately owned, operated and funded community.