On Sep 6, 2006, at 12:30 PM, Bennett Helm wrote:

On Sep 6, 2006, at 12:14 PM, Stephen Buonopane wrote:

On Sep 6, 2006, at 10:44 AM, Bennett Helm wrote:

On Sep 6, 2006, at 9:05 AM, Stephen Buonopane wrote:

I have finally upgraded from LyX 1.3.5 to 1.4.2 after finishing a big project in 1.3. LyX 1.4.2 seems to launch fine, but when I try to open a new document I get the "Can't load document class error". Eventually a new document opens, but every click or keystroke brings up the spinning beach ball and eventually LyX hangs. Activity viewer shows a python script running and eating up 75-80% of the CPU before it hangs. I presume it is configure.py? But I'm not sure what the problem is? I've tried reconfigure, rehash and all the text classes show up in the TeX Info window. Any ideas?

Is there any output in Console.app as this happens?

You might also try running LyX from the Terminal to show debugging information. The following will spit out too much info, but it would be interesting to see what it says when you try then to open a new document:

/Applications/LyX.app/Contents/MacOS/lyx -dbg any

(Of course, substitute the appropriate path to LyX.app for / Applications if you have LyX somewhere else.)

Bennett

Below is what I get in the console, similar output from lyx -dbg.
It just keeps sending out the same error output over and over until I force quit.
I noticed that my permissions on ~/Library/ are set to "rwx------".
Does that prevent lyx.app from reading the layout files?


===== Wednesday, September 6, 2006 12:06:31 PM US/Eastern =====
LyXComm: Pipe /Users/sbuonopa/Library/Application Support/ LyX-1.4/.lyxpipe.in already exists. If no other LyX program is active, please delete the pipe by hand and try again.
Cannot read layout file `'.
LyX: Error reading inputfile: [around line 49 of file /tmp/ lyx_tmpdir689V3CzBN/689LjeaBh] LyX: Error reading inputfile: /Users/sbuonopa/Library/Application Support/LyX-1.4/layouts/stdclass.inc [around line 9 of file / Applications/LyX.app/Contents/Resources/layouts/article.layout] Error reading `/Applications/LyX.app/Contents/Resources/layouts/ article.layout'

This tells me that you've got stdclass.inc in your LyX *User's* folder, which I'm assuming you must have customized for your 1.3.x installation. When you upgraded to 1.4.2, the LyX-Installer copied your LyX User's folder from ~/Library/Application Support/LyX to ~/ Library/Application Support/LyX-1.4. However, I suspect the problem is the resulting incompatibility between the layout files (and hence stdclass.inc) between 1.3.x and 1.4.x.

So, if you move stdclass.inc out of the LyX-1.4 User's folder and restart LyX, this problem should be solved. (I hope!)

Bennett




Yes, that was the problem. I removed my customized stdclass.inc from the Users layout folder and everything works fine. What is the difference with the new layout format? Do I just need to add "Format 2" at the beginning? I have a number of other customized layout files that I would like to keep using. Thanks for the help.

Reply via email to