Re: relyx problem - Windows XP
Date: Wed, 01 Sep 2004 14:10:13 -0400 From: Colin J. Williams [EMAIL PROTECTED] To: LyX User List [EMAIL PROTECTED] Subject: relyx problem - Windows XP Using relyx to convert a tex file to lyx gives an error message: Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. and produces a lyx script which cannot be opened by LyX. It's a warning, not an error (otherwise perl wouln't run after the parsing step). reLyX is shipped with the warning option enabled, here: $^W = 1; # same as 'perl -w' Just comment the line to get rid of warnings: #$^W = 1; # same as 'perl -w' -- Jean-Pierre
Re: relyx problem - Windows XP
Date: Wed, 01 Sep 2004 14:10:13 -0400 From: Colin J. Williams [EMAIL PROTECTED] To: LyX User List [EMAIL PROTECTED] Subject: relyx problem - Windows XP Using relyx to convert a tex file to lyx gives an error message: Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. and produces a lyx script which cannot be opened by LyX. It's a warning, not an error (otherwise perl wouln't run after the parsing step). reLyX is shipped with the warning option enabled, here: $^W = 1; # same as 'perl -w' Just comment the line to get rid of warnings: #$^W = 1; # same as 'perl -w' -- Jean-Pierre
Re: relyx problem - Windows XP
>>Date: Wed, 01 Sep 2004 14:10:13 -0400 >>From: "Colin J. Williams" <[EMAIL PROTECTED]> >>To: LyX User List <[EMAIL PROTECTED]> >>Subject: relyx problem - Windows XP >> >>Using relyx to convert a tex file to lyx gives an error message: >> Use of uninitialized value at >>C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. >>and produces a lyx script which cannot be opened by LyX. It's a warning, not an error (otherwise perl wouln't run after the parsing step). reLyX is shipped with the warning option enabled, here: $^W = 1; # same as 'perl -w' Just comment the line to get rid of warnings: #$^W = 1; # same as 'perl -w' -- Jean-Pierre
Re: relyx problem - Windows XP
Colin J. Williams wrote: Using relyx to convert a tex file to lyx gives an error message: Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. and produces a lyx script which cannot be opened by LyX. The output is: C:\LyX\TexC:\LyX\lyx\bin\perl.exe C:\LyX\lyx\bin\reLyx -o m2 m2.tex Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. reLyX, the LaTeX to LyX translator. Revision date 2003/01/20 Reading LaTeX command syntax (m2.tex: Splitting Preamble Creating LyX preamble Reading layout file Cleaning... Translating... Writing... ) Deleting temp files Finished successfully! reLyX directory is: C:/LyX/lyx/share/lyx/reLyX I would appreciate advice. Colin W. I think the uninitialized value message is a 'false positive'. I tried exporting a LyX doc to TeX, then importing it back into LyX from the LyX File - Import menu (which calls ReLyX). I got the same message regarding line 58, but the document did open in LyX. Line 58 of the script refers to an environment variable named HOME that does not exist in XP. XP has HOMEDRIVE, HOMEPATH, HOMESHARE but not HOME, and LyX does not export the HOME variable (I just checked). Somehow, though, reLyX muddles through without it. IIRC, there are documented instances when reLyX fails due to the content of the TeX file (not due to the vagaries of Windows, just for a change). You might check some of the archived postings here. I'm afraid I don't recall the details. -- Paul ** Paul A. RubinPhone: (517) 432-3509 Department of ManagementFax: (517) 432- The Eli Broad Graduate School of ManagementE-mail: [EMAIL PROTECTED] Michigan State University http://www.msu.edu/~rubin/ East Lansing, MI 48824-1122 (USA) ** Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different.J. W. v. GOETHE
Re: relyx problem - Windows XP
Colin J. Williams wrote: Using relyx to convert a tex file to lyx gives an error message: Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. and produces a lyx script which cannot be opened by LyX. The output is: C:\LyX\TexC:\LyX\lyx\bin\perl.exe C:\LyX\lyx\bin\reLyx -o m2 m2.tex Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. reLyX, the LaTeX to LyX translator. Revision date 2003/01/20 Reading LaTeX command syntax (m2.tex: Splitting Preamble Creating LyX preamble Reading layout file Cleaning... Translating... Writing... ) Deleting temp files Finished successfully! reLyX directory is: C:/LyX/lyx/share/lyx/reLyX I would appreciate advice. Colin W. I think the uninitialized value message is a 'false positive'. I tried exporting a LyX doc to TeX, then importing it back into LyX from the LyX File - Import menu (which calls ReLyX). I got the same message regarding line 58, but the document did open in LyX. Line 58 of the script refers to an environment variable named HOME that does not exist in XP. XP has HOMEDRIVE, HOMEPATH, HOMESHARE but not HOME, and LyX does not export the HOME variable (I just checked). Somehow, though, reLyX muddles through without it. IIRC, there are documented instances when reLyX fails due to the content of the TeX file (not due to the vagaries of Windows, just for a change). You might check some of the archived postings here. I'm afraid I don't recall the details. -- Paul ** Paul A. RubinPhone: (517) 432-3509 Department of ManagementFax: (517) 432- The Eli Broad Graduate School of ManagementE-mail: [EMAIL PROTECTED] Michigan State University http://www.msu.edu/~rubin/ East Lansing, MI 48824-1122 (USA) ** Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different.J. W. v. GOETHE
Re: relyx problem - Windows XP
Colin J. Williams wrote: Using relyx to convert a tex file to lyx gives an error message: Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. and produces a lyx script which cannot be opened by LyX. The output is: C:\LyX\Tex>C:\LyX\lyx\bin\perl.exe C:\LyX\lyx\bin\reLyx -o m2 m2.tex Use of uninitialized value at C:/LyX/lyx/share/lyx/reLyX/reLyXmain.pl line 58. reLyX, the LaTeX to LyX translator. Revision date 2003/01/20 Reading LaTeX command syntax (m2.tex: Splitting Preamble Creating LyX preamble Reading layout file Cleaning... Translating... Writing... ) Deleting temp files Finished successfully! reLyX directory is: C:/LyX/lyx/share/lyx/reLyX I would appreciate advice. Colin W. I think the uninitialized value message is a 'false positive'. I tried exporting a LyX doc to TeX, then importing it back into LyX from the LyX File -> Import menu (which calls ReLyX). I got the same message regarding line 58, but the document did open in LyX. Line 58 of the script refers to an environment variable named HOME that does not exist in XP. XP has HOMEDRIVE, HOMEPATH, HOMESHARE but not HOME, and LyX does not export the HOME variable (I just checked). Somehow, though, reLyX muddles through without it. IIRC, there are documented instances when reLyX fails due to the content of the TeX file (not due to the vagaries of Windows, just for a change). You might check some of the archived postings here. I'm afraid I don't recall the details. -- Paul ** Paul A. RubinPhone: (517) 432-3509 Department of ManagementFax: (517) 432- The Eli Broad Graduate School of ManagementE-mail: [EMAIL PROTECTED] Michigan State University http://www.msu.edu/~rubin/ East Lansing, MI 48824-1122 (USA) ** Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different.J. W. v. GOETHE
Re: reLyX problem.
"Diego" == Diego A Puertas Fernández [EMAIL PROTECTED] writes: Diego I first installed lyx 1.0.4 at /opt/lyx and when I tried to Diego import a latex file it came up with this message: Diego cannot find default syntax file Diego NONE/share/lyx/reLyX/syntax.default at Diego /usr/local/bin/../share/lyx/reLyX/reLyXmain.pl line 148. Diego Exited due to fatal Error! Diego But when I run reLyX from the text console i worked fine. Now I Diego have move up to LyX 1.1.2 but installed at /usr/local thinking Diego that would solve the problem but it didn't import and gave the Diego same message. I try to run reLyX from the console and gave the Diego same message too. Diego What is going on?, the file "syntax.default" is there were Diego reLyXmain.pl is looking for it, in: Diego /usr/local/bin/../share/lyx/reLyX/syntax.default , and were Diego does the NONE come from, there is not such string in Diego reLyXmain.pl The NONE comes from the reLyX script itself. This is a bug which is fixed (I hope) in 1.1.3. However, you can also edit reLyX (in /usr/local/bin, I guess) and replace the NONE that you will easily spot with 'usr/local'. JMarc
Re: reLyX problem.
"Diego" == Diego A Puertas Fernández [EMAIL PROTECTED] writes: Diego I first installed lyx 1.0.4 at /opt/lyx and when I tried to Diego import a latex file it came up with this message: Diego cannot find default syntax file Diego NONE/share/lyx/reLyX/syntax.default at Diego /usr/local/bin/../share/lyx/reLyX/reLyXmain.pl line 148. Diego Exited due to fatal Error! Diego But when I run reLyX from the text console i worked fine. Now I Diego have move up to LyX 1.1.2 but installed at /usr/local thinking Diego that would solve the problem but it didn't import and gave the Diego same message. I try to run reLyX from the console and gave the Diego same message too. Diego What is going on?, the file "syntax.default" is there were Diego reLyXmain.pl is looking for it, in: Diego /usr/local/bin/../share/lyx/reLyX/syntax.default , and were Diego does the NONE come from, there is not such string in Diego reLyXmain.pl The NONE comes from the reLyX script itself. This is a bug which is fixed (I hope) in 1.1.3. However, you can also edit reLyX (in /usr/local/bin, I guess) and replace the NONE that you will easily spot with 'usr/local'. JMarc
Re: reLyX problem.
> "Diego" == Diego A Puertas Fernández <[EMAIL PROTECTED]> writes: Diego> I first installed lyx 1.0.4 at /opt/lyx and when I tried to Diego> import a latex file it came up with this message: Diego> cannot find default syntax file Diego> NONE/share/lyx/reLyX/syntax.default at Diego> /usr/local/bin/../share/lyx/reLyX/reLyXmain.pl line 148. Diego> Exited due to fatal Error! Diego> But when I run reLyX from the text console i worked fine. Now I Diego> have move up to LyX 1.1.2 but installed at /usr/local thinking Diego> that would solve the problem but it didn't import and gave the Diego> same message. I try to run reLyX from the console and gave the Diego> same message too. Diego> What is going on?, the file "syntax.default" is there were Diego> reLyXmain.pl is looking for it, in: Diego> /usr/local/bin/../share/lyx/reLyX/syntax.default , and were Diego> does the NONE come from, there is not such string in Diego> reLyXmain.pl The NONE comes from the reLyX script itself. This is a bug which is fixed (I hope) in 1.1.3. However, you can also edit reLyX (in /usr/local/bin, I guess) and replace the NONE that you will easily spot with 'usr/local'. JMarc