yingziwu / doujinshi_metadata_plugins

the calibre metadata plugins for doujinshi
GNU General Public License v3.0
58 stars 11 forks source link

It does not work in Calibre 5.3 #8

Open Kurohisui opened 3 years ago

Kurohisui commented 3 years ago

Decided to upload Calibre to 5.3 and the plug-in won't load.

calibre, version 5.3.0 ERROR: Unhandled exception: ImportError:cannot import name 'urlencode' from 'urllib' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\urllib__init__.pyc)

calibre 5.3 [64bit] embedded-python: True is64bit: True Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE') ('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: Embed Comic Metadata (1, 5, 0) Traceback (most recent call last): File "calibre\gui2\preferences\plugins.py", line 317, in add_plugin File "calibre\customize\ui.py", line 472, in add_plugin File "calibre\customize\ui.py", line 61, in load_plugin File "calibre\customize\zipplugin.py", line 285, in load File "importlib__init.py", line 127, in import_module File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "calibre\customize\zipplugin.py", line 184, in exec_module File "calibre_plugins.dummy1.init", line 16, in ImportError: cannot import name 'urlencode' from 'urllib' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\urllib\init__.pyc)`

zhjcreator commented 3 years ago

https://1drv.ms/u/s!AhtiqGnVX4ssm3CWNsvAUM1tgsbr?e=YInimv I used 2tp3.py to convert it into python3.Maybe helpful。

LittleFreak commented 3 years ago

https://1drv.ms/u/s!AhtiqGnVX4ssm3CWNsvAUM1tgsbr?e=YInimv I used 2tp3.py to convert it into python3.Maybe helpful。

This fixed it for me, thanks :) I can now install and use it in Calibre.

xerance commented 2 years ago

Anyone got this working for callibre 5.42?