Scott:

log file, as requested.

John


jkmac:referee jk$ /Applications/LyX.app/Contents/MacOS/lyx -dbg info
"/Users/jk/Box Sync/jk/jkdonorblurb.lyx"
Setting debug level to info
Debugging `info' (General information)
support/filetools.cpp (1002): Running: python -tt -V 2>&1
support/filetools.cpp (1002): Running: python -tt
"/Applications/LyX.app/Contents/Resources/scripts/prefs2prefs.py" -p
"/Users/jk/Library/Application Support/LyX-2.3/preferences"
"/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/convert_lyxrc.Ul2103"
Encoding.cpp (798): Read unicode symbol 160 '~' ' '0 1 ~' '' 0 1 0 0 1
...
Encoding.cpp (798): Read unicode symbol 120831 '' ' '0 0 \mathtt{9}' '' 0 1
0 0 1
Encoding.cpp (864): Reading encoding utf8
...
Language.cpp (210): Reading language welsh
support/filetools.cpp (1002): Running: python -tt
"/Applications/LyX.app/Contents/Resources/scripts/prefs2prefs.py" -l
"/Users/jk/Library/Application Support/LyX-2.3/bind/user.bind"
"/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/convert_bind.yA2103"
Buffer.cpp (477): Buffer::Buffer()
BufferList.cpp (122): Assigning to buffer 0
Buffer.cpp (1324): Running 'python -tt
"/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx" -t 541 -o
"/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/lyx_tmpdir.YQwVSnRg2103/Buffer_convertLyXFormatWT2103.lyx"
"/Users/jk/Box Sync/jk/jkdonorblurb.lyx"'
support/filetools.cpp (1002): Running: python -tt
"/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx" -t 541 -o
"/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/lyx_tmpdir.YQwVSnRg2103/Buffer_convertLyXFormatWT2103.lyx"
"/Users/jk/Box Sync/jk/jkdonorblurb.lyx"
Traceback (most recent call last):
  File "/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx", line 22,
in <module>
    import argparse
ImportError: No module named argparse
Error: Conversion script failed
----------------------------------------
/Users/jk/Box Sync/jk/jkdonorblurb.lyx is from an older version of LyX and
the lyx2lyx script failed to convert it.
Buffer.cpp (495): Buffer::~Buffer()
LyX.cpp (444): Deleting tmp dir
/var/folders/s6/r89g40d97y98b56w71p_49nc0000gn/T/lyx_tmpdir.YQwVSnRg2103


---------- Forwarded message ----------
From: Scott Kostyshak <skost...@lyx.org>
Date: Mon, May 8, 2017 at 9:51 AM
Subject: Re: 2.3.0alpha1-1
To: john kennan <jken...@gmail.com>
Cc: LyX Developers <lyx-devel@lists.lyx.org>


On Sun, May 07, 2017 at 07:00:40PM -0500, john kennan wrote:
> Scott:
>
> I think I misunderstood. Running lyx2lyx with or without the python prefix
> does indeed (silently) produce output -- the new files can be read by
> 2.3alpha1-1 with no trouble.
>
> But attempting to load the older format files from within LyX still
doesn't
> work (even after installing Python3)
>
> jkmac:~ jk$ python --version
> Python 2.7.5 :: Anaconda 1.8.0 (x86_64)
> jkmac:~ jk$ python3 --version
> Python 3.6.1
>
> John

Hi John,

Please always respond to the list.

Thanks for your debugging efforts! It's useful to know that lyx2lyx
works when called directly, but for some reason not when LyX calls it.

I wonder if using Python Anaconda instead of just vanilla Python
confuses LyX. Of course it shouldn't be a problem, but debugging is all
about figuring out what it is that should work is not working.

Can you try opening the .lyx file from the command line? I don't know
how to do that on Mac. When you do that, after you get the error in the
GUI (about unable to convert), can you check the terminal and see if
there is any useful information?

Can you also do the same as the above, but this time add the option

  -dbg info

to the command? For me, this would be

  lyx -dbg info myfile.lyx

Can you then copy the output from the terminal to a log file, and post
it to the list? (read the log first to make sure you are not posting any
private information).

Thanks for your help in testing,

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to