[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: Giovanni Bajo <rasky_at_develer.com>
Date: 2007-08-14 01:55:41 CEST

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 "svnmerge.py", line 1609, in __call__
>>> File "svnmerge.py", line 1278, in action_merge
>>> File "svnmerge.py", line 1087, in analyze_source_revs
>>> File "svnmerge.py", line 1039, in analyze_revs
>>> File "svnmerge.py", line 359, in __init__
>>> File "svnmerge.py", line 846, in __init__
>>> File "xml\dom\pulldom.pyc", line 350, in parseString
>>> 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.

-- 
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 14 01:53:41 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.