[Distutils] __init__.py getting left out of mpkg

Phillip J. Eby pje at telecommunity.com
Thu Mar 8 23:58:42 CET 2007


At 02:41 PM 3/8/2007 -0500, jason pellerin wrote:
>My apologies -- it's mod_python that fails, not Paste. I removed my
>working Paste package (with the forced __init__.py) and reinstalled
>the one without __init__.py. Here's the result:
>
>Mod_python error: "PythonHandler paste.modpython"
>
>Traceback (most recent call last):
>
>  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
>287, in HandlerDispatch
>    log=debug)
>
>  File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
>461, in import_module
>    f, p, d = imp.find_module(parts[i], path)
>
>ImportError: No module named paste
>
>So Paste is actually the victim, not the culprit. I don't know if
>there's any way to work around this aside from building the package
>with an __init__.py -- any ideas?

Fix mod_python/apache.py to use __import__ instead of imp, perhaps?



More information about the Distutils-SIG mailing list