Hi Riki,
thank you for this analysis/hint - this was perfect for a "work around":
0) install python v 2.7.16 (well, will have to deal with things which
require python 3.X)
1) deleted the LyX-2.3 directory (folder) from ~/Library/Application Support
2) mkdir of an empty Lyx-2.3 dir
3) cd into it
4) run python -tt /Applications/LyX.app/Contents/Resources/configure.py
--with-version-suffix=-2.3
--binary-dir=/Applications/LyX.app/Contents/MacOS/
==> 5) last lines of terminal output:
...
+checking for package natbib [natbib]... yes
+Inspection done.
+Read the file doc/LaTeXConfig.lyx for more information.
6) low & behold: starting LyX 2.3 works fine - no error messages anymore
(and my templates work again)
Of course it will be better to eventually have LyX 2.3 working with the
more recent python.
Let me know if I should test this at some point.
Best
Matthias
On 19.08.19 22:42, Richard Kimberly Heck wrote:
On 8/19/19 4:16 PM, Matthias Görlach wrote:
Hi,
see below
On 19.08.19 22:02, Richard Kimberly Heck wrote:
On 8/19/19 2:41 PM, Matthias Görlach wrote:
To check another thing: there is an automatic upgrade in configure run.
Perhaps it copies some problematic contents from your 2.2 installation.
To circumvent this you may try these commands (no sudo please):
$ mkdir /tmp/LyX
$ cd /tmp/LyX
$ python -tt /Applications/LyX.app/Contents/Resources/configure.py
--binary-dir=/Applications/LyX.app/Contents/MacOS/
My result (and config.log attached here)
ls -ltr
total 1088
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 ui
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 templates
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 scripts
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 layouts
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 kbd
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 images
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 examples
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 doc
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 clipart
-rw-r--r-- 1 mago staff 99 Aug 19 20:30 chklatex.ltx
-rw-r--r-- 1 mago staff 664 Aug 19 20:30 chklatex.log
drwxr-xr-x 2 mago staff 68 Aug 19 20:30 bind
-rw-r--r-- 1 mago staff 19973 Aug 19 20:30 lyxrc.defaults
-rw-r--r-- 1 mago staff 36766 Aug 19 20:30 clsFiles.lst
-rw-r--r-- 1 mago staff 365181 Aug 19 20:30 styFiles.lst
-rw-r--r-- 1 mago staff 26300 Aug 19 20:30 bstFiles.lst
-rw-r--r-- 1 mago staff 4449 Aug 19 20:30 bibFiles.lst
-rw-r--r-- 1 mago staff 293 Aug 19 20:30 lyxmodules.lst
-rw-r--r-- 1 mago staff 37133 Aug 19 20:30 configure.log
-rw-r--r-- 1 mago staff 26 Aug 19 20:30 chkmodules.tex
-rw-r--r-- 1 mago staff 15685 Aug 19 20:30 cbxFiles.lst
-rw-r--r-- 1 mago staff 17136 Aug 19 20:30 bbxFiles.lst
The configure script looks to be crashing when it tries to process
the first module file. The fact that chklatex.ltx and chkmodules.txt
have not been removed indicate that, as does the suspiciously small
size of your chkmodules.tex.
Can you run the command Stephan gave you from the terminal again,
but this time copy and paste the end of the output? I'm wondering
whether Python itself is issuing some kind of error message.
+checking list of modules...
/Applications/LyX.app/Contents/Resources/layouts/algorithm2e.module
Traceback (most recent call last):
File "/Applications/LyX.app/Contents/Resources/configure.py", line
1892, in <module>
checkModulesConfig()
File "/Applications/LyX.app/Contents/Resources/configure.py", line
1511, in checkModulesConfig
retval = processModuleFile(file, filename.encode('ascii'),
bool_docbook)
File "/Applications/LyX.app/Contents/Resources/configure.py", line
1607, in processModuleFile
% (modname, filename, desc, pkgs, req, excl, catgy))
TypeError: unsupported operand type(s) for %: 'bytes' and 'tuple'
Yes, well, there's the crash.
This particular line is from 576b94138. Jürgen?
Can you also check the python version you are using? Run python
--version.
Python 3.3.7
Mostly, the point is that it's Python 3, though maybe the problem is
specific to this version. As I said, though, I'm seeing a crash here
with 3.7.4 that looks similar:
Traceback (most recent call last):
File "/usr/local/share/lyx/configure.py", line 1896, in <module>
ret = checkLatexConfig(lyx_check_config and LATEX != '', bool_docbook)
File "/usr/local/share/lyx/configure.py", line 1379, in checkLatexConfig
retval = processLayoutFile(file, bool_docbook)
File "/usr/local/share/lyx/configure.py", line 1327, in
processLayoutFile
% (classname, opt, desc, avai, prereq))
TypeError: %b requires a bytes-like object, or an object that
implements __bytes__, not 'str'
Mine comes from the same commit.
Riki
--
Matthias Görlach
Ebertstr. 4
07743 Jena
*49-0171 1988809