Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2020, 10:09 PM   #1396
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Macondo View Post
Latest plugin doesnt work for me.

That doesn't help much. Firstly, I need to know what you were actually doing. What function you were trying to run. Then, I need the details of the error message. Press the "Copy to clipboard" and post that. Or at least press the "Show details" button before taking the screenshot. Also, knowing what version of calibre and what OS you are running on would be good.
davidfor is offline   Reply With Quote
Old 09-30-2020, 11:03 PM   #1397
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,156
Karma: 1900479
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Quote:
Originally Posted by davidfor View Post
From memory, I removed some of the display of the conversation with GR. That will have shortened the log. But, for the larger log, upload it somewhere and send me a link to that that location. If you have problems with that send some snippets:

Find the line with "sync_shelves - start" and send then next 100 lines.

Find the line with "sync_shelves - returned from ChooseShelvesToSyncDialog" and send up to the line with "sync_shelves - finished _update_goodreads_ids". That should only be a few lines.
I sent you a pm with a Dropbox link that has everything you could possibly need or want to either reproduce the problem, or just explain it. It may take a bit of time to update since I have crap internet and it is slow to upload. SO if you are reading this in close to real time as it is posted wait a bit.
Rellwood is offline   Reply With Quote
Old 10-03-2020, 04:30 AM   #1398
Macondo
Member
Macondo began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2017
Device: kindle paperwhite 3
Quote:
Originally Posted by davidfor View Post
That doesn't help much. Firstly, I need to know what you were actually doing. What function you were trying to run. Then, I need the details of the error message. Press the "Copy to clipboard" and post that. Or at least press the "Show details" button before taking the screenshot. Also, knowing what version of calibre and what OS you are running on would be good.
First I added books in calibre (portable version) and I tried to link book with goodreads.
Here is log from error:
Quote:
calibre, version 5.1.0
ERROR: Unhandled exception: <b>SSLError</b>:[ASN1] nested asn1 error (_ssl.c:4145)

calibre 5.1 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 10, 0) && DOC Input (1, 0, 1) && EpubMerge (2, 11, 0) && EpubSplit (2, 9, 0) && Extract ISBN (1, 5, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 7, 2) && Goodreads (1, 5, 1) && Goodreads Sync (1, 14, 3) && Goodreads_Rating (3, 1, 0) && Hyphenate This! (0, 1, 3) && KindleUnpack - The Plugin (0, 82, 3) && Manage Series (1, 2, 11) && Quality Check (1, 10, 1) && Reading List (1, 6, 13)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.action", line 458, in search_goodreads_to_link_book
File "calibre_plugins.goodreads_sync.action", line 480, in search_to_link_books
File "calibre_plugins.goodreads_sync.core", line 421, in get_goodreads_id_for_isbn
File "calibre_plugins.goodreads_sync.core", line 178, in _request_get
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 1561, in request
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 999, in __init__
File "http\client.py", line 1394, in __init__
File "ssl.py", line 750, in create_default_context
File "ssl.py", line 574, in load_default_certs
File "ssl.py", line 566, in _load_windows_store_certs
ssl.SSLError: [ASN1] nested asn1 error (_ssl.c:4145)
Macondo is offline   Reply With Quote
Old 10-08-2020, 06:07 PM   #1399
alerum68
Member
alerum68 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Nov 2019
Device: Kindle Fire
Failed to Upload Tags to Shelf

Hello,

Just updated to Calibre 5.2. Tried to run Upload Tags to Shelf and got the following error:

calibre, version 5.2.0
ERROR: Unhandled exception: <b>TypeError</b>:can only concatenate str (not "bytes") to str

calibre 5.2 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 34, 0) && Package KFX (from KFX Input) (1, 34, 0) && Audit Log (1, 0, 15) && Clean Metadata (0, 0, 6) && Consolidate All Library Metadata (2, 0, 37) && EpubCheck (0, 2, 3) && Extract ISBN (1, 5, 0) && Find Duplicates (1, 7, 2) && Goodreads Sync (1, 14, 3) && Job Spy (1, 0, 184) && KFX metadata reader (from KFX Input) (1, 34, 0) && KFX Input (1, 34, 0) && Set KFX metadata (from KFX Output) (1, 44, 0) && KFX Output (1, 44, 0) && Kindle Collections (1, 7, 29) && Library Genesis (1, 3, 0) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 1) && MultiColumnSearch (1, 0, 84) && Prettify Cover (1, 5, 0) && Quality Check (1, 10, 1) && Quick Preferences (1, 4, 1) && Resize Cover (1, 1, 0) && Save To Format (0, 0, 6) && View Manager (1, 5, 7)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.action", line 812, in upload_tags
File "calibre_plugins.goodreads_sync.core", line 480, in get_review_book
File "calibre_plugins.goodreads_sync.core", line 181, in _request_get
File "calibre_plugins.goodreads_sync.core", line 195, in _handle_failure
TypeError: can only concatenate str (not "bytes") to str
alerum68 is offline   Reply With Quote
Old 10-08-2020, 09:49 PM   #1400
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by alerum68 View Post
Hello,

Just updated to Calibre 5.2. Tried to run Upload Tags to Shelf and got the following error:

calibre, version 5.2.0
ERROR: Unhandled exception: <b>TypeError</b>:can only concatenate str (not "bytes") to str

calibre 5.2 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 34, 0) && Package KFX (from KFX Input) (1, 34, 0) && Audit Log (1, 0, 15) && Clean Metadata (0, 0, 6) && Consolidate All Library Metadata (2, 0, 37) && EpubCheck (0, 2, 3) && Extract ISBN (1, 5, 0) && Find Duplicates (1, 7, 2) && Goodreads Sync (1, 14, 3) && Job Spy (1, 0, 184) && KFX metadata reader (from KFX Input) (1, 34, 0) && KFX Input (1, 34, 0) && Set KFX metadata (from KFX Output) (1, 44, 0) && KFX Output (1, 44, 0) && Kindle Collections (1, 7, 29) && Library Genesis (1, 3, 0) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 1) && MultiColumnSearch (1, 0, 84) && Prettify Cover (1, 5, 0) && Quality Check (1, 10, 1) && Quick Preferences (1, 4, 1) && Resize Cover (1, 1, 0) && Save To Format (0, 0, 6) && View Manager (1, 5, 7)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.action", line 812, in upload_tags
File "calibre_plugins.goodreads_sync.core", line 480, in get_review_book
File "calibre_plugins.goodreads_sync.core", line 181, in _request_get
File "calibre_plugins.goodreads_sync.core", line 195, in _handle_failure
TypeError: can only concatenate str (not "bytes") to str
That is a Python 3 related change but is only hit when there is a problem getting to GR. The attached beta should fix it. Can you try it and tell me how it goes.

Last edited by davidfor; 10-24-2020 at 02:12 AM. Reason: Removed beta as there is a later version.
davidfor is offline   Reply With Quote
Old 10-09-2020, 08:29 AM   #1401
alerum68
Member
alerum68 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Nov 2019
Device: Kindle Fire
Quote:
Originally Posted by davidfor View Post
That is a Python 3 related change but is only hit when there is a problem getting to GR. The attached beta should fix it. Can you try it and tell me how it goes.
Will try it after work tonight and let you know.
alerum68 is offline   Reply With Quote
Old 10-11-2020, 01:40 PM   #1402
ptomic
Member
ptomic began at the beginning.
 
ptomic's Avatar
 
Posts: 18
Karma: 10
Join Date: Jul 2012
Device: Kindle Touch, Kindle PW 1, Kindle PW 3, iphone
I update plugin and Calibre, and when I try to find description for adding new books to bookshelf I receive on attached picture.
Here is log from Calibre.

Code:
calibre, version 5.2.0
ERROR: Unhandled exception: <b>AttributeError</b>:module 'urllib' has no attribute 'quote_plus'

calibre 5.2 Portable embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.18362')
Python 3.8.5
Windows: ('10', '10.0.18362', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Barnes & Noble (1, 2, 16) && Count Pages (1, 10, 0) && Extract ISBN (1, 5, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 7, 2) && Goodreads (1, 5, 1) && Goodreads Sync (1, 14, 3) && Manage Series (1, 2, 11) && Reading List (1, 6, 15)
Traceback (most recent call last):
  File "calibre_plugins.goodreads_sync.dialogs", line 1089, in search_on_goodreads
AttributeError: module 'urllib' has no attribute 'quote_plus'
Attached Thumbnails
Click image for larger version

Name:	download.png
Views:	168
Size:	50.9 KB
ID:	182621  
ptomic is offline   Reply With Quote
Old 10-11-2020, 08:10 PM   #1403
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ptomic View Post
I update plugin and Calibre, and when I try to find description for adding new books to bookshelf I receive on attached picture.
Here is log from Calibre.

Code:
calibre, version 5.2.0
ERROR: Unhandled exception: <b>AttributeError</b>:module 'urllib' has no attribute 'quote_plus'

calibre 5.2 Portable embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.18362')
Python 3.8.5
Windows: ('10', '10.0.18362', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Barnes & Noble (1, 2, 16) && Count Pages (1, 10, 0) && Extract ISBN (1, 5, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 7, 2) && Goodreads (1, 5, 1) && Goodreads Sync (1, 14, 3) && Manage Series (1, 2, 11) && Reading List (1, 6, 15)
Traceback (most recent call last):
  File "calibre_plugins.goodreads_sync.dialogs", line 1089, in search_on_goodreads
AttributeError: module 'urllib' has no attribute 'quote_plus'
I could have sworn I fixed that. The attached beta should fix it. Please test and tell me how it goes.

Last edited by davidfor; 10-24-2020 at 02:13 AM. Reason: Removed beta as there is a later version.
davidfor is offline   Reply With Quote
Old 10-12-2020, 02:57 AM   #1404
ptomic
Member
ptomic began at the beginning.
 
ptomic's Avatar
 
Posts: 18
Karma: 10
Join Date: Jul 2012
Device: Kindle Touch, Kindle PW 1, Kindle PW 3, iphone
Quote:
Originally Posted by davidfor View Post
I could have sworn I fixed that. The attached beta should fix it. Please test and tell me how it goes.
Should I rename this file, remove beta, and replace original file in \Calibre\Calibre Settings\plugins\?
ptomic is offline   Reply With Quote
Old 10-12-2020, 05:01 AM   #1405
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ptomic View Post
Should I rename this file, remove beta, and replace original file in \Calibre\Calibre Settings\plugins\?
Do a manual install using the instructions in Introduction to plugins.
davidfor is offline   Reply With Quote
Old 10-12-2020, 05:10 AM   #1406
ptomic
Member
ptomic began at the beginning.
 
ptomic's Avatar
 
Posts: 18
Karma: 10
Join Date: Jul 2012
Device: Kindle Touch, Kindle PW 1, Kindle PW 3, iphone
Quote:
Originally Posted by davidfor View Post
Do a manual install using the instructions in Introduction to plugins.
Ok, should I remove non-beta version before I install this one?

UPDATE: Works like a charm. Thank you.

Last edited by ptomic; 10-12-2020 at 05:21 AM.
ptomic is offline   Reply With Quote
Old 10-12-2020, 12:47 PM   #1407
Terry Brown
Enthusiast
Terry Brown began at the beginning.
 
Posts: 41
Karma: 10
Join Date: Jun 2010
Location: Portland, OR
Device: M1 Max Mac Studio, iPad Pro 2018 12.9, iPhone 7
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
Terry Brown is offline   Reply With Quote
Old 10-12-2020, 06:54 PM   #1408
Macondo
Member
Macondo began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2017
Device: kindle paperwhite 3
OK, same problem which I desribed in post https://www.mobileread.com/forums/sh...postcount=1398
I didn't get the answer so I had to try to inspect problem more deeper by myself (even I'm not developer) and to find where mistake is. And I found it, just do not know how to solve it. Problem is with authorisation with goodreads. Here are details what I tried.

So, I tried several options:
Option one: uninstall goodreads and goodreads_sync plugins and install it again.
This didn't work. Again when I tried to link book to goodreads, I get same message:

here is the log I get in show details:
Quote:
calibre, version 5.2.0
ERROR: Unhandled exception: <b>SSLError</b>:[ASN1] nested asn1 error (_ssl.c:4145)

calibre 5.2 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 10, 0) && DOC Input (1, 0, 1) && EpubMerge (2, 11, 0) && EpubSplit (2, 9, 0) && Extract ISBN (1, 5, 0) && Fantastic Fiction (1, 4, 0) && Find Duplicates (1, 7, 2) && Goodreads (1, 5, 1) && Goodreads Sync (1, 14, 6) && Goodreads_Rating (3, 1, 0) && Hyphenate This! (0, 1, 3) && KindleUnpack - The Plugin (0, 82, 3) && Manage Series (1, 2, 11) && Quality Check (1, 10, 1) && Reading List (1, 6, 15)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.action", line 458, in search_goodreads_to_link_book
File "calibre_plugins.goodreads_sync.action", line 480, in search_to_link_books
File "calibre_plugins.goodreads_sync.core", line 421, in get_goodreads_id_for_isbn
File "calibre_plugins.goodreads_sync.core", line 178, in _request_get
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 1561, in request
File "calibre_plugins.goodreads_sync.httplib2.__init__" , line 999, in __init__
File "http\client.py", line 1394, in __init__
File "ssl.py", line 750, in create_default_context
File "ssl.py", line 574, in load_default_certs
File "ssl.py", line 566, in _load_windows_store_certs
ssl.SSLError: [ASN1] nested asn1 error (_ssl.c:4145)
option two: I started my backup calibre portable 4.23.0 on same computer, with plugins goodreads 1.4.0 and goodreads_sync 1.14.3 and everything working just fine.

option three: I installed calibre portable 5.2.0 in another folder on same computer, installed latest goodreads plugins from calibre, and then I saw another problem (with authorization with goodreads). And I get same message:
and the same log file for error.
Even when I tried to click on Help (in the right top corner) I get message:


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

calibre 5.2 Portable embedded-python: True is64bit: False
Windows-10-10.0.19041-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: en_GB
Successfully initialized third party plugins: Goodreads (1, 5, 1) && Goodreads Sync (1, 14, 3)
Traceback (most recent call last):
File "calibre_plugins.goodreads_sync.config", line 1041, in help_link_activated
File "calibre_plugins.goodreads_sync.action", line 873, in show_help
File "calibre_plugins.goodreads_sync.action", line 871, in get_help_file_resource
TypeError: write() argument must be str, not bytes
I tried one more option:
I installed latest portable version on another computer, installed calibre plugins for goodreads from it, I authorized app with goodreads with no problem, linked book but when I tried to search for another edition I get message like ptomic, so I installed google_sync_beta from above post and again everything works fine.

So I am really stuck how is it possible and how to solve it. First I started thinking that problem is my computer, but again how is it possible that on same computer, in one version everything works fine in another not, and on another computer that version works just fine.
Macondo is offline   Reply With Quote
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,907
Karma: 47303748
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
Old 10-13-2020, 12:54 AM   #1410
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Macondo View Post
OK, same problem which I desribed in post https://www.mobileread.com/forums/sh...postcount=1398
I didn't get the answer so I had to try to inspect problem more deeper by myself (even I'm not developer) and to find where mistake is. And I found it, just do not know how to solve it. Problem is with authorisation with goodreads. Here are details what I tried.

So, I tried several options:
Option one: uninstall goodreads and goodreads_sync plugins and install it again.
This didn't work. Again when I tried to link book to goodreads, I get same message:

here is the log I get in show details:


option two: I started my backup calibre portable 4.23.0 on same computer, with plugins goodreads 1.4.0 and goodreads_sync 1.14.3 and everything working just fine.

option three: I installed calibre portable 5.2.0 in another folder on same computer, installed latest goodreads plugins from calibre, and then I saw another problem (with authorization with goodreads). And I get same message:
and the same log file for error.
Even when I tried to click on Help (in the right top corner) I get message:




I tried one more option:
I installed latest portable version on another computer, installed calibre plugins for goodreads from it, I authorized app with goodreads with no problem, linked book but when I tried to search for another edition I get message like ptomic, so I installed google_sync_beta from above post and again everything works fine.

So I am really stuck how is it possible and how to solve it. First I started thinking that problem is my computer, but again how is it possible that on same computer, in one version everything works fine in another not, and on another computer that version works just fine.
The error with the help should be fixed in the beta I just uploaded in response to @Terry Brown's report.

The other error is a problem loading the certificates on your computer. I can't tell if they are out of date, or something else. In the past, a lot of the certificate problems are solved by browsing to the site using Microsofts browser. This can update the central store which is what the plugin is using. The other browsers do not do this. This might solve the problem for you.

A search for the error does suggest you might have a certificate that is triggering the problem. But, it also suggests the way this is being handled in the code isn't the best. I'll look at it to try and work out how to solve this. But, try the browser to see if that fixes it.
davidfor is offline   Reply With Quote
Reply

Tags
calibre, goodreads


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Search the Internet kiwidude Plugins 433 04-01-2024 05:48 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-16-2024 11:47 PM
[GUI Plugin] Book Sync **Deprecated** kiwidude Plugins 111 06-07-2011 07:47 PM


All times are GMT -4. The time now is 06:51 PM.


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