View Single Post
Old 06-11-2011, 10:40 AM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,547
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by kovidgoyal
It should just import. Run

calibre-debug -c "from Crypto.Cipher import AES as _AES"

to see what the error is.
Code:
C:\>calibre-debug -c "from Crypto.Cipher import AES as _AES"
Python function terminated unexpectedly
  No module named distutils.util (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\debug.py", line 215, in main
  File "<string>", line 1, in <module>
  File "site.py", line 50, in load_module
  File "site-packages\pycrypto-2.3-py2.7-win32.egg\Crypto\Cipher\AES.py", line 7, in <module>
  File "site-packages\pycrypto-2.3-py2.7-win32.egg\Crypto\Cipher\AES.py", line 3, in __bootstrap__
  File "site.py", line 50, in load_module
  File "site-packages\pkg_resources.py", line 698, in <module>
  File "site-packages\pkg_resources.py", line 701, in Environment
  File "site-packages\pkg_resources.py", line 96, in get_supported_platform
  File "site-packages\pkg_resources.py", line 221, in get_build_platform
ImportError: No module named distutils.util
DiapDealer is online now   Reply With Quote