You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Martin Tomes <ma...@tomes.org.uk> on 2007/08/13 09:13:51 UTC

svnmerge.py r26037 on Windows

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?

-- 
Martin Tomes
martin@tomes.org.uk

Re: svnmerge.py r26037 on Windows

Posted by Martin Tomes <ma...@tomes.org.uk>.
On 14/08/07, Giovanni Bajo <ra...@develer.com> wrote:
> On 13/08/2007 18.02, Martin Tomes wrote:
> > On 13/08/07, Giovanni Bajo <ra...@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

Re: svnmerge.py r26037 on Windows

Posted by Giovanni Bajo <ra...@develer.com>.
On 13/08/2007 18.02, Martin Tomes wrote:
> On 13/08/07, Giovanni Bajo <ra...@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

Re: svnmerge.py r26037 on Windows

Posted by Martin Tomes <ma...@tomes.org.uk>.
On 13/08/07, Giovanni Bajo <ra...@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

-- 
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

Re: svnmerge.py r26037 on Windows

Posted by Giovanni Bajo <ra...@develer.com>.
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.
-- 
Giovanni Bajo

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org