On Thu, Jul 19, 2007 at 05:43:32PM +0100, José Matos wrote:
> On Thursday 19 July 2007 17:28:01 Enrico Forestieri wrote:
> >
> > With this patch applied, I still get
> >
> > Warning: An error ocurred in 248, <function revert_accent at 0x1b3ab0>
> > Traceback (most recent call last):
> >   File "/opt/src/lyx-1.5.0svn/lib/lyx2lyx/lyx2lyx", line 101, in ?
> >     sys.exit(main(sys.argv))
> >   File "/opt/src/lyx-1.5.0svn/lib/lyx2lyx/lyx2lyx", line 94, in main
> >     file.convert()
> >   File "/export/src/lyx-1.5.0svn/lib/lyx2lyx/LyX.py", line 415, in convert
> >     conv(self)
> >   File "/export/src/lyx-1.5.0svn/lib/lyx2lyx/lyx_1_5.py", line 1032, in
> > revert_accent for i in range(numberoflines):
> > SystemError: Objects/unicodeobject.c:278: bad argument to internal function
> >
> > when trying to export to 1.4. This is with
> > Python 2.3.3 (#1, Dec 15 2004, 14:04:32) [C] on sunos5
> 
> http://mail.python.org/pipermail/python-bugs-list/2004-April/022737.html
> https://sourceforge.net/tracker/?func=detail&atid=105470&aid=924361&group_id=5470
> 
> So this seems to be a bug with your version of python...

Yes, that's it. What about the attached patch?

-- 
Enrico
Index: README
===================================================================
--- README      (revision 19141)
+++ README      (working copy)
@@ -33,6 +33,8 @@
     A decent LaTeX2e installation (e.g. teTeX for unix) not older
        than 1995/12/01.
     Python 2.3 or later to convert old LyX files and for helper scripts
+    (note that you need at least Python 2.3.4 or later for exporting
+    LyX files to a pre-unicode format)
 
 How does the LyX version scheme work?
 

Reply via email to