Re: Document class missing after installation

2013-06-09 Thread Julien Rioux

On 07/06/2013 3:18 PM, Y.A. Sharif wrote:








Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed
response to your email. I went step by step according to your suggestions.
1. I could not find any configure.log file under
C:\users\...\Roaming\LyX 2.0. There was only one folder named "cache"
and a file outside the folder named "session".
2.I tried to run configuration script in DOS windows: C:\Program
Files(x86)\LyX20\Python\Python.exe , this one did not show any error.
But when I ran the other one with configure.py it showed the following
messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11,
in , 
import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 
from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.

I really appreciate your help and time.

Thank you very much.

Regards
Sharif


*From:* Paul A. Rubin 
*To:* Y.A. Sharif 
*Sent:* Friday, June 7, 2013 9:37 AM
*Subject:* Re: Document class missing after installation

Y.A.,

LyX creates a user directory for you, where it stores your preferences
and other "local" files. On my Windows 7 partition, the user directory
is C:\Users\Paul\AppData\Roaming\LyX2.0. If you have trouble finding it,
Help > About LyX should point you to it.

In that directory, there should be a text file named configure.log. (If
not, keep reading, I'll get to that case.) It's generated when the
Python configuration script runs. (This is script is both run at
installation and when you click Tools > Reconfigure in LyX.) In it, you
should see lines like the following:

INFO: checking for a Latex2e program...
INFO: +checking for "latex"...  yes
INFO: checking for a DVI postprocessing program...
INFO: +checking for "pplatex"...  yes

and eventually

INFO: checking for the pdflatex program...
INFO: +checking for "pdflatex"...  yes

If they read "no", it means LyX failed to detect MiKTeX for some reason.
I've seen this happen when the user had Cygwin installed, for instance.
I don't know if it is still true, but Cygwin used to come with a broken
copy of LaTeX, and if Cygwin was in front of MiKTeX on the system
command path, LyX would test the Cygwin version of latex.exe and
conclude that there was no working LaTeX compiler on the system.

If the log shows that LyX found MiKTeX ('yes' responses), go back to a
DOS prompt and run 'kpsewhich article.cls' (if the article class is
"missing" according to LyX) and make sure that MiKTeX finds it. If that
looks correct, or if the log file is missing, then I suggest you cd to
your LyX user directory and run the configuration script in a DOS
window. The command line will look something like the following
(allowing for the possibility that your installation path is different):

"C:\Program Files (x86)\LyX20\Python\python.exe" "C:\Program Files
(x86)\LyX20\Resources\configure.py"

See if any error messages appear.

Paul

On 06/06/2013 06:44 PM, Y.A. Sharif wrote:


Thankk you Paul for your reply.
I have checked according to your suggestion. It shows in DOS prmopt
:"this is pdfTeX, Version 3.14-...-1.40.13
But I could not understand your 2nd paragraph. Do you want me to check
the log generated by lyx ? Little confused, could you explain little more.
Thank you.


Y.A.Sharif


--------
*From:* Paul Rubin  <mailto:ru...@msu.edu>
*To:* lyx-users@lists.lyx.org <mailto:lyx-us...@lists..lyx.org>
*Sent:* Thursday, June 6, 2013 3:11 PM
*Subject:* Re: Document class missing after installation

Is the MiKTeX bin directory on your system path? Can you run "latex
--version"
at a DOS prompt (without supplying a path to MiKTeX) and get a response
with a plausible version date?

If yes, take a look at the log generated by the installer (should be
in your user directory, I think) and see if it found a LaTeX installation.
You might want to publish the log to the list.

Paul












This looks to me like http://www.lyx.org/trac/ticket/8691 again.

--
Julien



Re: Document class missing after installation

2013-06-08 Thread Uwe Stöhr

Am 07.06.2013 21:18, schrieb Y.A. Sharif:


2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. But when 
I ran the other one with configure.py it showed the following messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 


That is why LyX comes with its own python. But do you really need Python 2.5? 
If not I propose that you

1. Uninstall Python
2. Uninstall LyX _completely_
3. Open an Internet connection and reinstall LyX using the latest normal installer (not the bundle 
version)


If you need your Python, you should be able to update it to version 2.7:

1. Uninstall Python
2. Uninstall LyX _completely_
3. install Python 2.7 (not 3.x!!!)
4. Open an Internet connection and reinstall LyX using the latest normal 
installer

The installer asks you to update MiKTeX, please allow this (this might take a minute)! The installer 
also shows you the path to the file latex.exe in an installer page. What path is shown for you?


If this doesn't work, what is your version of Windows 7, do you have admin permissions and how was 
MiKTeX installed (together with LyX or separate?). If MiKTeX was installed separately or was already 
there, what version do yo have?


regards Uwe


Re: Document class missing after installation

2013-06-07 Thread Paul A. Rubin
You may need to add the path to Python to your system command path (so 
that it can find modules). In a DOS window, while in your LyX user 
directory, try the following:


set PATH=%PATH%;"C:\Program Files(x86)\LyX20\Python\"
python "C:\Program Files (x86)\LyX 2.0\Resources\configure.py"

Hopefully that will allow the script to execute.

Paul

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, 
in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 
from collections import deque
Import error: No module named collections





Re: Document class missing after installation

2013-06-07 Thread Richard Heck

On 06/07/2013 03:18 PM, Y.A. Sharif wrote:


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed 
response to your email. I went step by step according to your 
suggestions.
1. I could not find any configure.log file under 
C:\users\...\Roaming\LyX 2.0. There was only one folder named "cache" 
and a file outside the folder named "session".
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. 
But when I ran the other one with configure.py it showed the following 
messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, 
in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 
from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.


I'm not on Windows, again, but the problem appears to be that there is 
no collections.py file on your system. It looks as though the wrong 
version of python is being run.


You should be able to configure manually. Open a DOS window and get into 
your user directory. Then run the configuration script manually, however 
you did it before.


Richard



Re: Document class missing after installation

2013-06-07 Thread Y.A. Sharif


 






 


Dear Rubin
Thank you very much for your quick reply. I am sorry for the delayed response 
to your email. I went step by step according to your suggestions. 
1. I could not find any configure.log file under C:\users\...\Roaming\LyX 2.0. 
There was only one folder named "cache" and a file outside the folder named 
"session".
2.I tried to run configuration script in DOS windows: C:\Program 
Files(x86)\LyX20\Python\Python.exe , this one did not show any error. But when 
I ran the other one with configure.py it showed the following messages:
File "C:\Program Files (x86)\LyX 2.0\Resources\configure.py", line 11, in , 

import  sys, os, re , shutil, glob, logging, subprocess
File "C:\python25\lib\subprocess.py", line375, in
import threading
File "C:\python25\lib\threading.py", line 13, in 

from collections import deque
Import error: No module named collections

I again apologize for being little late to reply to the group and rubin.

I really appreciate your help and time.

Thank you very much.

Regards
Sharif



 From: Paul A. Rubin 
To: Y.A. Sharif  
Sent: Friday, June 7, 2013 9:37 AM
Subject: Re: Document class missing after installation
 


Y.A.,

LyX creates a user directory for you, where it stores your
preferences and other "local" files. On my Windows 7 partition, the
user directory is C:\Users\Paul\AppData\Roaming\LyX2.0. If you have
trouble finding it, Help > About LyX should point you to it.

In that directory, there should be a text file named configure.log.
(If not, keep reading, I'll get to that case.) It's generated when
the Python configuration script runs. (This is script is both run at
installation and when you click Tools > Reconfigure in LyX.) In
it, you should see lines like the following:

INFO: checking for a Latex2e program... 
INFO: +checking for "latex"...  yes 
INFO: checking for a DVI postprocessing program... 
INFO: +checking for "pplatex"...  yes 

and eventually

INFO: checking for the pdflatex program... 
INFO: +checking for "pdflatex"...  yes 

If they read "no", it means LyX failed to detect MiKTeX for some
reason. I've seen this happen when the user had Cygwin installed,
for instance. I don't know if it is still true, but Cygwin used to
come with a broken copy of LaTeX, and if Cygwin was in front of
MiKTeX on the system command path, LyX would test the Cygwin version
of latex.exe and conclude that there was no working LaTeX compiler
on the system.

If the log shows that LyX found MiKTeX ('yes' responses), go back to
a DOS prompt and run 'kpsewhich article.cls' (if the article class
is "missing" according to LyX) and make sure that MiKTeX finds it.
If that looks correct, or if the log file is missing, then I suggest
you cd to your LyX user directory and run the configuration script
in a DOS window. The command line will look something like the
following (allowing for the possibility that your installation path
is different):

"C:\Program Files (x86)\LyX20\Python\python.exe" "C:\Program Files
(x86)\LyX20\Resources\configure.py"

See if any error messages appear.

Paul


On 06/06/2013 06:44 PM, Y.A. Sharif wrote:


>
> 
>Thankk you Paul for your reply.
>I have checked according to your suggestion. It shows in DOS prmopt :"this is 
>pdfTeX, Version 3.14-...-1.40.13
>But I could not understand your 2nd paragraph. Do you want me to check the log 
>generated by lyx ? Little confused, could you explain little more.
>Thank you.
>
>
>Y.A.Sharif
>
>
>
>
>
>
> From: Paul Rubin 
>To: lyx-users@lists.lyx.org 
>Sent: Thursday, June 6, 2013 3:11 PM
>Subject: Re: Document class missing after installation
> 
>
>Is the MiKTeX bin directory on your system path? Can you
  run "latex --version"
>at a DOS prompt (without supplying a path to MiKTeX) and
  get a response
>with a plausible version date?
>
>If yes, take a look at the log generated by the installer
  (should be
>in your user directory, I think) and see if it found a
  LaTeX installation.
>You might want to publish the log to the list.
>
>Paul
>
>
>
>
>

Re: Document class missing after installation

2013-06-06 Thread Paul Rubin
Is the MiKTeX bin directory on your system path? Can you run "latex --version"
at a DOS prompt (without supplying a path to MiKTeX) and get a response
with a plausible version date?

If yes, take a look at the log generated by the installer (should be
in your user directory, I think) and see if it found a LaTeX installation.
You might want to publish the log to the list.

Paul




Re: Document class missing after installation

2013-06-06 Thread Y.A. Sharif


 
Yes , you are right. I am using windows 7. But previously it was not creating 
any mess with the other versions of lyx. I just installed lyx 2.0.6 and it is 
giving me hard time. I tried installing the bundle too after uninstalling 
everything. Still not working.
Any further suggestions??
Thanks Richard.
Regards
Y.A.Sharif





 From: Richard Heck 
To: Y.A. Sharif  
Cc: "lyx-users@lists.lyx.org"  
Sent: Thursday, June 6, 2013 11:56 AM
Subject: Re: Document class missing after installation
 


On 06/06/2013 11:48 AM, Y.A. Sharif wrote:


>
> Dear Friends
>I am new to lyx 2.0.6 (new version). I got the lyx 2.0.6 and the new version 
>of miktex installed on my laptop. But it is not showing any document 
>class(like KOMA script etc).
>I almost tried several possible ways to get it installed and work but 
>failed.Can anyone give me suggestion or advice or guideline to make it work 
>properly.
I assume this must be Windows? If so, the usual advice is to
uninstall both LyX and MikTeX and then use the Bundle installer to
install everything all at once.

Uwe or someone else on Windows will be able to give better advice.

Oh, first, you have tried Tools>Reconfigure?

Richard

Re: Document class missing after installation

2013-06-06 Thread Richard Heck

On 06/06/2013 11:48 AM, Y.A. Sharif wrote:


 Dear Friends
I am new to lyx 2.0.6 (new version). I got the lyx 2.0.6 and the new 
version of miktex installed on my laptop. But it is not showing any 
document class(like KOMA script etc).
I almost tried several possible ways to get it installed and work but 
failed.Can anyone give me suggestion or advice or guideline to make it 
work properly.


I assume this must be Windows? If so, the usual advice is to uninstall 
both LyX and MikTeX and then use the Bundle installer to install 
everything all at once.


Uwe or someone else on Windows will be able to give better advice.

Oh, first, you have tried Tools>Reconfigure?

Richard