Graham Dumpleton
graham.dumpleton at gmail.com
Tue Feb 19 15:42:57 EST 2008
If this is the first time you have used mod_python 3.3.1, read about import_module() in: http://www.modpython.org/live/current/doc-html/pyapi-apmeth.html The bahaviour of the module importer has changed in some areas and some details are described in that document. Most likely you just need to set PythonPath correctly. Without you posting the mod_python parts of your Apache configuration and saying exactly where in the file system your files are so we can see how that relates to your configuration, we can't really help much. Graham On 20/02/2008, kosa at heckler-koch.cz <kosa at heckler-koch.cz> wrote: > hi all > > please, few days before, i was forced to made dist-upgrade on my debian > etch, from stable to testing > but after this, i have a problem. Classic mod_python is working correct > with apache. But unfortunately my work developing environment is not ! > > we are using, apache prefork and teng together with mod python. Here are > my versions: > > ii apache2 2.2.8-1 > Next generation, scalable, extendable web se > ii apache2-mpm-prefork 2.2.8-1 > Traditional model for Apache HTTPD > ii apache2-utils 2.2.8-1 > utility programs for webservers > ii apache2.2-common 2.2.8-1 > Next generation, scalable, extendable web se > ii libapache2-mod-python 3.3.1-1 > Apache 2 module that embeds Python within th > ii libapache2-mod-python-doc 3.3.1-1 > Apache 2 module that embeds Python within th > > ii libteng1 1.0.12 > Teng -- general purpose templating system > > ii python2.4 2.4.4-7 An > interactive high-level object-oriented la > ii python2.4-dbg 2.4.4-7 > Debug Build of the Python Interpreter (versi > ii python2.4-fastrpc 2.0.2 > Fastrpc -- RPC using XML and Binary protocol > ii python2.4-minimal 2.4.4-7 A > minimal subset of the Python language (ver > ii python2.4-teng 1.0.0 > Teng module for python > ii szn-python2.4-dbglog 1.1.7 > Debug log library for python > > this is the error message i am getting: > > MOD_PYTHON ERROR > > ProcessId: 22082 > Interpreter: '127.0.0.1' > > ServerName: '127.0.0.1' > DocumentRoot: '/svn/stream/trunk/www' > > URI: '/' > Location: None > Directory: '/' > Filename: '/svn/stream/trunk/www/' > PathInfo: '' > > Phase: 'PythonHandler' > Handler: 'mp_handler' > > Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line > 1537, in HandlerDispatch > default=default_handler, arg=req, silent=hlist.silent) > > File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line > 1202, in _process_target > module = import_module(module_name, path=path) > > File "/usr/lib/python2.4/site-packages/mod_python/importer.py", line > 304, in import_module > return __import__(module_name, {}, {}, ['*']) > > > [all the paths are the same as before the dist-upgrade] > so please, if any has some experience with this problem, let me know. if > this is not enough informations, i will post more. > > > thank you very much > pavel > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|