On Feb 26, 2016, at 3:27 AM, Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote:
> Le 26/02/2016 11:09, Jerry a écrit : >> >> On Feb 25, 2016, at 6:52 AM, Jean-Marc Lasgouttes <lasgout...@lyx.org> wrote: >> >>> Le 25/02/2016 10:01, Jerry a écrit : >>>> When I ran the Python command in a terminal, it proceeded quickly to >>>> "+Indexing TeX files..." and stayed there for about 34 minutes and >>>> everything else took no more than about a minute--just as before >>>> installing texlive-fonts-recommended. >>> >>> Does this mean that running "python scripts/TeXFiles.py" is the command >>> that is slow? >>> >>> JMarc >> >> I don't know. > > Could you try to run it like you ran by hand configure.py? To be frank I'd be > suprised to find out that the is the culprit, but the message "+Indexing TeX > files... " would point to that, unless I am mistaken. Sorry for my lazy answer but I sort of didn't understand it. Running TeXFiles.py resulted in about 8-9 minutes spent in each of "Indexing files of type cls|sty|bst|bib". Processor usage by Python was low at around 4%. The rest of the remaining running time was negligible by comparison. > > Also, there is a question you may already have answered. What happens if you > interrupt the running confogure.py with Ctrl+C? Does python give you a > backtrace showing where it is in the configure.py script? I ran python -tt "/Applications/Words/LyXOuterFolder/LyX 2.2.0beta2/LyX.app/Contents/Resources/configure.py" --with-version-suffix=-2.2 --binary-dir="/Applications/Words/LyXOuterFolder/LyX 2.2.0beta2/LyX.app/Contents/MacOS/" and hit Ctrl-C while "+Indexing TeX files..." was displayed. This gave the following backtrace: +Indexing TeX files... ^CTraceback (most recent call last): File "/Applications/Words/LyXOuterFolder/LyX 2.2.0beta2/LyX.app/Contents/Resources/configure.py", line 1612, in <module> Traceback (most recent call last): File "/Applications/Words/LyXOuterFolder/LyX 2.2.0beta2/LyX.app/Contents/Resources/scripts/TeXFiles.py", line 107, in <module> for root,path,files in os.walk(dir): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 294, in walk for x in walk(new_path, topdown, onerror, followlinks): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 276, in walk names = listdir(top) KeyboardInterrupt rescanTeXFiles() File "/Applications/Words/LyXOuterFolder/LyX 2.2.0beta2/LyX.app/Contents/Resources/configure.py", line 1525, in rescanTeXFiles tfp = cmdOutput("python -tt " + '"' + os.path.join(srcdir, 'scripts', 'TeXFiles.py') + '"') File "/Applications/Words/LyXOuterFolder/LyX 2.2.0beta2/LyX.app/Contents/Resources/configure.py", line 76, in cmdOutput output = pipe.stdout.read() KeyboardInterrupt Jerry > JMarc >