Discussion:
Yosemite + LyX
Hal Kierstead
2014-10-18 15:28:14 UTC
Permalink
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.

Thanks,

Hal
Stephan Witt
2014-10-18 16:27:49 UTC
Permalink
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.

Post the contents here if the solution for the problem isn't obvious.

Stephan
Hal Kierstead
2014-10-18 16:37:08 UTC
Permalink
Post by Stephan Witt
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.
Post the contents here if the solution for the problem isn't obvious.
Stephan
Stephan -

Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me.

Hal

Warning: Document class not available
----------------------------------------
The selected document class
American Mathematical Society (AMS) Article
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
prerequisites are installed:
amsart.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.
09:29:23.962: (dialog-toggle progress)Warning: Package not available
----------------------------------------
The module enumitem requires a package that is not
available in your LaTeX installation, or a converter that
you have not installed. LaTeX output may not be possible.
Missing prerequisites:
enumitem.sty
See section 3.1.2.3 (Modules) of the User's Guide for more information.
09:30:08.094: (buffer-new: ⌘N, ⌃F N)
09:30:25.185: Opening help file [doc/Intro.lyx]...Warning: Document class not available
----------------------------------------
The selected document class
Article (Standard Class)
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
prerequisites are installed:
article.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.
09:30:28.531: (help-open Intro: ⌃H I)

09:33:33.996: Previewing ...
09:33:34.000: (buffer-view pdf: ⌃⌘T)
09:33:34.024: python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.eps"
09:33:34.048: sh: convert: command not found
09:33:34.048: /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
09:33:34.049: Execution of "convert" failed.
09:33:34.049: python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.eps"
09:33:34.068: sh: convert: command not found
09:33:34.075: /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
09:33:34.076: Execution of "convert" failed.
09:33:34.081: latex "Intro.tex"support/Systemcall.cpp (292): Systemcall: 'python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.eps"' finished with exit code 1
support/Systemcall.cpp (292): Systemcall: 'python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.eps"' finished with exit code 1
09:33:34.593: This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
09:33:34.594: restricted \write18 enabled.
09:33:34.621: entering extended mode
09:33:34.625: (./Intro.tex
09:33:34.626: LaTeX2e <2014/05/01>
09:33:34.627: Babel <3.9k> and hyphenation patterns for 78 languages loaded.
09:33:34.628:
09:33:34.868: Error while exporting format: PDF (ps2pdf)support/Systemcall.cpp (292): Systemcall: 'latex "Intro.tex"' finished with exit code 1
09:34:09.799: Automatic save done.
Steve Burnham
2014-10-18 16:50:22 UTC
Permalink
 
 
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated. 
 
To diagnose the problem open the messages pane (View menu) and look for error messages. 
If there is none then enable the log output for graphics conversion. 
 
Post the contents here if the solution for the problem isn't obvious. 
 
Stephan 
Stephan - 

Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me. 

Hal 

Warning: Document class not available 


If it helps I am also running 10.10 and have had similar problems where none of my document classes are available.  When I upgraded to Yosemite I also updated my MacTeX distribution from 2013 to 2014 so the problem might have less to do with OS X 10.10 and more to do with updating TeX.  I haven’t had a lot of time yet to try and diagnose the problem but I have tried opening up LyX and doing a rebuild as well as ensuring that the classes are available in my TeX folder.







I
Stephan Witt
2014-10-18 19:31:57 UTC
Permalink
Post by Hal Kierstead
Post by Stephan Witt
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.
Post the contents here if the solution for the problem isn't obvious.
Stephan
Stephan -
Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me.
Hal
Warning: Document class not available
If it helps I am also running 10.10 and have had similar problems where none of my document classes are available. When I upgraded to Yosemite I also updated my MacTeX distribution from 2013 to 2014 so the problem might have less to do with OS X 10.10 and more to do with updating TeX. I haven’t had a lot of time yet to try and diagnose the problem but I have tried opening up LyX and doing a rebuild as well as ensuring that the classes are available in my TeX folder.
Ken, did you try to switch back to MacTeX 2013?
I think it should be possible with the TeX settings of the System settings.

Stephan
Stephan Witt
2014-10-18 19:35:00 UTC
Permalink
Post by Stephan Witt
Post by Hal Kierstead
Post by Stephan Witt
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.
Post the contents here if the solution for the problem isn't obvious.
Stephan
Stephan -
Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me.
Hal
Warning: Document class not available
If it helps I am also running 10.10 and have had similar problems where none of my document classes are available. When I upgraded to Yosemite I also updated my MacTeX distribution from 2013 to 2014 so the problem might have less to do with OS X 10.10 and more to do with updating TeX. I haven’t had a lot of time yet to try and diagnose the problem but I have tried opening up LyX and doing a rebuild as well as ensuring that the classes are available in my TeX folder.
Ken, did you try to switch back to MacTeX 2013?
Sorry, Steve, I confused your name. I don't know why…
Stephan Witt
2014-10-18 18:28:21 UTC
Permalink
Post by Hal Kierstead
Post by Stephan Witt
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.
Post the contents here if the solution for the problem isn't obvious.
Stephan
Stephan -
Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me.
That's true. It's cryptic.

1) LyX is missing the "convert" utility.
I think,it's normally part of MacTeX and can be found in directory /usr/local/bin.
Either LyX cannot access it or the directory is not part of the PATH setting.
You can find it in the Preferences pane (use Command-, to open it).
Check the PATH-Prefix contents - /usr/local/bin should be there.

2) TeX cannot find article.cls and other class files.
These are part of MacTeX and can be found in directory /usr/local/texlive.
For me it's .../2012/texmf-dist/tex/latex/base/article.cls

Try to reconfigure LyX. But if you never used LyX before it might be pointless.

Stephan
Post by Hal Kierstead
Warning: Document class not available
----------------------------------------
The selected document class
American Mathematical Society (AMS) Article
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
amsart.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.
09:29:23.962: (dialog-toggle progress)Warning: Package not available
----------------------------------------
The module enumitem requires a package that is not
available in your LaTeX installation, or a converter that
you have not installed. LaTeX output may not be possible.
enumitem.sty
See section 3.1.2.3 (Modules) of the User's Guide for more information.
09:30:08.094: (buffer-new: ⌘N, ⌃F N)
09:30:25.185: Opening help file [doc/Intro.lyx]...Warning: Document class not available
----------------------------------------
The selected document class
Article (Standard Class)
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
article.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.
09:30:28.531: (help-open Intro: ⌃H I)
09:33:33.996: Previewing ...
09:33:34.000: (buffer-view pdf: ⌃⌘T)
09:33:34.024: python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.eps"
09:33:34.048: sh: convert: command not found
09:33:34.048: /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
09:33:34.049: Execution of "convert" failed.
09:33:34.049: python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.eps"
09:33:34.068: sh: convert: command not found
09:33:34.075: /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
09:33:34.076: Execution of "convert" failed.
09:33:34.081: latex "Intro.tex"support/Systemcall.cpp (292): Systemcall: 'python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.eps"' finished with exit code 1
support/Systemcall.cpp (292): Systemcall: 'python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.eps"' finished with exit code 1
09:33:34.593: This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
09:33:34.594: restricted \write18 enabled.
09:33:34.621: entering extended mode
09:33:34.625: (./Intro.tex
09:33:34.626: LaTeX2e <2014/05/01>
09:33:34.627: Babel <3.9k> and hyphenation patterns for 78 languages loaded.
09:33:34.868: Error while exporting format: PDF (ps2pdf)support/Systemcall.cpp (292): Systemcall: 'latex "Intro.tex"' finished with exit code 1
09:34:09.799: Automatic save done.
Hal Kierstead
2014-10-18 22:44:11 UTC
Permalink
Post by Stephan Witt
Post by Hal Kierstead
Post by Stephan Witt
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.
Post the contents here if the solution for the problem isn't obvious.
Stephan
Stephan -
Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me.
That's true. It's cryptic.
1) LyX is missing the "convert" utility.
I think,it's normally part of MacTeX and can be found in directory /usr/local/bin.
Either LyX cannot access it or the directory is not part of the PATH setting.
You can find it in the Preferences pane (use Command-, to open it).
Check the PATH-Prefix contents - /usr/local/bin should be there.
2) TeX cannot find article.cls and other class files.
These are part of MacTeX and can be found in directory /usr/local/texlive.
For me it's .../2012/texmf-dist/tex/latex/base/article.cls
Try to reconfigure LyX. But if you never used LyX before it might be pointless.
Stephan
Post by Hal Kierstead
Warning: Document class not available
----------------------------------------
The selected document class
American Mathematical Society (AMS) Article
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
amsart.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.
09:29:23.962: (dialog-toggle progress)Warning: Package not available
----------------------------------------
The module enumitem requires a package that is not
available in your LaTeX installation, or a converter that
you have not installed. LaTeX output may not be possible.
enumitem.sty
See section 3.1.2.3 (Modules) of the User's Guide for more information.
09:30:08.094: (buffer-new: ⌘N, ⌃F N)
09:30:25.185: Opening help file [doc/Intro.lyx]...Warning: Document class not available
----------------------------------------
The selected document class
Article (Standard Class)
requires external files that are not available.
The document class can still be used, but the
document cannot be compiled until the following
article.cls
See section 3.1.2.2 (Class Availability) of the
User's Guide for more information.
09:30:28.531: (help-open Intro: ⌃H I)
09:33:33.996: Previewing ...
09:33:34.000: (buffer-view pdf: ⌃⌘T)
09:33:34.024: python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.eps"
09:33:34.048: sh: convert: command not found
09:33:34.048: /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
09:33:34.049: Execution of "convert" failed.
09:33:34.049: python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.eps"
09:33:34.068: sh: convert: command not found
09:33:34.075: /Applications/LyX.app/Contents/Resources/scripts/convertDefault.py ERROR
09:33:34.076: Execution of "convert" failed.
09:33:34.081: latex "Intro.tex"support/Systemcall.cpp (292): Systemcall: 'python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/0_Applications_LyX_app_Contents_Resources_doc_clipart_footnoteQt4.eps"' finished with exit code 1
support/Systemcall.cpp (292): Systemcall: 'python -tt "/Applications/LyX.app/Contents/Resources/scripts/convertDefault.py" "png:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.png" "eps:/var/folders/jx/rtg_1y752p3889y2yykl4r600000gn/T/lyx_tmpdir.tCpZklwq2019/lyx_tmpbuf5/1_Applications_LyX_app_Contents_Resources_doc_clipart_referenceQt4.eps"' finished with exit code 1
09:33:34.593: This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
09:33:34.594: restricted \write18 enabled.
09:33:34.621: entering extended mode
09:33:34.625: (./Intro.tex
09:33:34.626: LaTeX2e <2014/05/01>
09:33:34.627: Babel <3.9k> and hyphenation patterns for 78 languages loaded.
09:33:34.868: Error while exporting format: PDF (ps2pdf)support/Systemcall.cpp (292): Systemcall: 'latex "Intro.tex"' finished with exit code 1
09:34:09.799: Automatic save done.
Stephen -

I have tried to follow your instructions, but do not no enough to have success. I did find this the PATH prefix:

/usr/texbin:/usr/local/gwTeX/bin/powerpc-apple-darwin-current:/usr/local/gwTeX/bin/i386-apple-darwin-current:/usr/local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/i386-apple-darwin-current:/sw/bin:/sw/sbin:/opt/local/teTeX/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/usr/sbin:/sbin

As I replied to Christopher, maybe it is a problem with MacTex and OS10.10.

Thanks,

Hal
Christopher Menzel
2014-10-18 22:52:11 UTC
Permalink
Whoops, sorry, I was reading messages FIFO instead of LIFO. :-) I note,
however, that another of Hal's problems is that LaTeX is not finding
.cls files. This has to do with the version of Python running in OS X. I
had that problem and fixed it taking the following steps (which I found
somewhere):

1. Open a Terminal.app session and run LyX from the command line with
the command:

/Applications/LyX.app/Contents/MacOS/lyx

2. From inside LyX, reconfigure (Tools -> Reconfigure).

3. Restart LyX.

This worked like a charm for me — though it doesn't obviously solve the
problem with the missing convert binary. Re that problem, trying typing
"which convert" from the command line. If nothing shows up, this
suggests a problem with your MacTeX installation since (as Stephan
noted) I believe this is installed by MacTeX (it's part of the
ImageMagick package, which TeX uses for processing graphics). If it does
show up, then it's definitely a path problem in your LaTeX or LyX
configuration.

-chris
Post by Stephan Witt
Post by Hal Kierstead
Post by Stephan Witt
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
To diagnose the problem open the messages pane (View menu) and look for error messages.
If there is none then enable the log output for graphics conversion.
Post the contents here if the solution for the problem isn't obvious.
Stephan
Stephan -
Thanks for the attention. This is what I got. Maybe it should be obvious what to do, but its mostly gibberish to me.
That's true. It's cryptic.
1) LyX is missing the "convert" utility.
I think,it's normally part of MacTeX and can be found in directory /usr/local/bin.
Either LyX cannot access it or the directory is not part of the PATH setting.
You can find it in the Preferences pane (use Command-, to open it).
Check the PATH-Prefix contents - /usr/local/bin should be there.
2) TeX cannot find article.cls and other class files.
These are part of MacTeX and can be found in directory /usr/local/texlive.
For me it's .../2012/texmf-dist/tex/latex/base/article.cls
Try to reconfigure LyX. But if you never used LyX before it might be pointless.
Stephan
Christopher Menzel
2014-10-18 22:33:34 UTC
Permalink
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
Couple of very quick ideas:

. Perhaps reconfiguring (Tools -> reconfigure) might help.
. If you aren't using the latest version of MacTeX
<http://tug.org/mactex/>, consider upgrading.

-chris
Rainer M Krug
2014-10-22 09:06:24 UTC
Permalink
THis seems to be a problem with paths and environmental variables passed
to sub-processes (also mentiond on the R sig mac list): Yosemite seems
to have implemented security mechanisms which do (to me) unknown things
to paths and environmental variables.

So, in a nutshell:

1) If you do a reconfigure in LyX started from the icon / finder /
spotlight, the reconfigure seems not to find the files needed, and does
finish nearly immediately and does not creates an (empty?) configuration
file

2) If you start lyx from the terminal

--8<---------------cut here---------------start------------->8---
/PATH/TO/LyX.app/Contents/MacOS/lyx
--8<---------------cut here---------------end--------------->8---

and reconfigure then, it is working.

Workaround:
Startt from terminal and reconfigure - after this everything seems to be
working

Solution:
No idea, but I guess an update in LyX

Hope this helps,

Rainer
Post by Christopher Menzel
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work
for me. I cannot even preview the help manuals. I can export them
to LaTex and then compile them with LaTex. This must be some path
problem, but I do not know how to deal with it. Any help would be
appreciated.
. Perhaps reconfiguring (Tools -> reconfigure) might help.
. If you aren't using the latest version of MacTeX
<http://tug.org/mactex/>, consider upgrading.
-chris
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
Yihui Xie
2014-10-22 16:10:50 UTC
Permalink
Yes, this may solve some problems but not all. The PATH bug is still
there on Yosemite, and I see it can still bite me in LyX after I
reconfigured from the terminal. For the time being, the only reliable
solution seems to be starting LyX from the terminal. See more info at
http://stackoverflow.com/q/26491934/559676 (and the link in the
answer). Since this is a general problem on Yosemite, you might find
other apps are affected as well (as long as they launch sub processes
and call programs that are not in /bin:/usr/bin:/sbin:/usr/sbin). The
solution of starting apps from the terminal should apply to all of
them.

Regards,
Yihui
--
Yihui Xie <***@gmail.com>
Web: http://yihui.name
Post by Rainer M Krug
THis seems to be a problem with paths and environmental variables passed
to sub-processes (also mentiond on the R sig mac list): Yosemite seems
to have implemented security mechanisms which do (to me) unknown things
to paths and environmental variables.
1) If you do a reconfigure in LyX started from the icon / finder /
spotlight, the reconfigure seems not to find the files needed, and does
finish nearly immediately and does not creates an (empty?) configuration
file
2) If you start lyx from the terminal
--8<---------------cut here---------------start------------->8---
/PATH/TO/LyX.app/Contents/MacOS/lyx
--8<---------------cut here---------------end--------------->8---
and reconfigure then, it is working.
Startt from terminal and reconfigure - after this everything seems to be
working
No idea, but I guess an update in LyX
Hope this helps,
Rainer
Post by Christopher Menzel
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work
for me. I cannot even preview the help manuals. I can export them
to LaTex and then compile them with LaTex. This must be some path
problem, but I do not know how to deal with it. Any help would be
appreciated.
. Perhaps reconfiguring (Tools -> reconfigure) might help.
. If you aren't using the latest version of MacTeX
<http://tug.org/mactex/>, consider upgrading.
-chris
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
Liviu Andronic
2014-10-22 16:47:29 UTC
Permalink
Post by Yihui Xie
Yes, this may solve some problems but not all. The PATH bug is still
there on Yosemite, and I see it can still bite me in LyX after I
reconfigured from the terminal. For the time being, the only reliable
solution seems to be starting LyX from the terminal.
Or ditching Apple altogether? :)

Liviu
Post by Yihui Xie
See more info at
http://stackoverflow.com/q/26491934/559676 (and the link in the
answer). Since this is a general problem on Yosemite, you might find
other apps are affected as well (as long as they launch sub processes
and call programs that are not in /bin:/usr/bin:/sbin:/usr/sbin). The
solution of starting apps from the terminal should apply to all of
them.
Regards,
Yihui
--
Web: http://yihui.name
Post by Rainer M Krug
THis seems to be a problem with paths and environmental variables passed
to sub-processes (also mentiond on the R sig mac list): Yosemite seems
to have implemented security mechanisms which do (to me) unknown things
to paths and environmental variables.
1) If you do a reconfigure in LyX started from the icon / finder /
spotlight, the reconfigure seems not to find the files needed, and does
finish nearly immediately and does not creates an (empty?) configuration
file
2) If you start lyx from the terminal
--8<---------------cut here---------------start------------->8---
/PATH/TO/LyX.app/Contents/MacOS/lyx
--8<---------------cut here---------------end--------------->8---
and reconfigure then, it is working.
Startt from terminal and reconfigure - after this everything seems to be
working
No idea, but I guess an update in LyX
Hope this helps,
Rainer
Post by Christopher Menzel
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work
for me. I cannot even preview the help manuals. I can export them
to LaTex and then compile them with LaTex. This must be some path
problem, but I do not know how to deal with it. Any help would be
appreciated.
. Perhaps reconfiguring (Tools -> reconfigure) might help.
. If you aren't using the latest version of MacTeX
<http://tug.org/mactex/>, consider upgrading.
-chris
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
--
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library
Yihui Xie
2014-10-22 18:16:51 UTC
Permalink
I do not use Mac OS X very often (I use it mostly for testing
purposes), so personally I do not care. It is easy to ditch Apple by
myself, but not all Apple users :( (Same thing for Windows)

Regards,
Yihui
--
Yihui Xie <***@gmail.com>
Web: http://yihui.name
Post by Liviu Andronic
Post by Yihui Xie
Yes, this may solve some problems but not all. The PATH bug is still
there on Yosemite, and I see it can still bite me in LyX after I
reconfigured from the terminal. For the time being, the only reliable
solution seems to be starting LyX from the terminal.
Or ditching Apple altogether? :)
Liviu
Hugo Hinterberger
2014-10-23 07:27:01 UTC
Permalink
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for
me. I cannot even preview the help manuals. I can export them to LaTex
and then compile them with LaTex. This must be some path problem, but I
do not know how to deal with it. Any help would be appreciated.
Hi,

I noticed that LyX did not run "Reconfigure" on Yosemite, at least not in
the directory that LyX expects it to be run.

Here are the steps that I took to get LyX 2.1.2 on Yosemite to compile a
document (fresh OS X installation):

1. Install MacTex # triggered installation of xcode command line tools
2. Install LyX # run once
2.1. Open Terminal
2.2. cd ~/Library/Application\ Support/LyX-2.1/ # user directory as
shown in "About LyX"
2.3. Run python /Applications/LyX.app/Content/Resources/configure.py #
path might be incorrect, I an not at my Mac at the moment, do a manual
reconfigure, must be in the correct directory (user directory)
3. Run LyX
4. Open document
5. Preview document

Regarding the "convert" utility, this is actually imagemagick (possibly
graphicsmagick) and I had to (following the recommended procedure) install
MacPorts first, and it took me a whole night to get imagemagick to install
through MacPorts (a lot of dependencies).

Kind regards,
Hugo
Stephan Witt
2014-10-23 08:02:20 UTC
Permalink
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
Hi,
I noticed that LyX did not run "Reconfigure" on Yosemite, at least not in the directory that LyX expects it to be run.
1. Install MacTex # triggered installation of xcode command line tools
2. Install LyX # run once
2.1. Open Terminal
2.2. cd ~/Library/Application\ Support/LyX-2.1/ # user directory as shown in "About LyX"
2.3. Run python /Applications/LyX.app/Content/Resources/configure.py # path might be incorrect, I an not at my Mac at the moment, do a manual reconfigure, must be in the correct directory (user directory)
3. Run LyX
4. Open document
5. Preview document
Regarding the "convert" utility, this is actually imagemagick (possibly graphicsmagick) and I had to (following the recommended procedure) install MacPorts first, and it took me a whole night to get imagemagick to install through MacPorts (a lot of dependencies).
I think you now have convert twice:
one in /opt/local/bin (from MacPorts) and another in /usr/local/bin (from MacTeX).

Because of the broken environment passing LyX cannot extend the system path for it's child processes.
The path list in preferences is effectively ignored. Perhaps it works for you because of MacPorts had
added /opt/local/bin to the system path?

Most people outside of Apple rate this as a serious bug of Yosemite.

See here for an excellent analysis:
http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite

At the moment there is no good solution at hand, sorry.

Stephan
Richard Heck
2014-10-23 15:16:01 UTC
Permalink
Post by Stephan Witt
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
Hi,
I noticed that LyX did not run "Reconfigure" on Yosemite, at least not in the directory that LyX expects it to be run.
1. Install MacTex # triggered installation of xcode command line tools
2. Install LyX # run once
2.1. Open Terminal
2.2. cd ~/Library/Application\ Support/LyX-2.1/ # user directory as shown in "About LyX"
2.3. Run python /Applications/LyX.app/Content/Resources/configure.py # path might be incorrect, I an not at my Mac at the moment, do a manual reconfigure, must be in the correct directory (user directory)
3. Run LyX
4. Open document
5. Preview document
Regarding the "convert" utility, this is actually imagemagick (possibly graphicsmagick) and I had to (following the recommended procedure) install MacPorts first, and it took me a whole night to get imagemagick to install through MacPorts (a lot of dependencies).
one in /opt/local/bin (from MacPorts) and another in /usr/local/bin (from MacTeX).
Because of the broken environment passing LyX cannot extend the system path for it's child processes.
The path list in preferences is effectively ignored. Perhaps it works for you because of MacPorts had
added /opt/local/bin to the system path?
Most people outside of Apple rate this as a serious bug of Yosemite.
http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite
At the moment there is no good solution at hand, sorry.
...except to run LyX itself from a terminal, right?

Richard
Stephan Witt
2014-10-23 15:47:59 UTC
Permalink
Post by Richard Heck
Post by Stephan Witt
Post by Hal Kierstead
I am trying to use LyX 2.1.2 with Yosemite, but review does not work for me. I cannot even preview the help manuals. I can export them to LaTex and then compile them with LaTex. This must be some path problem, but I do not know how to deal with it. Any help would be appreciated.
Hi,
I noticed that LyX did not run "Reconfigure" on Yosemite, at least not in the directory that LyX expects it to be run.
1. Install MacTex # triggered installation of xcode command line tools
2. Install LyX # run once
2.1. Open Terminal
2.2. cd ~/Library/Application\ Support/LyX-2.1/ # user directory as shown in "About LyX"
2.3. Run python /Applications/LyX.app/Content/Resources/configure.py # path might be incorrect, I an not at my Mac at the moment, do a manual reconfigure, must be in the correct directory (user directory)
3. Run LyX
4. Open document
5. Preview document
Regarding the "convert" utility, this is actually imagemagick (possibly graphicsmagick) and I had to (following the recommended procedure) install MacPorts first, and it took me a whole night to get imagemagick to install through MacPorts (a lot of dependencies).
one in /opt/local/bin (from MacPorts) and another in /usr/local/bin (from MacTeX).
Because of the broken environment passing LyX cannot extend the system path for it's child processes.
The path list in preferences is effectively ignored. Perhaps it works for you because of MacPorts had
added /opt/local/bin to the system path?
Most people outside of Apple rate this as a serious bug of Yosemite.
http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite
At the moment there is no good solution at hand, sorry.
...except to run LyX itself from a terminal, right?
Yes, probable. But

1. I wouldn't call this a good solution.
2. IMHO, you have to run it from terminal not only once as some posts claims.
This will solve the reconfigure issue only. Your BIBINPUTS and TEXINPUTS e.g.
environment will not be passed when LyX is started from dock e.g. (not tested yet).
So you may be in trouble with bibliography and other included material.

What I want to try:
1. Test and provide an acceptable (hackish) workaround for the PATH problem.
2. See if it helps to pass our modifications to environment variables
with the QProcess::setProcessEnvironment() method. If this works we have
a way to solve this issue. If this doesn't work - then there is not much hope
until the Qt-Library is ready for Yosemite, IMHO. Alternatively one can wait
until Apple people realize they are violating POSIX standards and correct this.

Stephan
Richard Heck
2014-10-23 17:19:25 UTC
Permalink
Post by Stephan Witt
Post by Richard Heck
Post by Stephan Witt
http://tex.stackexchange.com/questions/208181/why-did-my-tex-related-gui-program-stop-working-in-mac-os-x-yosemite
At the moment there is no good solution at hand, sorry.
...except to run LyX itself from a terminal, right?
Yes, probable. But
1. I wouldn't call this a good solution.
Sorry, no, I only meant: Solution that has a chance of working right now.
Post by Stephan Witt
2. IMHO, you have to run it from terminal not only once as some posts claims.
Yes, that is my understanding: You have to run it from a terminal every
time.
Post by Stephan Witt
1. Test and provide an acceptable (hackish) workaround for the PATH problem.
2. See if it helps to pass our modifications to environment variables
with the QProcess::setProcessEnvironment() method. If this works we have
a way to solve this issue. If this doesn't work - then there is not much hope
until the Qt-Library is ready for Yosemite, IMHO.
Worth a try.
Post by Stephan Witt
Alternatively one can wait until Apple people realize they are violating
POSIX standards and correct this.
Well, and hope they care.

Richard

Loading...