Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It does not work in Calibre 5.3 #8

Open
Kurohisui opened this issue Oct 22, 2020 · 3 comments
Open

It does not work in Calibre 5.3 #8

Kurohisui opened this issue Oct 22, 2020 · 3 comments

Comments

@Kurohisui
Copy link

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
Copy link

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

@LittleFreak
Copy link

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
Copy link

xerance commented May 19, 2022

Anyone got this working for callibre 5.42?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants