[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnmerge.py r26037 on Windows

From: Martin Tomes <martin_at_tomes.org.uk>
Date: 2007-08-14 10:00:23 CEST

On 14/08/07, Giovanni Bajo <rasky@develer.com> wrote:
> On 13/08/2007 18.02, Martin Tomes wrote:
> > On 13/08/07, Giovanni Bajo <rasky@develer.com> wrote:
> >> On 13/08/2007 11.13, Martin Tomes wrote:
> >>> I tried to run r26037 of svnmerge.py on Windows and got an error:
> >>>
> >>> Traceback (most recent call last):
> >>> File "svnmerge.py", line 2124, in ?
> >>> File "svnmerge.py", line 2119, in main
...
> >>> File "xml\sax\__init__.pyc", line 93, in make_parser
> >>> xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
> >>>
> >>> I fixed this by adding from xml.parsers import expat to the script. A
> >>> patch is attached.
> >>>
> >>> Is this the correct fix for this?
> >> It's weird at least. Which Python version are you running, exactly? Is it the
> >> pyhton.org distribution?
> >>
> >> I'm not against the patch in principle, but I found weird that you need such
> >> an import at all.
> >
> > It's python 2.4.4 from python.org
>
> I suggest you start stuffing prints within xml\sax\__init__.py,
> xml\sax\expatreader.py and such files until you find out why expat is not
> found by default. Line 55 in xml\sax\__init__.py is:
>
> default_parser_list = ["xml.sax.expatreader"]
>
> which means that expat should be picked up by default.

I can't see how that ever gets loaded, the only XML import is 'from
xml.dom import pulldom', there is no import of xml.sax. I don't know
much Python, but I wouldn't expect it to import the sax stuff.

-- 
Martin Tomes
martin@tomes.org.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 14 09:58:16 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.