View Single Post
Old 01-03-2020, 07:06 PM   #45
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 gldnbrwncouches View Post
I'm having an issue installing this plugin in Calibre 4.5 (installed from Fedora 31 distro repo). After downloading the plugin I made the following changes in lines 10-13 in __init__.py to make it compatible with import statements for Python 3 libraries.

import time, re
from html.parser import HTMLParser
from urllib.parse import quote, unquote
from queue import Queue, Empty


After those changes and re-zipping the files, it seems to install and work just fine for me. Has anyone else had this issue? Should it have worked fine in my version of Calibre without the changes I made? Is there a repo where I can submit a pull request (maybe one that can somehow import according to python version)?

Thanks @davidfor for this excellent plugin!
Those are roughly the changes I have for the Python 3, but with checks to be backwardly compatible. I haven't been any hurry to release it. I will in the next week if people are using Python 3 already.
davidfor is offline   Reply With Quote