[mod_python] import mod_puthon.util fails

Gregory (Grisha) Trubetskoy grisha at modpython.org
Thu Dec 19 10:24:45 EST 2002


No, you're not doing anything wrong, _apache is only available when
mod_python is loaded as an apache module, you can't really use any of
those modules from the command line.

On Thu, 19 Dec 2002, Gregory Bond wrote:

> [I'm brand new to mod_python and this list....]
>
> FreeBSD 4-Stable (as of the other day, so it's after 4.7)
>
> Apache 2.0.43, built from the FreeBSD port, with USE_THREADS
>
> mod_python 3.0.1, built using "./configure && make"
>
> hellcat$ python -c "import mod_python.util"
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "/usr/local/lib/python2.2/site-packages/mod_python/util.py", line 58, in ?
>     import _apache
> ImportError: No module named _apache
> hellcat$
>
> And indeed there is nothing that looks like _apache.so.  There is a src/
> _apachemodule.c, which is compiled and linked into mod_python.so, which has
> what seems to be the intended contents of the _apache module, but this is
> never turned into the appropriate .so file.
>
> Am I doing something wrong?
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list