Re: 2.4.0~RC1 hangs on macOS
On Mon, 2024-01-29 at 08:01 +0100, Stephan Witt wrote: > > Yes, the version check in configure.py is executed twice. > The first attempt is the simple call, the 2nd is a python call. > The latter should be made on windows only as it is mentioned in the > comment (~ line 1336). > I’ve made the change and put it in. > > Stephan Thank you Stephan. @Jerry Stephan already fixed this and the bus should be fixed for RC2. Regards, -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Am 24.01.2024 um 09:02 schrieb José Matos : > > On Wed, 2024-01-24 at 00:48 -0700, list_em...@icloud.com wrote: >> Thanks, el. >> >> Getting rid of macports for homebrew is not an option for me. >> >> In my profile file, I have this: >> >> alias python=/opt/local/bin/python3 >> >> which is macports. Does LyX see this? This alias points to Python >> 3.9.18. There is a utility to switch to other versions. >> >> I already have the command line tools installed, with Python 3.9.6 at >> /usr/bin/phython3. >> >> I just now tried switching to this line in my profile file: >> >> alias python=/usr/bin/python3 >> >> with the same result. >> >> Remember that LyX 2.3.7 works fine. >> >> Jerry > > LyX tells what is the version used in Help->About LyX. > > Of course that the issue is that if it hangs before you can not see > that. > > Honestly I would be quite surprised if problems comes to be python > since reconfigure runs. > > The issue is why do you get the loop. > > One idea here is to output the Python version to the reconfigure > output. > > That is quite easy, since we already inside Python. > > The only thing that looks a bit strange is: > """ > +checking for "lilypond"... yes > + found LilyPond, but could not extract version number. > checking for a LilyPond book (LaTeX) -> LaTeX converter... > +checking for "lilypond-book"... yes > File "/Applications/LyX.app/Contents/MacOS//lilypond-book", line 12 >unset DISPLAY > ^ > SyntaxError: invalid syntax > """ > > This is a shell script that only goes in Mac distribution and the > reconfigure code seems to try to run it as Python? Yes, the version check in configure.py is executed twice. The first attempt is the simple call, the 2nd is a python call. The latter should be made on windows only as it is mentioned in the comment (~ line 1336). I’ve made the change and put it in. Stephan -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
On Thu, 2024-01-25 at 04:03 -0700, list_em...@icloud.com wrote: > $ lilypond --version > -bash: lilypond: command not found > > Jerry Thank you. That means that we are misinterpreting its output. I will try to understand why... -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
> On Jan 25, 2024, at 4:01 AM, José Matos wrote: > > On Thu, 2024-01-25 at 03:26 -0700, list_em...@icloud.com wrote: >> I did >> >> ln -s /opt/local/bin/python3 /usr/local/bin/python3 >> >> and had the same results _except_ for the _first_ time I tried to run >> with this link, the OS asked permission to access files in my >> Documents folder—this is normal these days when running a program for >> the first time, apparently a part of Apple’s security measures. >> Subsequent runs did _not_ ask this question, and at that point >> behavior was the same as before, including the lilypond nonsense >> output when running from a terminal. >> >> Jerry > > I am not sure if that is related but let us try to get this first: > > What do you get from the command line? > > $ lilypond --version > $ lilypond --version -bash: lilypond: command not found Jerry -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
On Thu, 2024-01-25 at 03:26 -0700, list_em...@icloud.com wrote: > I did > > ln -s /opt/local/bin/python3 /usr/local/bin/python3 > > and had the same results _except_ for the _first_ time I tried to run > with this link, the OS asked permission to access files in my > Documents folder—this is normal these days when running a program for > the first time, apparently a part of Apple’s security measures. > Subsequent runs did _not_ ask this question, and at that point > behavior was the same as before, including the lilypond nonsense > output when running from a terminal. > > Jerry I am not sure if that is related but let us try to get this first: What do you get from the command line? $ lilypond --version -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
I did ln -s /opt/local/bin/python3 /usr/local/bin/python3 and had the same results _except_ for the _first_ time I tried to run with this link, the OS asked permission to access files in my Documents folder—this is normal these days when running a program for the first time, apparently a part of Apple’s security measures. Subsequent runs did _not_ ask this question, and at that point behavior was the same as before, including the lilypond nonsense output when running from a terminal. Jerry > On Jan 24, 2024, at 1:51 AM, Dr Eberhard Lisse wrote: > > An alias is only evaluated by the shell, so you could always either > > ln -fs /opt/local/bin/python3 /usr/local/bin/python3 > ln -fs /opt/local/bin/python3 /usr/local/bin/python > > and see if that works. > > There is a way of setting environment variables like PATH with launchctl > so that Apps can find it but I don't know if that works for aliases. > > And of course you can use the full path of python in the converters > > el > > On 2024-01-24 09:48 , list_em...@icloud.com wrote: >> Thanks, el. >> >> Getting rid of macports for homebrew is not an option for me. >> >> In my profile file, I have this: >> >> alias python=/opt/local/bin/python3 >> >> which is macports. Does LyX see this? This alias points to Python 3.9.18. >> There is a utility to switch to other versions. >> >> I already have the command line tools installed, with Python 3.9.6 at >> /usr/bin/phython3. >> >> I just now tried switching to this line in my profile file: >> >> alias python=/usr/bin/python3 >> >> with the same result. >> >> Remember that LyX 2.3.7 works fine. >> >> Jerry > [...] -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
An alias is only evaluated by the shell, so you could always either ln -fs /opt/local/bin/python3 /usr/local/bin/python3 ln -fs /opt/local/bin/python3 /usr/local/bin/python and see if that works. There is a way of setting environment variables like PATH with launchctl so that Apps can find it but I don't know if that works for aliases. And of course you can use the full path of python in the converters el On 2024-01-24 09:48 , list_em...@icloud.com wrote: > Thanks, el. > > Getting rid of macports for homebrew is not an option for me. > > In my profile file, I have this: > > alias python=/opt/local/bin/python3 > > which is macports. Does LyX see this? This alias points to Python 3.9.18. > There is a utility to switch to other versions. > > I already have the command line tools installed, with Python 3.9.6 at > /usr/bin/phython3. > > I just now tried switching to this line in my profile file: > > alias python=/usr/bin/python3 > > with the same result. > > Remember that LyX 2.3.7 works fine. > > Jerry [...] -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
On Wed, 2024-01-24 at 00:48 -0700, list_em...@icloud.com wrote: > Thanks, el. > > Getting rid of macports for homebrew is not an option for me. > > In my profile file, I have this: > > alias python=/opt/local/bin/python3 > > which is macports. Does LyX see this? This alias points to Python > 3.9.18. There is a utility to switch to other versions. > > I already have the command line tools installed, with Python 3.9.6 at > /usr/bin/phython3. > > I just now tried switching to this line in my profile file: > > alias python=/usr/bin/python3 > > with the same result. > > Remember that LyX 2.3.7 works fine. > > Jerry LyX tells what is the version used in Help->About LyX. Of course that the issue is that if it hangs before you can not see that. Honestly I would be quite surprised if problems comes to be python since reconfigure runs. The issue is why do you get the loop. One idea here is to output the Python version to the reconfigure output. That is quite easy, since we already inside Python. The only thing that looks a bit strange is: """ +checking for "lilypond"... yes + found LilyPond, but could not extract version number. checking for a LilyPond book (LaTeX) -> LaTeX converter... +checking for "lilypond-book"... yes File "/Applications/LyX.app/Contents/MacOS//lilypond-book", line 12 unset DISPLAY ^ SyntaxError: invalid syntax """ This is a shell script that only goes in Mac distribution and the reconfigure code seems to try to run it as Python? -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Thanks, el. Getting rid of macports for homebrew is not an option for me. In my profile file, I have this: alias python=/opt/local/bin/python3 which is macports. Does LyX see this? This alias points to Python 3.9.18. There is a utility to switch to other versions. I already have the command line tools installed, with Python 3.9.6 at /usr/bin/phython3. I just now tried switching to this line in my profile file: alias python=/usr/bin/python3 with the same result. Remember that LyX 2.3.7 works fine. Jerry > On Jan 24, 2024, at 12:10 AM, Dr Eberhard Lisse wrote: > > Unload the macports python and install the XCode Command line tools > which has Python 3.9.6 in /usr/bin/python3. > > If that works, perhaps even unload Macports and install Homebrew. If > you have many packages installed, make a list. > > I use Homebrew including basictex (plus some addtional stuff) and copied > 2.4 RC1 over the 2.3.7 provided from Homebrew. On Ventura and Sonoma (on > the latter on Intel and Silicon) > > greetings, el > > On 2024-01-24 01:51 , list_em...@icloud.com wrote: > [...] While LyX is hanging as above, Activity Monitor indicates that LyX has launched one instance of Python and repeatedly launches and stops a second instance. My current Python is 3.9 but versions up to 3.12 are installed by macports. LyX 2.3.7 still works. I notice that I got this version through MacPorts. I just now updated all my macports stuff which includes Python and texlive. 2.4 still hangs on launch. > [...] > > -- > lyx-devel mailing list > lyx-devel@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-devel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Unload the macports python and install the XCode Command line tools which has Python 3.9.6 in /usr/bin/python3. If that works, perhaps even unload Macports and install Homebrew. If you have many packages installed, make a list. I use Homebrew including basictex (plus some addtional stuff) and copied 2.4 RC1 over the 2.3.7 provided from Homebrew. On Ventura and Sonoma (on the latter on Intel and Silicon) greetings, el On 2024-01-24 01:51 , list_em...@icloud.com wrote: [...] >>> While LyX is hanging as above, Activity Monitor indicates that >>> LyX has launched one instance of Python and repeatedly launches >>> and stops a second instance. My current Python is 3.9 but >>> versions up to 3.12 are installed by macports. >>> >>> LyX 2.3.7 still works. I notice that I got this version through >>> MacPorts. >>> >>> I just now updated all my macports stuff which includes Python >>> and texlive. 2.4 still hangs on launch. [...] -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Unload the macports python and install the XCode Command line tools which has Python 3.9.6 in /usr/bin/python3. If that works, perhaps even unload Macports and install Homebrew. If you have many packages installed, make a list. I use Homebrew including basictex (plus some addtional stuff) and copied 2.4 RC1 over the 2.3.7 provided from Homebrew. On Ventura and Sonoma (on the latter on Intel and Silicon) greetings, el On 2024-01-24 01:51 , list_em...@icloud.com wrote: [...] >>> While LyX is hanging as above, Activity Monitor indicates that >>> LyX has launched one instance of Python and repeatedly launches >>> and stops a second instance. My current Python is 3.9 but >>> versions up to 3.12 are installed by macports. >>> >>> LyX 2.3.7 still works. I notice that I got this version through >>> MacPorts. >>> >>> I just now updated all my macports stuff which includes Python >>> and texlive. 2.4 still hangs on launch. [...] -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Main notes listed inline below. Jerry > On Jan 20, 2024, at 11:14 PM, Richard Kimberly Heck > wrote: > > On 1/20/24 18:08, list_em...@icloud.com wrote: >> Thanks, el. >> >> I did as you suggested but there was no improvement and little change to the >> problem. As the rapidly cycling status messages continue in the Welcome >> file, I am able to start a new file and make a PDF of it. But I can’t close >> either the new (unsaved) file or the Welcome file because it says it can’t >> quit because of a background process. Normal quitting method has the same >> result. Clicking on the spinning circle or red dot has no effect. I tried >> this multiple times, each time deleting the Support file as you suggested. >> >> Next, I deleted the app as well as these: >> >> org.lyx.LyX-2.4.plist >> org.lyx.lyx.plist >> org.lyx.lyx.savedState (a folder) >> >> and re-downloaded and re-launched the app. Now the behavior is worse, >> getting only the app main menu with Apple logo and “LyX” item, and then >> nothing but pinwheeling. It doesn’t even open the Welcome file or finish >> drawing the main menu. I put the three deleted items back but it still hangs >> on launch. Definitely going in the wrong direction here. >> >> While LyX is hanging as above, Activity Monitor indicates that LyX has >> launched one instance of Python and repeatedly launches and stops a second >> instance. My current Python is 3.9 but versions up to 3.12 are installed by >> macports. >> >> LyX 2.3.7 still works. I notice that I got this version through MacPorts. >> >> I just now updated all my macports stuff which includes Python and texlive. >> 2.4 still hangs on launch. > > I'm going to guess a few things here. > > I guess the first problem is the hanging on launch. LyX can seem to hang when > it's reconfiguring. Deleting the user directory will have forced this. One > symptom of this would be seeing various LaTeX-related processes being called > over and over again. I have (now) had LyX hanging on launch for about two hours with the behavior described earlier. I see two Pythons which re-launch every few seconds. I also see pdftex starting and quitting every few seconds. For the pdftex process, Activity Monitor lists a Python as the parent process and the Process Group as LyX. > > If you can get LyX to launch, then we need to find out what this process is > that's stopping LyX from closing. Do you have images in the documents you're > opening? Lots of math? If the latter, are you using math preview? Or is this > just a basic document? As above, LyX won’t finish launching. I believe it is trying to open only the Welcome file. There is a slight possibility that it is also trying to open a test document that I tried earlier (and described earlier in this thread) but which was open when I force-quit LyX but had not been saved to disk. This test was only a default new file with only a few words of text, which at the time did create a PDF. > > Another possibility is that the PDF creation process is not exiting properly. > I'm not sure how to debug that. Again, a symptom would be some LaTeX process > still running. > > One thing that might help (with both problems) is if you could start LyX from > a terminal and post the output. This should let us see what processes LyX is > launching, and where things are getting stuck. OK. See the attached text file. This is a portion of the output after maybe five seconds. This portion, beginning with LyX: reconfiguring user directory repeats about once a second or two. I suppose this is the same frequency as the Python and pdftex repeating things mentioned above. The only thing that I see odd in this output is that it does not see my Firefox or BibDesk apps. Jerry MBP:~ me$ /Applications/LyX.app/Contents/MacOS/lyx qt.qpa.fonts: Populating font family aliases took 250 ms. Replace uses of missing font family "Serif" with one that exists to avoid this cost. LyX: reconfiguring user directory +Running LyX configure with Python 3.9.18 checking for a Latex2e program... +checking for "latex"... yes checking for pLaTeX, the Japanese LaTeX... +checking for "platex"... not in path checking for a java interpreter... +checking for "java"... yes checking for a perl interpreter... +checking for "perl"... yes checking for xsltproc... +checking for "xsltproc"... yes Could not find Inkscape binary. /bin/sh: inkscape-binary: command not found checking for a Tgif viewer and editor... +checking for "tgif"... no checking for a FIG viewer and editor... +checking for "xfig"... no +checking for "jfig3-itext.jar"... no +checking for "jfig3.jar"... no checking for a Dia viewer and editor... +checking for "dia"... no checking for an OpenDocument drawing viewer and editor... +checking for "libreoffice"... no +checking for "lodraw"... no +checking for "ooffice"... no +checking for "oodraw"... no +checking for "soffice"... no checking for a Grace viewer and editor...
Re: 2.4.0~RC1 hangs on macOS
On 1/20/24 18:08, list_em...@icloud.com wrote: Thanks, el. I did as you suggested but there was no improvement and little change to the problem. As the rapidly cycling status messages continue in the Welcome file, I am able to start a new file and make a PDF of it. But I can’t close either the new (unsaved) file or the Welcome file because it says it can’t quit because of a background process. Normal quitting method has the same result. Clicking on the spinning circle or red dot has no effect. I tried this multiple times, each time deleting the Support file as you suggested. Next, I deleted the app as well as these: org.lyx.LyX-2.4.plist org.lyx.lyx.plist org.lyx.lyx.savedState (a folder) and re-downloaded and re-launched the app. Now the behavior is worse, getting only the app main menu with Apple logo and “LyX” item, and then nothing but pinwheeling. It doesn’t even open the Welcome file or finish drawing the main menu. I put the three deleted items back but it still hangs on launch. Definitely going in the wrong direction here. While LyX is hanging as above, Activity Monitor indicates that LyX has launched one instance of Python and repeatedly launches and stops a second instance. My current Python is 3.9 but versions up to 3.12 are installed by macports. LyX 2.3.7 still works. I notice that I got this version through MacPorts. I just now updated all my macports stuff which includes Python and texlive. 2.4 still hangs on launch. I'm going to guess a few things here. I guess the first problem is the hanging on launch. LyX can seem to hang when it's reconfiguring. Deleting the user directory will have forced this. One symptom of this would be seeing various LaTeX-related processes being called over and over again. If you can get LyX to launch, then we need to find out what this process is that's stopping LyX from closing. Do you have images in the documents you're opening? Lots of math? If the latter, are you using math preview? Or is this just a basic document? Another possibility is that the PDF creation process is not exiting properly. I'm not sure how to debug that. Again, a symptom would be some LaTeX process still running. One thing that might help (with both problems) is if you could start LyX from a terminal and post the output. This should let us see what processes LyX is launching, and where things are getting stuck. Riki -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Thanks, el. I did as you suggested but there was no improvement and little change to the problem. As the rapidly cycling status messages continue in the Welcome file, I am able to start a new file and make a PDF of it. But I can’t close either the new (unsaved) file or the Welcome file because it says it can’t quit because of a background process. Normal quitting method has the same result. Clicking on the spinning circle or red dot has no effect. I tried this multiple times, each time deleting the Support file as you suggested. Next, I deleted the app as well as these: org.lyx.LyX-2.4.plist org.lyx.lyx.plist org.lyx.lyx.savedState (a folder) and re-downloaded and re-launched the app. Now the behavior is worse, getting only the app main menu with Apple logo and “LyX” item, and then nothing but pinwheeling. It doesn’t even open the Welcome file or finish drawing the main menu. I put the three deleted items back but it still hangs on launch. Definitely going in the wrong direction here. While LyX is hanging as above, Activity Monitor indicates that LyX has launched one instance of Python and repeatedly launches and stops a second instance. My current Python is 3.9 but versions up to 3.12 are installed by macports. LyX 2.3.7 still works. I notice that I got this version through MacPorts. I just now updated all my macports stuff which includes Python and texlive. 2.4 still hangs on launch. Jerry > On Jan 18, 2024, at 11:34 AM, Eberhard W Lisse wrote: > > Works here, on Sonoma both Intel and Silicon, and Monterey (12.7.2). > > I would propose: > > rm ~/Library/Application\ Support/LyX-2.4 > > the double click on the LyX icon in /Applications, wait until it is > finished. Quit normally and then double click on a .lyx file. > > greetings, el > > On 18/01/2024 10:47, list_em...@icloud.com wrote: >> I downloaded LyX 2.4.0~RC1 just now, copied to /Applications on macOS >> 12.7.2. The “default” file opened telling me how great LyX is (I >> already knew). There was a rapidly repeating series of messages in >> the status bar--something about indexing and then looking for font >> Minion etc. After a while I clicked on a red circle with a white “x” >> in it but nothing happened. I started a new file, typed one sentence >> into it, and it successfully made a PDF. When I tried to close the >> new file window LyX refused saying it was busy with a background >> process. Same when I tried to quit normally, Command-Q. After about >> five minutes I force-quit LyX. Double-clicked to re-launch, got Apple >> menu item and LyX menu item and then got a hang (pinwheel, system log >> report). Had to force-quit again. Repeated attempts to re-launch are >> the same. >> >> Jerry >> > > > -- > lyx-devel mailing list > lyx-devel@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-devel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: 2.4.0~RC1 hangs on macOS
Works here, on Sonoma both Intel and Silicon, and Monterey (12.7.2). I would propose: rm ~/Library/Application\ Support/LyX-2.4 the double click on the LyX icon in /Applications, wait until it is finished. Quit normally and then double click on a .lyx file. greetings, el On 18/01/2024 10:47, list_em...@icloud.com wrote: > I downloaded LyX 2.4.0~RC1 just now, copied to /Applications on macOS > 12.7.2. The “default” file opened telling me how great LyX is (I > already knew). There was a rapidly repeating series of messages in > the status bar--something about indexing and then looking for font > Minion etc. After a while I clicked on a red circle with a white “x” > in it but nothing happened. I started a new file, typed one sentence > into it, and it successfully made a PDF. When I tried to close the > new file window LyX refused saying it was busy with a background > process. Same when I tried to quit normally, Command-Q. After about > five minutes I force-quit LyX. Double-clicked to re-launch, got Apple > menu item and LyX menu item and then got a hang (pinwheel, system log > report). Had to force-quit again. Repeated attempts to re-launch are > the same. > > Jerry > -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel