Re: strange problem with pydo
Jacob Smullyan <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 24, 2004 at 04:56:31PM -0800, Kevin Lewandowski wrote:
> Hello,
>
> I've have been using PyDO with no problems until yesterday. I'm sorry to admit but
> I made some changes (and I don't remember all of them) and PyDO stopped working.
>
> As of now, PyDO works fine via my shell scripts and via the command line python interpreter.
> But when using it via the web (apache/mod_python), apache returns a zero-length reply. (browser says
> "document contains no data"). I've confirmed that mod_python works okay, but any page that
> accesses PyDO causes the zero-length reply. There are also no error messages in the logfiles.
>
> My environment:
> Apache 1.3.27
> mod_python 2.7.8
> python 2.3
> PyDO (latest from CVS)
> mysql-python (currently 0.9.1 but the same problem happens with 0.9.2 and 0.9.3b2)
>
> I can even run a raw sql statement by accessing a pydo class's connection object.
> But then doing a PyDOclass.getUnique(..) causes the error again.
>
> Any ideas what could be causing this?
>
> thanks
>
> Kevin
I can't imagine how to debug this without getting a Python error
somewhere. You say you aren't getting any errors logged; how about
putting cheesy log statements in your code (along the lines of
open('/tmp/log', 'a').write("got here') ) and some try/except blocks
so you can at least figure out where things are blowing up?
Until you do this, it is a pin-in-a-haystack quest!
One other thing -- check to see if you are segfaulting at all. I'm
not sure where a segfault in mod_python would get logged -- apache's
error log, I suppose.
Good luck! Write again if you find any clues!
Jacob Smullyan
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAPADQuqamFyFXXLIRAmbSAKC7Vv/siP6xA3bZDsSWeVsviET2CgCeN2Wt twpoXGwP/FdZeIWom0jBlVc= =RuRc -----END PGP SIGNATURE-----