On 11/1/18 2:23 PM, Kornel Benko wrote: > Am Donnerstag, 1. November 2018 19:21:22 CET schrieb Kornel Benko > <kor...@lyx.org>: >> Am Donnerstag, 1. November 2018 19:24:50 CET schrieb Guy Rutenberg >> <guyrutenb...@gmail.com>: >>> Hi, >>> >>> On Thu, 1 Nov 2018 at 18:43, Richard Kimberly Heck <rikih...@lyx.org> wrote: >>> >>>> My second suggestion in the last email is along these lines, too. I >>>> should have added that it is only when the language is Hebrew that we do >>>> any of the other tests. (We have to go through the whole file, of >>>> course, to find out whether Hebrew is ever used.) >>>> >>>> I've followed the suggestion and now it runs much faster. See my attached >>> patch. >>> >>> Thanks, >>> Guy >> Sorry, with this patch the conversion is fast, but unfortunately also fails. >> > This is the error, if used manually > > Traceback (most recent call last): > File "/usr2/src/lyx/lyx-git/lib/lyx2lyx/lyx2lyx", line 24, in <module> > import LyX > File "/usr2/src/lyx/lyx-git/lib/lyx2lyx/LyX.py", line 107, in <module> > convert = getattr(__import__("lyx_" + step), mode) > File "/usr2/src/lyx/lyx-git/lib/lyx2lyx/lyx_2_4.py", line 39, in <module> > from lyx2lyx_tools import (put_cmd_in_ert, add_to_preamble, > get_language_for_line) > ImportError: cannot import name 'get_language_for_line'
Right, we just need to remove that from the import line. (Guy introduced then deleted that routine.) Riki