Import error with Google App Engine

Issue #19 resolved
Former user created an issue
(Imported from Google Code)

adekoba wrote:

1. Use Google App Engine
2. "import passlib.hash" in one of your modules.

And you will get a result similar to the following:

Traceback (most recent call last):

File "/home/justin/sdk/gae/google/appengine/tools/", line 4144, in _HandleRequest

self._Dispatch(dispatcher, self.rfile, outfile, env_dict)

File "/home/justin/sdk/gae/google/appengine/tools/", line 4049, in _Dispatch


File "/home/justin/sdk/gae/google/appengine/tools/", line 616, in Dispatch


File "/home/justin/sdk/gae/google/appengine/tools/", line 3120, in Dispatch


File "/home/justin/sdk/gae/google/appengine/tools/", line 3024, in ExecuteCGI

reset_modules = exec_script(handler_path, cgi_path, hook)

File "/home/justin/sdk/gae/google/appengine/tools/", line 2887, in ExecuteOrImportScript

exec module_code in script_module.dict

File "/home/justin/proj/feedbackswap/", line 11, in

import passlib.hash

File "/home/justin/sdk/gae/google/appengine/tools/", line 1538, in Decorate

return func(self, *args, **kwargs)

File "/home/justin/sdk/gae/google/appengine/tools/", line 2503, in load_module

return self.FindAndLoadModule(submodule, fullname, search_path)

File "/home/justin/sdk/gae/google/appengine/tools/", line 1538, in Decorate

return func(self, *args, **kwargs)

File "/home/justin/sdk/gae/google/appengine/tools/", line 2396, in FindAndLoadModule

module.loader = self

File "/home/justin/proj/feedbackswap/passlib/", line 45, in setattr

register_crypt_handler(value, name=attr)

File "/home/justin/proj/feedbackswap/passlib/", line 207, in register_crypt_handler

raise TypeError("object does not appear to be a crypt handler: %r" % (handler,))
TypeError: object does not appear to be a crypt handler:

Tested on Linux and GAE 1.5.2

Comments (2)

  1. Eli Collins repo owner
    • assigned issue to True
    • marked as major
    • changed status to open
    • changed Milestone to 1.5.1
    (Imported from Google Code)

    Thanks for reporting this. It looks like there's a couple of glitches that need fixing before Passlib works properly under GAE. I'll update this issue when it's done.

  2. Eli Collins repo owner
    (Imported from Google Code)

    Passlib 1.5.1 has now been released, which should fix this bug. All unittests now pass under gaeunit on both development and production GAE environments.

  3. Log in to comment