From n-best at neiu.edu Tue May 24 19:19:48 2005 From: n-best at neiu.edu (Neil Best) Date: Tue, 24 May 2005 12:19:48 -0500 Subject: [Mapit] Mapit! on Debian? Message-ID: <1116955188.7012.39.camel@localhost.localdomain> Hello. Mapit! users. Is anyone out there using Mapit on a Debian system? I have tried to follow the instructions, but I get this diagnostic from the server: Mod_python error: "PythonHandler modmapit" Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch log=debug) File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module f, p, d = imp.find_module(parts[i], path) ImportError: No module named modmapit I am not sure what I am doing wrong. I am new to python and mod_python, so please take nothing for granted. I will be glad to provide more details to anyone willing to lend a hand. Thanks. Neil Neil Best Department of Geography & Environmental Studies Northeastern Illinois University From jan at intevation.de Tue May 24 20:49:55 2005 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 24 May 2005 20:49:55 +0200 Subject: [Mapit] Mapit! on Debian? In-Reply-To: <1116955188.7012.39.camel@localhost.localdomain> References: <1116955188.7012.39.camel@localhost.localdomain> Message-ID: <20050524184955.GA21546@intevation.de> On Tue, May 24, 2005 at 12:19:48PM -0500, Neil Best wrote: > Hello. Mapit! users. Is anyone out there using Mapit on a Debian > system? I have tried to follow the instructions, but I get this > diagnostic from the server: > > Mod_python error: "PythonHandler modmapit" > > Traceback (most recent call last): > > File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch > log=debug) > > File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module > f, p, d = imp.find_module(parts[i], path) > > ImportError: No module named modmapit > > > I am not sure what I am doing wrong. I am new to python and mod_python, > so please take nothing for granted. I will be glad to provide more > details to anyone willing to lend a hand. Thanks. Python does not find the module. It must be in a directory listed in the environment variable PYTHON_PATH or in the systems ones. I do not recommend to place it somewhere on the systems area manually. Better place it somewhere else and set the PYTHONPATH accordingly. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ Kolab Konsortium http://kolab-konsortium.de/ FreeGIS http://freegis.org/ From bh at intevation.de Wed May 25 11:31:59 2005 From: bh at intevation.de (Bernhard Herzog) Date: Wed, 25 May 2005 11:31:59 +0200 Subject: [Mapit] Mapit! on Debian? In-Reply-To: <20050524184955.GA21546@intevation.de> (Jan-Oliver Wagner's message of "Tue, 24 May 2005 20:49:55 +0200") References: <1116955188.7012.39.camel@localhost.localdomain> <20050524184955.GA21546@intevation.de> Message-ID: Jan-Oliver Wagner writes: > On Tue, May 24, 2005 at 12:19:48PM -0500, Neil Best wrote: >> File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module >> f, p, d = imp.find_module(parts[i], path) >> >> ImportError: No module named modmapit [...] > Python does not find the module. It must be in a directory listed > in the environment variable PYTHON_PATH or in the systems ones. > I do not recommend to place it somewhere on the systems area manually. > Better place it somewhere else and set the PYTHONPATH accordingly. It's also possible to set the path from apache's config files. See e.g. http://www.modpython.org/live/current/doc-html/dir-other-pp.html Bernhard -- Intevation GmbH http://intevation.de/ Skencil http://skencil.org/ Thuban http://thuban.intevation.org/