View Single Post
Old 10-12-2020, 08:50 PM   #1409
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Terry Brown View Post
I loaded the beta from post # 1403. When I try to view the help file, it crashes with this:

calibre, version 5.2.0
ERROR: Unhandled exception: <b>TypeError</b>:write() argument must be str, not bytes

calibre 5.2 embedded-python: True is64bit: True
macOS-10.15.6-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '19.6.0', 'Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64')
Python 3.8.5
OSX: ('10.15.6', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 10, 0) && Goodreads (1, 5, 1) && Goodreads Sync (1, 14, 6) && Set KFX metadata (from KFX Output) (1, 44, 0) && KFX Output (1, 44, 0) && Manage Series (1, 2, 11) && Quality Check (1, 10, 1) && Save To Format (0, 0, 6)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.action", line 873, in show_help
url = 'file:///' + get_help_file_resource()
File "calibre_plugins.goodreads_sync.action", line 871, in get_help_file_resource
f.write(file_data)
TypeError: write() argument must be str, not bytes
I fixed the same error in another plugin on the weekend and I should have fixed this. The attached beta will fix this.

Last edited by davidfor; 12-25-2020 at 11:37 PM.
davidfor is offline   Reply With Quote