Erik Hammel <hammyz.pub <at> gmail.com> writes:

> 
> Erik Hammel <hammyz.pub <at> gmail.com> writes:
> 
> > 
> > i'm installing LyX 2.0.4-3 on a windows7 machine and when it finishes, all 
the 
> > document classes are "unavailable". i have MiKTeX 2.9 installed in a 
separate 
> > folder, but intact with all the standard .cls and .sty files. At first, 
> looking 
> > at tools->TeX information it showed that it found all the classes and 
> > styles 
> and 
> > yet still listed them as unavailable in the document->settings->document 
class 
> > pane. When i remove the user directory and rerun configure.py from the 
command 
> > prompt, everything looks ok, but tools->TeX information is now blank. when 
> > i 
> > check the ~user\configure.log, it gives:
> > 
> > i believe it's the failure to remove files that's causing it to exit 
> > prematurely. i get verification that it stops too soon because the 
> textclass.lst 
> > file states:
> > 
> > # This file declares layouts and their associated definition files
> > # (include dir. relative to the place where this file is).
> > # It contains only default values, since chkconfig.ltx could not be run
> > # for some reason. Run ./configure.py if you need to update it after a
> > # configuration change.
> 
> i already figured out a workaround. in the textclass.lst file, all the 
> entries 
> looks like this:
> 
> "article" "article" "article" "false" "article.cls"
> 
> if you change all the "false"s to "true", the document classes become 
available. 
> still, if anyone is interested, i would like to know how to do it the 
legitimate 
> way, since who knows what else is being omitted aside from the classes list.
> 
> 


ok, it failed after i tried reconfiguring after installing some other packages. 
those packages aren't at fault, i'm getting an error i got before (from the 
~user\configure.log):

DEBUG: Removing file a b.tex
DEBUG: Removing file a b.log
DEBUG: Failed to remove file texput.log


this error causes the program to exit even before the previous .ltx files. the 
standard output also gives this:

Checking whether TeX allows spaces in file names... yes
Traceback (most recent call last):
  File "c:\Apps\Editors\LyX\Resources\configure.py", line 1444, in <module>
    windows_style_tex_paths = checkTeXPaths()
  File "c:\Apps\Editors\LyX\Resources\configure.py", line 113, in checkTeXPaths
    from ctypes import windll, create_unicode_buffer
  File "C:\Program Files (x86)\Python27\lib\ctypes\__init__.py", line 10, in 
<module>
    from _ctypes import Union, Structure, Array
ImportError: DLL load failed: %1 is not a valid Win32 application.


the way i fixed this before to get it slightly further was by upgrading to 
MiKTeX 2.9, but that's what i have installed now. by the way, i have also 
ensured that i have full access rights and ownership of all MiKTeX, LyX, and 
user files and directories. Thanks in advance for your help.


Reply via email to