capacitedv / course-builder

Automatically exported from code.google.com/p/course-builder
0 stars 0 forks source link

ImportError: No module named Crypto.Cipher #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloading a .zip of the new 1.7.0 version and running localhost for the 
first time (on my Windows machine using GAE 1.9.8)

What is the expected output? What do you see instead?
Just testing out 1.7.0 from the Downloads page and it didn't all just magically 
work like previous versions have. I was hoping to visit localhost:8080 and see 
the PowerSearching example class in my browser.  Instead I just got errors in 
the logs about Crypto.Cipher:

  File "C:\...\coursebuilder\common\crypto.py", line 26, in <module>

    from Crypto.Cipher import AES

ImportError: No module named Crypto.Cipher

What version of the product are you using? On what operating system?
CourseBuilder version 1.7.0 from my Windows machine which has GAE 1.9.8 
installed (not the newest 1.9.12).  I'll try it on my Mac tomorrow and I'll try 
GAE 1.9.12.  Everything goes better from a Mac. :) Just wanted to share the 
heads up early on my unboxing issue.

Please provide any additional information below.

I expected a git clone to have library linking issues, but I thought the 
Download version had all the libraries included.  BTW for updates to my courses 
is the best way to just do a Download of the .zip and move content over or 
should I be using git.  I'm sufficiently comfortable with git, but I've used 
the Download version in the past to make the library installations (much) 
easier, but now that I see updating is important I'm wondering if that is still 
the recommended path. (sorry about this side question in a technical issue).  
Just curious on your two cents.

Thanks, 
 - Dave
  http://www.rosebotics.org/course

Original issue reported on code.google.com by fisherds on 13 Oct 2014 at 4:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
SAME ON MAC

*** Running dev_appserver with the following flags:
    --skip_sdk_update_check=yes --port=8080 --admin_port=8000 --clear_datastore=yes
Python command: /usr/bin/python2.7
INFO     2014-12-26 12:30:59,311 devappserver2.py:745] Skipping SDK update 
check.
INFO     2014-12-26 12:30:59,321 api_server.py:172] Starting API server at: 
http://localhost:53049
INFO     2014-12-26 12:30:59,327 dispatcher.py:186] Starting module "default" 
running at: http://localhost:8080
INFO     2014-12-26 12:30:59,329 admin_server.py:118] Starting admin server at: 
http://localhost:8000
ERROR    2014-12-26 12:31:02,233 wsgi.py:263] 
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/Users/fb/Google Drive/coursebuilder/main.py", line 26, in <module>
    from controllers import sites
  File "/Users/fb/Google Drive/coursebuilder/controllers/sites.py", line 117, in <module>
    import utils
  File "/Users/fb/Google Drive/coursebuilder/controllers/utils.py", line 36, in <module>
    from common.crypto import XsrfTokenManager
  File "/Users/fb/Google Drive/coursebuilder/common/crypto.py", line 26, in <module>
    from Crypto.Cipher import AES
ImportError: No module named Crypto.Cipher
INFO     2014-12-26 12:31:02,240 module.py:718] default: "GET /_ah/warmup 
HTTP/1.1" 500 -
INFO     2014-12-26 12:31:14,812 shutdown.py:45] Shutting down.
INFO     2014-12-26 12:31:14,812 api_server.py:588] Applying all pending 
transactions and saving the datastore
INFO     2014-12-26 12:31:14,812 api_server.py:591] Saving search indexes

Original comment by f...@boelens.co on 26 Dec 2014 at 12:32

GoogleCodeExporter commented 9 years ago
I have the same problem in Windows 7 and this work for me...

The problem is that you don´t have installed the Crypto package in your Python 
installation, so you need to install it.

There is one prebuilt python binaries for windows called PyCrypto, I get the 
installer here:  http://www.voidspace.org.uk/python/modules.shtml#pycrypto

It detects where is you Python installation is and creates all you need to run 
Crypto and all its dependencies like _AES.

Hope this info was helpful.

Original comment by proven...@gmail.com on 5 Jan 2015 at 10:39

GoogleCodeExporter commented 9 years ago
Thanks for filing.  We intend to address this in the next release.

Original comment by r...@google.com on 4 Feb 2015 at 6:40

GoogleCodeExporter commented 9 years ago
This link and the comment really helped me for Mac OS X installation.

http://www.room362.com/blog/2014/05/21/installing-pycrypto-on-mavericks/

Original comment by stuart.o...@gmail.com on 5 Mar 2015 at 9:32

GoogleCodeExporter commented 9 years ago
This has been fixed in the 1.8.0 release:
https://code.google.com/p/course-builder/wiki/ReleaseNotes#Release_notes_for_ver
sion_1.8.0

Original comment by r...@google.com on 11 Jul 2015 at 12:30