Re: Have trouble running Lyx 2.1.4 in Win10

2015-11-03 Thread Uwe Stöhr

Am 28.10.2015 um 08:28 schrieb QIN Peng:


How can I sovle this problem and use LyX?


Since you previously installed MiKTeX It might be that it is misconfigured.

It seems also that you have Python installed. If you have Python 
installed, please remove its path from Windows PATH environment variable 
(if you find this setting). If you don't explicitly need Python, 
consider to uninstall it or replace it with the older Python 2.7.


I propose the following:

1. handle Python as described
2. open an Internet connection
3. uninstall LyX _completely_
4. uninstall MiKTeX _completely_
5. reinstall LyX using the latest bundle installer:
ftp://ftp.lyx.org/pub/lyx/bin/2.1.4/LyX-2.1.4-Bundle-4.exe

This should do the job.

Please report if this helped you.

thank and regards
Uwe


Re: Have trouble running Lyx 2.1.4 in Win10

2015-10-28 Thread PhilipPirrip

On 10/28/2015 03:28 AM, QIN Peng wrote:

I have installed MikTex 2.9 through ProTex before. Then I installed Lyx
2.1.4 bundle version and during the installing process, it reminded me
to update MikTex's package, and I updated it with MikTeX Package Manager
through the internet.



I don't know about Win10, but several of my attempts to install MikTeX 
and LyX failed until I downloaded the whole MikTeX package, started 
installation from the complete source (but still installing a subset of 
packages, that'll be offered by the installer).

After that I installed LyX and things finally worked.
I have no idea why!



Have trouble running Lyx 2.1.4 in Win10

2015-10-28 Thread QIN Peng
Hello,
It is my first time to use Lyx and LaTex.
I have installed MikTex 2.9 through ProTex before. Then I installed Lyx
2.1.4 bundle version and during the installing process, it reminded me to
update MikTex's package, and I updated it with MikTeX Package Manager
through the internet.
When I opened Lyx, error message showed as:
LyX: No textclass is found. And it let me to choose from three choices,
"Reconfigure", "Without LaTeX" and "Continue".
I chose Reconfigure and LyX opened, but no document classes are available.
When I attempt to reconfigure LyX, I get an error message:
The system reconfiguration has failed. Default textclass is used but LyX
may not be able to work properly. Please reconfigure again if needed.
And the error log showed in the messsage pane was:
15:41:15.285: (dialog-toggle progress)
15:41:20.755: Running configure...
15:41:20.807: python -tt "C:/Program Files
(x86)/Documents/LyX/Resources/configure.py" --binary-dir="C:/Program Files
(x86)/Documents/LyX/bin/"
15:41:21.132: checking for DVI to DTL converter...
15:41:21.139: +checking for "dv2dt"...  yes
15:41:21.143: checking for DTL to DVI converter...
15:41:21.147: +checking for "dt2dv"...  yes
15:41:21.150: checking for a Latex2e program...
15:41:21.151: +checking for "latex"...  yes
15:41:21.153: checking for a DVI postprocessing program...
15:41:21.154: +checking for "pplatex"...  yes
15:41:21.157: checking for pLaTeX, the Japanese LaTeX...
15:41:21.163: +checking for "platex"...  yes
15:41:21.176: Traceback (most recent call last):
15:41:21.179:   File "C:/Program Files
(x86)/Documents/LyX/Resources/configure.py", line 1557, in 
15:41:21.184: LATEX = checkLatex(dtl_tools)
15:41:21.187:   File "C:/Program Files
(x86)/Documents/LyX/Resources/configure.py", line 482, in checkLatex
15:41:21.189: if cmdOutput(PLATEX + ' chklatex.ltx').find('pLaTeX2e')
!= -1:
15:41:21.195:   File "C:/Program Files
(x86)/Documents/LyX/Resources/configure.py", line 72, in cmdOutput
15:41:21.196: stdout=subprocess.PIPE, universal_newlines=True)
15:41:21.199:   File "C:\Program Files
(x86)\Documents\LyX\Python\lib\subprocess.py", line 710, in __init__
15:41:21.200: errread, errwrite)
15:41:21.201:   File "C:\Program Files
(x86)\Documents\LyX\Python\lib\subprocess.py", line 958, in _execute_child
15:41:21.203: startupinfo)
15:41:21.204: UnicodeEncodeError: 'ascii' codec can't encode character
u'\u9e4f' in position 25: ordinal not in range(128)
15:41:21.210: Reloading configuration.\..\..\src\support\Systemcall.cpp
(292): Systemcall: 'python -tt "C:/Program Files
(x86)/Documents/LyX/Resources/configure.py" --binary-dir="C:/Program Files
(x86)/Documents/LyX/bin/"' finished with exit code 1
15:41:23.269: (reconfigure)

How can I sovle this problem and use LyX?

Thanks for help.

A new user of LyX


Re: Have trouble running Lyx 2.1.4 in Win10

2015-10-28 Thread PhilipPirrip

On 10/28/2015 05:33 AM, Michael Berger wrote:

You got errors in the first place because some packages were still
missing. By installing the complete content of MiKTeX you got every
single packag needed or not.
Michael


No, I never installed the complete content of MikTeX, I only had it 
downloaded before I started the installation (as I said).





Re: Have trouble running Lyx 2.1.4 in Win10

2015-10-28 Thread John Kane
I believe that " MiKTeX you got" should read " MiKTeX you will get".

Michael is suggesting installing the complete MiKTeX.  It takes up a lot of
space but can be awfully useful when you need some obscure package to tweak
that last formatting problem. Otherwise you waste a lot of time loading
individual packages on an ad hoc basis.

On 28 October 2015 at 12:54, PhilipPirrip  wrote:

> On 10/28/2015 05:33 AM, Michael Berger wrote:
>
>> You got errors in the first place because some packages were still
>> missing. By installing the complete content of MiKTeX you got every
>> single packag needed or not.
>> Michael
>>
>
> No, I never installed the complete content of MikTeX, I only had it
> downloaded before I started the installation (as I said).
>
>
>


-- 
John Kane
Kingston ON Canada


Re: Have trouble running Lyx 2.1.4 in Win10

2015-10-28 Thread Michael Berger

On 10/28/2015 09:44 AM, PhilipPirrip wrote:

On 10/28/2015 03:28 AM, QIN Peng wrote:

I have installed MikTex 2.9 through ProTex before. Then I installed Lyx
2.1.4 bundle version and during the installing process, it reminded me
to update MikTex's package, and I updated it with MikTeX Package Manager
through the internet.



I don't know about Win10, but several of my attempts to install MikTeX 
and LyX failed until I downloaded the whole MikTeX package, started 
installation from the complete source (but still installing a subset 
of packages, that'll be offered by the installer).

After that I installed LyX and things finally worked.
I have no idea why!


You got errors in the first place because some packages were still 
missing. By installing the complete content of MiKTeX you got every 
single packag needed or not.

Michael