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
Syntax error while adding the plugin DEDRM #986
Comments
What is the actual file you're trying to load? Should be DeDRM_plugin.zip. |
The DeDRM plugin is not currently compatible with Python 3. The official Linux release of calibre is available here: https://calibre-ebook.com/download_linux |
Okay, I installed calibre from the link above and I could install the plugin. |
DRM error or something else? If the book is AZW4 format, try the KindleUnpack plugin. |
It's AZW3 format...
|
DRM not removed. If it's from or for an E-ink Kindle, enter the Kindle's serial number into the DeDRM plugin's customization. If that's not it, we'll need to see an import log: |
I entered |
It's an E-ink Kindle (not a Fire)? And are you sure that's the device you selected when downloading? Try copy & pasting the serial number (removing spaces) from the website. |
It's a Paper White Type |
Are you re-adding the book to calibre? DRM removal happens when you add the book, not during conversion. If it's still not working, post an import log. |
Okay, I wasn't aware of the procedure. I removed and loaded the book again. |
Hello
I tried to load the plugin V6.6.3
calibre, version 4.8.0
ERROR: Unhandled exception: SyntaxError:invalid syntax (calibre_plugins.dedrm.init, line 167)
calibre 4.8 embedded-python: False is64bit: True
Linux-5.4.12-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One Linux ('64bit', 'ELF')
('Linux', '5.4.12-200.fc31.x86_64', '#1 SMP Tue Jan 14 20:07:04 UTC 2020')
Python 3.7.6
Linux: ('Fedora', '31', 'Thirty One')
Interface language: en_GB
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/gui2/preferences/plugins.py", line 318, in add_plugin
plugin = add_plugin(path)
File "/usr/lib64/calibre/calibre/customize/ui.py", line 472, in add_plugin
plugin = load_plugin(path_to_zip_file)
File "/usr/lib64/calibre/calibre/customize/ui.py", line 61, in load_plugin
return loader.load(path_to_zip_file)
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 202, in load
m = importlib.import_module(plugin_module)
File "/usr/lib64/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 668, in _load_unlocked
File "", line 638, in _load_backward_compatible
File "/usr/lib64/calibre/calibre/customize/zipplugin.py", line 180, in load_module
import_name), 'exec', dont_inherit=True)
File "calibre_plugins.dedrm.init", line 167
print u"{0} v{1}: Copying needed library files from plugin's zip".format(PLUGIN_NAME, PLUGIN_VERSION)
^
SyntaxError: invalid syntax
I don know what happened here...
The text was updated successfully, but these errors were encountered: