View Single Post
Old 07-09-2020, 06:10 AM   #207
bwrsandman
Junior Member
bwrsandman began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2020
Device: Kobo Aura H2O Edition 2
python3 issue

Great Plugin!

One issue I ran into using the experimental python3 version of calibre is to do with the string and None comparisons done in zim_dialog.py

Code:
Linux-5.6.13-arch1-1-x86_64-with-glibc2.2.5 Linux ('64bit', 'ELF')
('Linux', '5.6.13-arch1-1', '#1 SMP PREEMPT Thu, 14 May 2020 06:52:53 +0000')
Python 3.8.3
Interface language: None
Successfully initialized third party plugins: Zotero Metadata Importer (1, 0, 65)
Traceback (most recent call last):
  File "calibre_plugins.zotero_metadata_importer.ui", line 137, in zmi_control
  File "calibre_plugins.zotero_metadata_importer.zmi_dialog", line 126, in __init__
TypeError: '>' not supported between instances of 'NoneType' and 'str'
This is easily fixed by replacing the two lines which do this:
Code:
# line 126
if prefs[k] is None or not prefs[k] > " ":
# line 131
if self.myparentprefs[k] is None or not self.myparentprefs[k] > " ":
bwrsandman is offline   Reply With Quote