> Were you getting this issue with xml.dom showing on first request all
> the time, or only occasionally occurring? If the latter, were you
> running things in a multithreaded configuration and was the server
> being loaded with lots of concurrent requests?
It was the former.
> For your particul
On May 12, 1:59 am, dpapathanasiou
wrote:
> For the record, and in case anyone else runs into this particular
> problem, here's how resolved it.
>
> My original xml_utils.py was written this way:
>
> from xml.dom import minidom
>
> def parse_item_attribute (item, attribute_name):
> item_doc =
For the record, and in case anyone else runs into this particular
problem, here's how resolved it.
My original xml_utils.py was written this way:
from xml.dom import minidom
def parse_item_attribute (item, attribute_name):
item_doc = minidom.parseString(item)
...
That version worked und
> His problem is therefore likely to be something completely different.
You are correct.
As per the earlier advice, I switched from mod_python to mod_wsgi but
I still see the same error:
[Mon May 11 10:30:21 2009] [notice] Apache/2.2.11 (Unix) mod_wsgi/2.4
Python/2.5.2 configured -- resuming no
On May 10, 3:40 am, Paul Boddie wrote:
> On 9 Mai, 01:36, dpapathanasiou wrote:
>
>
>
> > Apache's configure utility (I'm using httpd version 2.2.11) doesn't
> > explicitly describe an expat library option.
>
> > Also, if libexpat is version 1.95.2, wouldn't I have to get version
> > 2.0 to be co
>
> My only advice is, don't use mod_python. The project is dead, you
> should use mod_wsgi instead: http://code.google.com/p/modwsgi/
>
To echo what Daniel said, mod_wsgi is really the way to go. It might still
not work in "embedded" mode where like mod_python the Python interpreter is
in the Ap
On 9 Mai, 01:36, dpapathanasiou wrote:
>
> Apache's configure utility (I'm using httpd version 2.2.11) doesn't
> explicitly describe an expat library option.
>
> Also, if libexpat is version 1.95.2, wouldn't I have to get version
> 2.0 to be compatible with pyexpat?
The aim would be to persuade A
Daniel Fetchinson wrote:
> On 5/8/09, dpapathanasiou wrote:
>> I wrote a python script called xml_utils.py which parses xml using
>> minidom.
>
> My only advice is, don't use mod_python. The project is dead, you
> should use mod_wsgi instead: http://code.google.com/p/modwsgi/
Now that we're at it
On 5/8/09, dpapathanasiou wrote:
> I wrote a python script called xml_utils.py which parses xml using
> minidom.
>
> It works when it's run on its own, but when I try to import it and run
> it inside a mod_python handler, I get this error:
>
> File "../common/xml_utils.py", line 80, in parse_ite
I wrote a python script called xml_utils.py which parses xml using
minidom.
It works when it's run on its own, but when I try to import it and run
it inside a mod_python handler, I get this error:
File "../common/xml_utils.py", line 80, in parse_item_attribute
File "/usr/lib/python2.5/xml/dom
10 matches
Mail list logo