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

6.8.0 doesn't want to install in Calibre 4.19 on *ubuntu 20.04. #1139

Closed
mjtalarczyk opened this issue Jun 29, 2020 · 2 comments
Closed

6.8.0 doesn't want to install in Calibre 4.19 on *ubuntu 20.04. #1139

mjtalarczyk opened this issue Jun 29, 2020 · 2 comments

Comments

@mjtalarczyk
Copy link

Calibre 4.19
Kubuntu 20.04
Python 3.8.2

Is this by design, or have I misconfigured?

Install log:

"calibre, version 4.99.4
ERROR: Unhandled exception: SyntaxError:invalid syntax (calibre_plugins.dedrm.init, line 168)

calibre 4.99.4 embedded-python: False is64bit: True
Linux-5.4.0-39-generic-x86_64-with-glibc2.29 Linux ('64bit', 'ELF')
('Linux', '5.4.0-39-generic', '#43-Ubuntu SMP Fri Jun 19 10:28:31 UTC 2020')
Python 3.8.2
Interface language: None
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/preferences/plugins.py", line 319, in add_plugin
plugin = add_plugin(path)
File "/usr/lib/calibre/calibre/customize/ui.py", line 472, in add_plugin
plugin = load_plugin(path_to_zip_file)
File "/usr/lib/calibre/calibre/customize/ui.py", line 61, in load_plugin
return loader.load(path_to_zip_file)
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 202, in load
m = importlib.import_module(plugin_module)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in _load_unlocked
File "", line 618, in _load_backward_compatible
File "/usr/lib/calibre/calibre/customize/zipplugin.py", line 179, in load_module
compiled = compile(code, 'calibre_plugins.%s.%s'%(plugin_name,
File "calibre_plugins.dedrm.init", line 168
print u"{0} v{1}: Copying needed library files from plugin's zip".format(PLUGIN_NAME, PLUGIN_VERSION)
^
SyntaxError: invalid syntax"

@ElleKayEm
Copy link

DeDRM isn't compatible with Python 3 yet. For now, use the non-beta release of calibre which still has Python 2.

@mjtalarczyk
Copy link
Author

Thanks for the quick response. I apologize for missing that point.

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

2 participants