2.4.0~RC1 hangs on macOS
Stephan Witt
st.witt at gmx.net
Mon Jan 29 07:01:56 UTC 2024
Am 24.01.2024 um 09:02 schrieb José Matos <jaomatos at gmail.com>:
>
> On Wed, 2024-01-24 at 00:48 -0700, list_email at 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
More information about the lyx-devel
mailing list