[Tex/LaTex] Lyx 2.x: Document Class Not Available – Mac OS X 10.10 Yosemite PB 3

document-classeserrorslyxmac

I'm running the latest Mac OS X 10.10 Yosemite beta, and I ran into a problem installing MacTeX (2014) and LyX (2.1.2). Upon successful installation of both, LyX would launch with an error: "Document Class Not Available", and only the LyX document classes would show up under Document > Settings > Document Class.

I'm sure others will be running into this problem soon, so what steps do I need to take to solve this problem?

Best Answer

Well, I managed to figure it out myself, but I want the procedure to be available to anyone. The error seems to be a result of LyX looking for the wrong installation of Python. In OS X 10.10, the Python version is 2.7.6, causing a problem according to this page.

The steps I took to fix the problem are:

  1. Run LyX from Terminal.app by typing the following then pressing enter:

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

  2. Once LyX is running from the terminal, select the menu option Tools > Reconfigure. You should see LyX running through a checklist in the Terminal. Let it finish. Once this procedure complete, quit LyX and Terminal, and try restarting LyX.

It took me two tries, but LyX is back up and running for me.