[pypy-issue] [issue1647] using django-imagekit results in ImportError

Amaury Forgeot d'Arc tracker at bugs.pypy.org
Sat Nov 30 16:46:15 CET 2013

Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Thanks for the excellent walkthrough.

Note that imagekit has a processors.py, but also has a special Importer (in 
so the failing statement is actually trying to "import pilkit.processors".

But the resulting module ends up in sys.modules with the new name, not the original 
If I modify importers.py to fill sys.modules with the result of import_module(), but 
with the initial name, it works.

This is probably a difference between CPython and PyPy. I'll try to come with a 
small test.

nosy: +amaury
status: unread -> chatting

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list