athrowaway2021 / comix

Seamlessly download and de-drm comics and manga from Kindle in highest possible quality
MIT License
61 stars 20 forks source link

Fix for error: ModuleNotFoundError: No module named 'Crypto' #17

Closed KaHooli closed 2 years ago

KaHooli commented 2 years ago

Hi, Just came back to this script after not using it for quite some time. I came across an error and thought I'd advise how I got around it incase others have the same issue.

After setting up the script as per the README, when trying to run the script I got this issue...

Traceback (most recent call last):
  File "/comix/comix.py", line 12, in <module>
    import amazon_auth
  File "/comix/amazon_auth.py", line 1, in <module>
    from Crypto.Cipher import AES
ModuleNotFoundError: No module named 'Crypto'

I found installing PyCryptodome package by running pip install pycryptodome, and now I get this...

/comix# python comix.py
usage:
comix <item_id>
 - Downloads the content for the specified item id
comix list
 - Lists all content associated with the current account

👍