Amaury Forgeot d'Arc <[email protected]> added the comment:

Thanks for the excellent walkthrough.

Note that imagekit has a processors.py, but also has a special Importer (in 
importer.py)
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 
one.
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 <[email protected]>
<https://bugs.pypy.org/issue1647>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to