Re: strange problem with pydo
Kevin Lewandowski <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
I've solved this problem. It was related to mysql-python and php using
different mysql libraries. Recompiling php and forcing it to use the
same mysql lib that mysql-python was using solved the problem.
Here's some info on it:
http://www.modpython.org/pipermail/mod_python/2004-January/014886.html
thanks,
Kevin
On Tuesday, February 24, 2004, at 05:56 PM, Jacob Smullyan wrote:
> 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
> <mime-attachment>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click