Re: Result of: Python help needed for configure.py - MiKTeX-problem
Bo == Bo Peng [EMAIL PROTECTED] writes: When the check is unsuccessful the line becomes invalid and therefore the while loop breaks. The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : Bo I did not like chkconfig.ltx but was not able to replace it. Bo chkconfig.ltx uses latex to check latex packages and generate a Bo result file. It would be slower and cleaner to test each package Bo one by one in python, but I was not able to decipher the latex Bo code. The part of chkconfig.ltx that tests for available packages could indeed use kpsewhich for testing, but I am not sure this would fix the bug above. JMarc
Re: Result of: Python help needed for configure.py - MiKTeX-problem
Uwe == Uwe Stöhr [EMAIL PROTECTED] writes: Uwe When MiKTeX's option Install Missing Packages on the fly is set Uwe as Yes but no Internet connection is open when \ifFileExists is Uwe invoked, the latex-script is closed by MiKTeX and you get in the Uwe console: Uwe latex: No Data Uwe I wrote an email to the MiKTeX-developer but I don't have hope Uwe that this could easily be fixed :-(. This is pretty bad indeed. Does latex return an error code in this case? JMarc
Re: Result of: Python help needed for configure.py - MiKTeX-problem
Jean-Marc Lasgouttes schrieb: Uwe I wrote an email to the MiKTeX-developer but I don't have hope Uwe that this could easily be fixed :-(. This is pretty bad indeed. Does latex return an error code in this case? No, nothing. He could confirm the bug, but I don't know what he plan to fix this. Uwe
Re: Result of: Python help needed for configure.py - MiKTeX-problem
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> When the check is unsuccessful the line becomes invalid and >> therefore the while loop breaks. The problem of this is line 77 in >> chkconfig.ltx (command definition of \TestItem) : Bo> I did not like chkconfig.ltx but was not able to replace it. Bo> chkconfig.ltx uses latex to check latex packages and generate a Bo> result file. It would be slower and cleaner to test each package Bo> one by one in python, but I was not able to decipher the latex Bo> code. The part of chkconfig.ltx that tests for available packages could indeed use kpsewhich for testing, but I am not sure this would fix the bug above. JMarc
Re: Result of: Python help needed for configure.py - MiKTeX-problem
> "Uwe" == Uwe Stöhr <[EMAIL PROTECTED]> writes: Uwe> When MiKTeX's option "Install Missing Packages on the fly" is set Uwe> as "Yes" but no Internet connection is open when \ifFileExists is Uwe> invoked, the latex-script is closed by MiKTeX and you get in the Uwe> console: Uwe> latex: No Data Uwe> I wrote an email to the MiKTeX-developer but I don't have hope Uwe> that this could easily be fixed :-(. This is pretty bad indeed. Does latex return an error code in this case? JMarc
Re: Result of: Python help needed for configure.py - MiKTeX-problem
Jean-Marc Lasgouttes schrieb: Uwe> I wrote an email to the MiKTeX-developer but I don't have hope Uwe> that this could easily be fixed :-(. This is pretty bad indeed. Does latex return an error code in this case? No, nothing. He could confirm the bug, but I don't know what he plan to fix this. Uwe
Re: Result of: Python help needed for configure.py - MiKTeX-problem
Bo Peng schrieb: The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : I did not like chkconfig.ltx but was not able to replace it. chkconfig.ltx uses latex to check latex packages and generate a result file. It would be slower and cleaner to test each package one by one in python, but I was not able to decipher the latex code. chkconfig.ltx works fine and needn't to be replaced. The problem is here MiKTeX that quits the script instead of printing an error message and then continue. regards Uwe
Re: Result of: Python help needed for configure.py - MiKTeX-problem
Bo Peng schrieb: The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : I did not like chkconfig.ltx but was not able to replace it. chkconfig.ltx uses latex to check latex packages and generate a result file. It would be slower and cleaner to test each package one by one in python, but I was not able to decipher the latex code. chkconfig.ltx works fine and needn't to be replaced. The problem is here MiKTeX that quits the script instead of printing an error message and then continue. regards Uwe
Result of: Python help needed for configure.py - MiKTeX-problem
+checking for package geometry [geometry]... yes +checking for package jurabib [jurabib]... creating packages.lst creating doc/LaTeXConfig.lyx LyX: Fertig! lyx: Disabling LyX socket. And this is the problem: In the example above configure.py checks for the LaTeX-package jurabib and MiKTeX tries to install it as it isn't currently installed. As no internet connection is available this is of course unsuccessful. But now comes the problem: configure.py doesn't continue but jumps to the section where the list files are created - the created are buggy because the inspection of LaTeX was incomplete. I investigated a lot now: The reason for this is this routine in configure.py: # we have chklayouts.tex, then process it fout = os.popen(LATEX + ' wrap_chkconfig.ltx') while True: line = fout.readline() if not line: break; if re.match('^\+', line): print line, fout.close() When the check is unsuccessful the line becomes invalid and therefore the while loop breaks. The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : \IfFileExists{\file} {} {\IfFileExists{\file.#4}{}{\existsfalse}} When MiKTeX's option Install Missing Packages on the fly is set as Yes but no Internet connection is open when \ifFileExists is invoked, the latex-script is closed by MiKTeX and you get in the console: == latex: No Data I wrote an email to the MiKTeX-developer but I don't have hope that this could easily be fixed :-(. regards Uwe
Re: Result of: Python help needed for configure.py - MiKTeX-problem
When the check is unsuccessful the line becomes invalid and therefore the while loop breaks. The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : I did not like chkconfig.ltx but was not able to replace it. chkconfig.ltx uses latex to check latex packages and generate a result file. It would be slower and cleaner to test each package one by one in python, but I was not able to decipher the latex code. Bo
Result of: Python help needed for configure.py - MiKTeX-problem
+checking for package geometry [geometry]... yes +checking for package jurabib [jurabib]... creating packages.lst creating doc/LaTeXConfig.lyx LyX: Fertig! lyx: Disabling LyX socket. And this is the problem: In the example above configure.py checks for the LaTeX-package jurabib and MiKTeX tries to install it as it isn't currently installed. As no internet connection is available this is of course unsuccessful. But now comes the problem: configure.py doesn't continue but jumps to the section where the list files are created - the created are buggy because the inspection of LaTeX was incomplete. I investigated a lot now: The reason for this is this routine in configure.py: # we have chklayouts.tex, then process it fout = os.popen(LATEX + ' wrap_chkconfig.ltx') while True: line = fout.readline() if not line: break; if re.match('^\+', line): print line, fout.close() When the check is unsuccessful the line becomes invalid and therefore the while loop breaks. The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : \IfFileExists{\file} {} {\IfFileExists{\file.#4}{}{\existsfalse}} When MiKTeX's option "Install Missing Packages on the fly" is set as "Yes" but no Internet connection is open when \ifFileExists is invoked, the latex-script is closed by MiKTeX and you get in the console: == latex: No Data I wrote an email to the MiKTeX-developer but I don't have hope that this could easily be fixed :-(. regards Uwe
Re: Result of: Python help needed for configure.py - MiKTeX-problem
When the check is unsuccessful the line becomes invalid and therefore the while loop breaks. The problem of this is line 77 in chkconfig.ltx (command definition of \TestItem) : I did not like chkconfig.ltx but was not able to replace it. chkconfig.ltx uses latex to check latex packages and generate a result file. It would be slower and cleaner to test each package one by one in python, but I was not able to decipher the latex code. Bo