Re: [Pyme-help] buggy when in mod_python
Status: Beta
Brought to you by:
belyi
From: Dave B. <da...@br...> - 2005-08-07 17:38:32
|
Igor Belyi wrote: > Dave Brondsema wrote: > >> When I run the attached code from the commandline, it succesfully >> verifies the detached signature. When I run it in mod_python, I get: >> >> >> Mod_python error: "PythonHandler server" >> >> 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 >> 457, in import_module >> module = imp.load_module(mname, f, p, d) >> >> File "/home/dpb2/public_html/pyme_problem/server.py", line 35, in ? >> handler() >> >> File "/home/dpb2/public_html/pyme_problem/server.py", line 28, in >> handler >> raise Exception("No PGP signature found in: " + content + stext) >> >> Exception: No PGP signature found ... >> >> >> >> I am running Pyme 0.7.0, Apache 2.0.54, mod_python 3.1.3, Python 2.3.5 >> Why doesn't this work in mod_python? > > > My guess is that the user which you use when running the code from the > commandline and the user which runs apache > are different. When GNUPGHOME env. var. is not set its value is assumed > to be $HOME/.gnupg . The files where public > and secret keys are looked in are $GNUPGHOME/pubring.gpg and > $GNUPGHOME/secring.gpg. > > Hope it helps, > Igor > That seems to work, thanks. Now on to other problems... :-) -- Dave Brondsema : da...@br... http://www.splike.com : programming http://www.brondsema.net : personal <>< |