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

Stand-alone App (Windows) doesn't work #512

Closed
fireattack opened this issue May 15, 2018 · 6 comments
Closed

Stand-alone App (Windows) doesn't work #512

fireattack opened this issue May 15, 2018 · 6 comments

Comments

@fireattack
Copy link
Contributor

fireattack commented May 15, 2018

It says ""ImportError: No module named calibre_plugins.dedrm".

F:\DeDRM_App\DeDRM_lib>py -2 DeDRM_App.pyw B076HLXHM7_EBOK.azw
Using Library AlfCrypto DLL/DYLIB/SO
Traceback (most recent call last):
  File "DeDRM_App.pyw", line 66, in <module>
    from scriptinterface import decryptepub, decryptpdb, decryptpdf, decryptk4mo
bi
  File "F:\DeDRM_App\DeDRM_lib\lib\scriptinterface.py", line 14, in <module>
    import k4mobidedrm
  File "F:\DeDRM_App\DeDRM_lib\lib\k4mobidedrm.py", line 93, in <module>
    import kfxdedrm
  File "F:\DeDRM_App\DeDRM_lib\lib\kfxdedrm.py", line 20, in <module>
    from calibre_plugins.dedrm import ion
ImportError: No module named calibre_plugins.dedrm

F:\DeDRM_App\DeDRM_lib>
@fireattack
Copy link
Contributor Author

fireattack commented May 16, 2018

After some debugging I found that the problem is caused by the lack of backports.lzma that is used in ion.py.

(I'd agree the error info is a little bit confusing, since ion.py is called by kfxdedrm.py:

try:
    import ion
except:
    from calibre_plugins.dedrm import ion

And if ion.py errors out, it will try calibre_plugins.dedrm which doesn't exist.)

The problem is gone after I installed it (I did have some trouble to install that package on Windows due to peterjc/backports.lzma#22, but that's another story).

Thanks!

@ElleKayEm
Copy link

Looks like the stand-alone Mac app is having a similar issue #505.

@fireattack
Copy link
Contributor Author

@ElleKayEm Yeah. Also #482

@frioux
Copy link

frioux commented May 19, 2018

I don't think this should be closed. If the tools depend on ion.py, the docs don't clearly say so or how to install it.

@j-howell
Copy link

j-howell commented May 19, 2018

The ion.py module is included in the tools in order to support Amazon Kindle KFX format. The problem is that ion.py imports lzma and and if that is not present the fallback handling produces a misleading error message.

It appears that a fix has already been made (#489) and should be in the next release of the tools.

@frioux
Copy link

frioux commented May 19, 2018 via email

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