Re: Problem converting older files with lyx2lyx

2022-11-25 Thread Gordon Watson via lyx-users


> On 26 Nov 2022, at 7:08 am, Stephan Witt  wrote:
> 
> Am 25.11.2022 um 18:50 schrieb José Matos :
>> 
>> On Wed, 2022-11-23 at 11:36 +1100, Gordon Watson via lyx-users wrote:
>>> gordonwatson@iMac ~ % python3
>>> xcrun: error: invalid active developer path
>>> (/Library/Developer/CommandLineTools), missing xcrun at:
>>> /Library/Developer/CommandLineTools/usr/bin/xcrun
>> 
>> This line shows that there is a problem with python3 installation.
> 
> Yes, this is what I „googled“ and wrote him in private mail communication:

And this is what I did:

Last login: Wed Nov 23 09:38:10 on ttys000
gordonwatson@iMac ~ % xcode-select --install
xcode-select: note: install requested for command line developer tools
gordonwatson@iMac ~ % 
  [Restored 26 Nov 2022 at 7:35:54 am]
Last login: Sat Nov 26 07:35:43 on console
Restored session: Sat 26 Nov 2022 07:32:56 AEDT
gordonwatson@iMac ~ % python3
Python 3.9.6 (default, Sep 26 2022, 11:37:49) 
[Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> help
Type help() for interactive help, or help(object) for help about object.
>>> help(btr19.lyx)
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'btr19' is not defined
>>> 

Ignoring this last line, I search for BTR19.lyx on my Mac. It appears in the 
search results. I single-click. It opens. I smile!

Thanks to all who helped, espec. Stephan and Roger. For my smile grows stronger 
as I continue to test successfully over the past 10 years!

 
>> Am 21.11.2022 um 07:04 schrieb Stephan Witt :
>> 
>> Hi Gordon,
>> 
>> I don’t know why you have this problem yet - but I hope the helpful 
>> procedure is described here:
>> 
>> https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a
>> 
>> If it doesn’t work… send me the excerpt what you did and what happened. 
>> We’ll see what to try next.
>> 
>> BR,
>> Stephan
> 
> 
>> Am 21.11.2022 um 17:44 schrieb Stephan Witt :
>> 
>> Hi Gordon,
>> 
>> I think you have the following situation on your system:
>> - You installed some version of python3 in the past
>> - You upgraded from some version of Monterey to some other
>> - This step broke your python3 installation
>> - Now you neither have python nor python3
>> - LyX is almost useless w/o python or python3
>> 
>> This situation I cannot simulate on my site - I don’t have the resources. 
>> Neither hardware nor time.
>> 
>> To solve your problem you should reinstall python3 on your system somehow.
>> 
>> This should be possible with the given command in terminal.
>> 
>> 1. Open Terminal
>> 2. Run the following command: xcode-select --install
>> 
>> This will download and install the Command Line Tools package and should fix 
>> the problem. (No heart or lungs involved - no battery replacement )
>> 
>> BR,
>> Stephan
> -- 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-11-25 Thread Stephan Witt
Am 25.11.2022 um 18:50 schrieb José Matos :
> 
> On Wed, 2022-11-23 at 11:36 +1100, Gordon Watson via lyx-users wrote:
>> gordonwatson@iMac ~ % python3
>> xcrun: error: invalid active developer path
>> (/Library/Developer/CommandLineTools), missing xcrun at:
>> /Library/Developer/CommandLineTools/usr/bin/xcrun
> 
> This line shows that there is a problem with python3 installation.

Yes, this is what I „googled“ and wrote him in private mail communication:

> Am 21.11.2022 um 07:04 schrieb Stephan Witt :
> 
> Hi Gordon,
> 
> I don’t know why you have this problem yet - but I hope the helpful procedure 
> is described here:
> 
> https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a
> 
> If it doesn’t work… send me the excerpt what you did and what happened. We’ll 
> see what to try next.
> 
> BR,
> Stephan


> Am 21.11.2022 um 17:44 schrieb Stephan Witt :
> 
> Hi Gordon,
> 
> I think you have the following situation on your system:
> - You installed some version of python3 in the past
> - You upgraded from some version of Monterey to some other
> - This step broke your python3 installation
> - Now you neither have python nor python3
> - LyX is almost useless w/o python or python3
> 
> This situation I cannot simulate on my site - I don’t have the resources. 
> Neither hardware nor time.
> 
> To solve your problem you should reinstall python3 on your system somehow.
> 
> This should be possible with the given command in terminal.
> 
> 1. Open Terminal
> 2. Run the following command: xcode-select --install
> 
> This will download and install the Command Line Tools package and should fix 
> the problem. (No heart or lungs involved - no battery replacement )
> 
> BR,
> Stephan
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-11-25 Thread José Matos
On Wed, 2022-11-23 at 11:36 +1100, Gordon Watson via lyx-users wrote:
> gordonwatson@iMac ~ % python3
> xcrun: error: invalid active developer path
> (/Library/Developer/CommandLineTools), missing xcrun at:
> /Library/Developer/CommandLineTools/usr/bin/xcrun

This line shows that there is a problem with python3 installation.
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-11-22 Thread Gordon Watson via lyx-users


> On 21 Oct 2022, at 4:27 pm, Dr Eberhard Lisse  wrote:
> 
> The easiest is to completeley uninstall TeX and then LyX (on the Mac you
> can just Trash it) and then first to install TeX (MacTex in whatever
> guise or form) and then LyX, which in the first run will do a Tools ->
> Reconfigure which you can do manually any time.
> 
> You should be able to run
> 
>   /Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx -o abc.lyx 
> testfile.lyx
> 
> directly (ie without the python call) as well.
> 
> What do
> 
>   head -1 /Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx
> 
> and
> 
>   which python
> 
> show?
> 
> greetings, el
> 
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-usersLast login: Wed Nov 23 
> 08:08:00 on ttys000

Following the above suggestions, here are my results:

MacTex and LyX were installed afresh.

gordonwatson@iMac ~ % head - 
/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx -o abc.lyx testfile.lyx
head: -: No such file or directory
==> /Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx <==
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2002-2011 The LyX Team
# Copyright (C) 2002-2007 José Matos 
# Copyright (C) 2002-2004 Dekel Tsur 
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
head: -o: No such file or directory
head: abc.lyx: No such file or directory
head: testfile.lyx: No such file or directory
gordonwatson@iMac ~ % head -1 
/Applications/LyX.app/Contents/Reources/lyx2lyx/lyx2lyx
head: /Applications/LyX.app/Contents/Reources/lyx2lyx/lyx2lyx: No such file or 
directory
gordonwatson@iMac ~ % python
zsh: command not found: python
gordonwatson@iMac ~ % python3
xcrun: error: invalid active developer path 
(/Library/Developer/CommandLineTools), missing xcrun at: 
/Library/Developer/CommandLineTools/usr/bin/xcrun
gordonwatson@iMac ~ % open BTR19.new.lyx
The file /Users/gordonwatson/BTR19.new.lyx does not exist.

Then:

Tools->Reconfigure
The system reconfiguration has failed.
Default textclass is used but LyX may
not be able to work properly.
Please reconfigure again if needed.




-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-20 Thread Dr Eberhard Lisse

The easiest is to completeley uninstall TeX and then LyX (on the Mac you
can just Trash it) and then first to install TeX (MacTex in whatever
guise or form) and then LyX, which in the first run will do a Tools ->
Reconfigure which you can do manually any time.

You should be able to run

/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx -o abc.lyx 
testfile.lyx

directly (ie without the python call) as well.

What do

head -1 /Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx

and

which python

show?

greetings, el

On 2022-10-20 21:10 , Paul A. Rubin wrote:

On 10/20/22 14:44, ahostmadsen--- via lyx-users wrote:

And to add.  When I run the following command, which I think emulates
the converter as run from LyX:

python -tt /Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx
-o abc.lyx testfile.lyx

the conversion works perfectly.  Yet, from inside lyx it doesn’t
work.

Meanwhile, trying to edit converters, my LyX installation got further
damaged.  Now the font used inside LyX is screwed up (only
sans-serif), although I didn’t change anything about fonts.  I feel
my LyX installation is damaged.  How can I uninstall completely, and
then install from scratch?


Regarding screen fonts, if you go to Tools > Preferences...  > Look &
Feel > Screen Fonts, you should see which fonts are being used in the
LyX UI (including sample text for each).  Do they indicate that any
fonts with serifs are selected?  If not, are any fonts you would like
listed among the options in the select boxes?

Paul




--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-20 Thread Paul A. Rubin

On 10/20/22 14:44, ahostmadsen--- via lyx-users wrote:
And to add. When I run the following command, which I think emulates 
the converter as run from LyX:


python -tt 
/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx  -o 
abc.lyx  testfile.lyx


the conversion works perfectly. Yet, from inside lyx it doesn’t work.

Meanwhile, trying to edit converters, my LyX installation got further 
damaged. Now the font used inside LyX is screwed up (only sans-serif), 
although I didn’t change anything about fonts. I feel my LyX 
installation is damaged. How can I uninstall completely, and then 
install from scratch?


Regarding screen fonts, if you go to Tools > Preferences... > Look & 
Feel > Screen Fonts, you should see which fonts are being used in the 
LyX UI (including sample text for each). Do they indicate that any fonts 
with serifs are selected? If not, are any fonts you would like listed 
among the options in the select boxes?


Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-20 Thread ahostmadsen--- via lyx-users
And to add. When I run the following command, which I think emulates the 
converter as run from LyX:

python -tt /Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx  -o abc.lyx 
 testfile.lyx

the conversion works perfectly. Yet, from inside lyx it doesn’t work.

Meanwhile, trying to edit converters, my LyX installation got further damaged. 
Now the font used inside LyX is screwed up (only sans-serif), although I didn’t 
change anything about fonts. I feel my LyX installation is damaged. How can I 
uninstall completely, and then install from scratch?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-20 Thread ahostmadsen--- via lyx-users
Yes, it is very worrisome not to be able to open older files. Usually, I don’t 
want to edit them, I just want to copy and paste things from the files, so I 
just need LyX to be able to open them.

I think it must have something to do with LyX installation on Monterey.
On Oct 20, 2022, 12:39 AM -1000, Gordon Watson , wrote:
> 1. I also seek to resolve the “lyx2lyx” problem when opening my old LyX 
> files. Example message:
>
> /Users/gordonwatson/Desktop/LyX files/BTR19.lyx is from an older version of 
> LyX and the lyx2lyx script failed to convert it.
>
> 2. I am using LyX Version 2.3.6.2 (7 January 2021) on a Mac with MacOS 
> Monterey, version 12.6 (21G115).
>
> 3. More recently, I found, at 
> https://latex.org/forum/viewtopic.php?f=19=117963:
>
> "Through the LyX forum, the result that worked was the following
>
> /System/Volumes/Data/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx 
> -v oldfile.lyx > newfile.lyx
>
> BUT I have no clue what this means.
>
> 4. And when I went to https://www.mail-archive.com/lyx-users@lists.lyx.org/ 
> the required correction was unclear to me.
>
> 5. In part, the above meanderings are because I have hundreds of files at 
> risk, AND I am very nervous about losing them!
>
> 6. Question: Should I download  LyX Version 2.3.6.2 (7 January 2021) again? 
> If so, what precautions do I first need to take?
>
> Thanks.
>
>
>
>
> > On 19 Oct 2022, at 5:24 am, ahostmadsen--- via lyx-users 
> >  wrote:
> >
> > I appreciate the feedback I have received, but I’m still left with a 
> > somewhat non-functioning LyX installation. To repeat
> >
> > 1. I cannot open older LyX formats.
> > 2. Instant preview does not work.
> >
> > This happened recently. Can anyone suggest how I can get LyX to work again?
> > --
> > lyx-users mailing list
> > lyx-users@lists.lyx.org
> > http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Problem converting older files with lyx2lyx

2022-10-18 Thread ahostmadsen--- via lyx-users
I appreciate the feedback I have received, but I’m still left with a somewhat 
non-functioning LyX installation. To repeat

1. I cannot open older LyX formats.
2. Instant preview does not work.

This happened recently. Can anyone suggest how I can get LyX to work again?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-14 Thread Dr Eberhard Lisse

That can be a Python issue. But it's nice to see it works.


What I have done in the past is to convert all LyX files I have below my
work area with something similar to

find ~/medicine/cpd/ -name '*.lyx' -type f -exec open {} ';'

and then having to save all the files manually.

Which of course would not work for your particular situation but could
be adapted, which I might just do for myself when I am bored as I
otherwise would have to think about an Applescript to automate this when
the format changes next time :-)-O


greetings, el


On 2022-10-14 01:25 , ahostmadsen--- via lyx-users wrote:

Thanks for the instructions.  I ran lyx2lyx from the command line, and
it successfully converted the old file, and Lyx can open the converted
file.  But if I try to open the old file from inside LyX I still get:
“...is from an older version of LyX and the lyx2lyx script failed to
convert it.” So, lyx2lyx works, but LyX cannot run it.  And still,
instant preview does not work, although typesetting a document does.

I have been using lyx for many years now (which is why I have old
formats).  I have no problems compiling lyx documents, and otherwise
use LaTeX directly, so I don’t think it’s a LaTeX issue.



--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-13 Thread ahostmadsen--- via lyx-users
Thanks for the instructions. I ran lyx2lyx from the command line, and it 
successfully converted the old file, and Lyx can open the converted file. But 
if I try to open the old file from inside LyX I still get: “...is from an older 
version of LyX and the lyx2lyx script failed to convert it.” So, lyx2lyx works, 
but LyX cannot run it. And still, instant preview does not work, although 
typesetting a document does.

I have been using lyx for many years now (which is why I have old formats). I 
have no problems compiling lyx documents, and otherwise use LaTeX directly, so 
I don’t think it’s a LaTeX issue.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-12 Thread Dr Eberhard Lisse
On the Mac (deduced from the icloud address)

find /Applications/LyX.app/ -name lyx2lyx -type f

tells us

/Applications/LyX.app/Contents/Resources/lyx2lyx/lyx2lyx

Try the complete path/file name on the old file and see what that says.


Looks a little like a TeX installation issue, just to be sure, you did
install TeX, right?


I use Homebrew, which has three versions ((annually) updated)

 brew install mactex
 brew install mactex-no-gui
 brew install basictex

I use the latter, and apply a small modification to the default

 TEXDIR=$(dirname $(kpsewhich texmf.cnf))
 TEXPARENT=$(dirname $(dirname $(kpsewhich texmf.cnf)))
 perl -i -p -e 's+\$SELFAUTOPARENT/+/$TEXPARENT/+' $TEXDIR/texmf.cnf

As I have multiple systems I can update the packages missing after an
update of basictex easily with something like

 tlmgr install $(ssh -C USER@HOST tlmgr list --only-installed \
| awk '{gsub(":","",$2);print $2}'

and so don't need to have the complete installation.


I also like long error lines and do so something like this

 brew install gsed

 for i in error_line max_print_line half_error_line
 do
 gsed -i "/$i/d" $TEXDIR/texmf.cnf
 done
 cat >> $TEXDIR/texmf.cnf < Thanks, you mean running lyx2lyx from the terminal? Then I get “command
> not found"
> 
> When I run reconfigure, I get the message:
> 
> The system reconfiguration has failed.
> Default textclass is used but LyX may
> not be able to work properly.
> Please reconfigure again if needed.
> 
> Perhaps I totally need to remove LyX from my computer, and then
> re-install?  As said in the previous email, I already have upgraded
> LyX to the latest version, with no effect.
> 

-- 
To email me replace 'nospam' with 'el'

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-11 Thread ahostmadsen--- via lyx-users
Thanks, you mean running lyx2lyx from the terminal? Then I get “command not 
found"

When I run reconfigure, I get the message:

The system reconfiguration has failed.
Default textclass is used but LyX may
not be able to work properly.
Please reconfigure again if needed.

Perhaps I totally need to remove LyX from my computer, and then re-install? As 
said in the previous email, I already have upgraded LyX to the latest version, 
with no effect.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-11 Thread Dr Eberhard Lisse
Have you tried running lyx2lyx on them and see what that says?  perhaps
with the --noisy option?

LyX will display, but can't convert.  So you need to look what image you
are trying to display and whether there is a converter for that.
Sometimes just a Tools --> Reconfigure will do the trick

el



On 06/10/2022 17:21, ahostmadsen--- via lyx-users wrote:
> Thanks, I checked. Yes, it’s on.
> 
> One further issue: LyX doesn’t display graphics: “error converting to
> loadable format."
> 
> But I just mention these issues as symptoms.  My main issue is that I
> cannot open older LyX files, which is a serious headache.
> 
> (Sorry, I’m not sure about the right way to reply to messages on the
> list)
> 

-- 
To email me replace 'nospam' with 'el'


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-06 Thread ahostmadsen--- via lyx-users
Thanks, I checked. Yes, it’s on.

One further issue: LyX doesn’t display graphics: “error converting to loadable 
format."

But I just mention these issues as symptoms. My main issue is that I cannot 
open older LyX files, which is a serious headache.

(Sorry, I’m not sure about the right way to reply to messages on the list)
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting older files with lyx2lyx

2022-10-05 Thread Paul A. Rubin

On 10/4/22 21:03, ahostmadsen--- via lyx-users wrote:

I have a problem with LyX on one of my Macs (OS 12.5.1).

 1. Equations are not typeset inside lyx (compiling the document works
fine).
 2. When I try to open older files I get: “…. is from an older version
of LyX and the lyx2lyx script failed to convert it.” This is true
for many files I tried.

I had an older version (2.3.2) and just now upgraded to 2.3.6.2, but 
nothing changed.


I have another almost identical Mac (kind of a mirror image), and 
don’t have these problems on that Mac. The older files open fine, so 
it’s not corruption of the files.


I did see something on the mailboard about Python not being installed. 
However, I do have Python installed, directly from Apple (Apple’s 
Python 3.9). When I write python in terminal, I get "Python 3.9.10 | 
packaged by conda-forge” My other computer has the same Python 
installation.



Thanks,
Anders Host-Madsen.

Regarding the equations, in Tools > Preferences... > Look & Feel > 
Display do you have "Instant preview" set to "On"?


Paul
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Problem converting older files with lyx2lyx

2022-10-05 Thread ahostmadsen--- via lyx-users
I have a problem with LyX on one of my Macs (OS 12.5.1).

1. Equations are not typeset inside lyx (compiling the document works fine).
2. When I try to open older files I get: “…. is from an older version of LyX 
and the lyx2lyx script failed to convert it.” This is true for many files I 
tried.

I had an older version (2.3.2) and just now upgraded to 2.3.6.2, but nothing 
changed.

I have another almost identical Mac (kind of a mirror image), and don’t have 
these problems on that Mac. The older files open fine, so it’s not corruption 
of the files.

I did see something on the mailboard about Python not being installed. However, 
I do have Python installed, directly from Apple (Apple’s Python 3.9). When I 
write python in terminal, I get "Python 3.9.10 | packaged by conda-forge” My 
other computer has the same Python installation.


Thanks,
Anders Host-Madsen.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users