Re: Re: converting from LyX 2.0 to 2.1
On Wednesday 07 May 2014 20:54:15 Hugh Medal wrote: > Here you go: > > This is what happens with system python (2.7.5): > > hmedal@ws113-16:~$ python -tt /usr/share/lyx/lyx2lyx/lyx2lyx > ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx > > > Optimal_Software_Design_converted.lyx > Traceback (most recent call last): > File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 24, in > import LyX > File "/usr/share/lyx/lyx2lyx/LyX.py", line 26, in > import gzip > File "/usr/local/lib/python2.7/gzip.py", line 9, in > import zlib > ImportError: No module named zlib The last line is the weird part. What is the output of $ which -a python It seems from the path of the call to gzip.py that you are using a version of python different from the system one. That is why I suspect that you have two python versions installed. The system install python into /usr not /usr/local and it seems that that is precisely what you are using and thus the error. FWIW the zlib module is present, in 64 bit install (x86-64), at /usr/lib64/python2.7/lib-dynload/zlibmodule.so -- José Abílio
Re: converting from LyX 2.0 to 2.1
On 05/07/2014 09:54 PM, Hugh Medal wrote: Here you go: This is what happens with system python (2.7.5): hmedal@ws113-16:~$ python -tt /usr/share/lyx/lyx2lyx/lyx2lyx ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx > Optimal_Software_Design_converted.lyx Traceback (most recent call last): File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 24, in import LyX File "/usr/share/lyx/lyx2lyx/LyX.py", line 26, in import gzip File "/usr/local/lib/python2.7/gzip.py", line 9, in import zlib ImportError: No module named zlib There is something wrong with your python installation if zlib is not found. This is what happens with python 3 (3.3.2): Python 3 is known not to work with LyX. You may have some kind of conflict. Richard
Re: converting from LyX 2.0 to 2.1
Here you go: This is what happens with system python (2.7.5): hmedal@ws113-16:~$ python -tt /usr/share/lyx/lyx2lyx/lyx2lyx ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx > Optimal_Software_Design_converted.lyx Traceback (most recent call last): File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 24, in import LyX File "/usr/share/lyx/lyx2lyx/LyX.py", line 26, in import gzip File "/usr/local/lib/python2.7/gzip.py", line 9, in import zlib ImportError: No module named zlib This is what happens with python 3 (3.3.2): hmedal@ws113-16:~$ python3 -tt /usr/share/lyx/lyx2lyx/lyx2lyx ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx > Optimal_Software_Design_converted.lyx Traceback (most recent call last): File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 24, in import LyX File "/usr/share/lyx/lyx2lyx/LyX.py", line 23, in from parser_tools import get_value, check_token, find_token, \ File "/usr/share/lyx/lyx2lyx/parser_tools.py", line 152 ''' SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 1492-1493: truncated \u escape On Wed, May 7, 2014 at 1:55 AM, Jürgen Spitzmüller wrote: > 2014-05-06 3:44 GMT+02:00 Hugh Medal: > >> If I need to I can just move to Fedora 20 (I am currently using 19). Just >> let >> me know if I should do that. >> > > Try to run the lyx2lyx converter manually on your file in a console. What > happens? (the following command should be all in one line) > > python -tt /usr/share/lyx/lyx2lyx/lyx2lyx ~/Documents/2_msu/1_MSU_ > > Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx > > Optimal_ > > Software_Design_converted.lyx > Jürgen > > -- *Hugh Medal* Assistant Professor Industrial and Systems Engineering Mississippi State University Office: 260K McCain Office: 662-325-3923 Email: hmedal@i se.msstate.edu Website: hm568.ise.msstate.edu Office hours: http://hughmedal.youcanbook.me
Re: Re: converting from LyX 2.0 to 2.1
On Tuesday 06 May 2014 01:44:25 Hugh Medal wrote: > If I need to I can just move to Fedora 20 (I am currently using 19). Just let > me know if I should do that. > > Thanks, > Hugh There is no difference here between Fedora 19 and 20. -- José Abílio
Re: converting from LyX 2.0 to 2.1
2014-05-06 3:44 GMT+02:00 Hugh Medal: > If I need to I can just move to Fedora 20 (I am currently using 19). Just > let > me know if I should do that. > Try to run the lyx2lyx converter manually on your file in a console. What happens? (the following command should be all in one line) python -tt /usr/share/lyx/lyx2lyx/lyx2lyx ~/Documents/2_msu/1_MSU_ Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx > Optimal_ Software_Design_converted.lyx Jürgen
Re: converting from LyX 2.0 to 2.1
José Matos lyx.org> writes: > > On Friday 02 May 2014 18:33:45 Jürgen Spitzmüller wrote: > > I doubt that. The document is rather simple, and Hugh wrote he cannot open > > any document. > > Oops, I did not read all the details. I am sorry for making wrong claims. > > > I suspected lyx2lyx fails for some reason (python problem?), that's why I > > looked at the rpm and check the path to lyx2lyx on Fedora, so that Hugh can > > check what happens if he runs lyx2lyx on the file manually. > > > > Jürgen > > It is weird indeed since lyx requires lyx-common so lyx2lyx should be available. Python is a central part of > a Fedora installation, it is not possible to remove it and lyx2lyx only requires the standard library. > If I need to I can just move to Fedora 20 (I am currently using 19). Just let me know if I should do that. Thanks, Hugh
Re: Re: converting from LyX 2.0 to 2.1
On Friday 02 May 2014 18:33:45 Jürgen Spitzmüller wrote: > I doubt that. The document is rather simple, and Hugh wrote he cannot open > any document. Oops, I did not read all the details. I am sorry for making wrong claims. :-) > I suspected lyx2lyx fails for some reason (python problem?), that's why I > looked at the rpm and check the path to lyx2lyx on Fedora, so that Hugh can > check what happens if he runs lyx2lyx on the file manually. > > Jürgen It is weird indeed since lyx requires lyx-common so lyx2lyx should be available. Python is a central part of a Fedora installation, it is not possible to remove it and lyx2lyx only requires the standard library. -- José Abílio
Re: Re: converting from LyX 2.0 to 2.1
On Friday 02 May 2014 18:20:42 Jean-Marc Lasgouttes wrote: > Why are fonts separate? > > JMarc IIRC there is an interest from other packages to use lyx-fonts without necessarily having lyx installed: # repoquery --whatrequires lyx-fonts calligra-core-0:2.7.4-1.fc20.x86_64 calligra-core-0:2.8.1-1.fc20.x86_64 calligra-core-0:2.8.2-1.fc20.x86_64 gtkmathview-0:0.8.0-13.fc20.i686 gtkmathview-0:0.8.0-13.fc20.x86_64 libreoffice-langpack-br-1:4.1.3.2-9.fc20.x86_64 [... snip lots of other libreoffice-langpack's ...] lyx-0:2.0.6-3.fc20.x86_64 lyx-0:2.1.0-0.fc20.x86_64 vdr-0:2.0.4-1.fc20.x86_64 vdr-0:2.0.5-1.fc20.x86_64 wordnet-browser-0:3.0-20.fc20.x86_64 So all those packages require the fonts provided by lyx-fonts. I hope that this makes sense. :-) Regards, -- José Abílio
Re: converting from LyX 2.0 to 2.1
2014-05-02 18:00 GMT+02:00 José Matos: > I suspect that this could be related with the failure to load some beamer > documents that was fixed by Jürgen recently. > I doubt that. The document is rather simple, and Hugh wrote he cannot open any document. I suspected lyx2lyx fails for some reason (python problem?), that's why I looked at the rpm and check the path to lyx2lyx on Fedora, so that Hugh can check what happens if he runs lyx2lyx on the file manually. Jürgen
Re: converting from LyX 2.0 to 2.1
02/05/2014 17:51, José Matos: Besides lyx, there are two sub-packages: lyx-common and lyx-fonts. The later is self-descriptive and the former has all the non-arch parts of lyx. lyx2lyx, layouts and company are there. This scheme allows to have a shared sub-package for all the support architectures. Why are fonts separate? JMarc
Re: Re: converting from LyX 2.0 to 2.1
On Friday 02 May 2014 17:23:05 Jürgen Spitzmüller wrote: > > Wait a minute. > > This binary > http://pkgs.org/fedora-19/fedora-updates-x86_64/lyx-2.1.0-0.fc19.x86_64.rpm.html > looks incomplete to me. > > The file list has > >- /usr/bin/lyx >- /usr/bin/lyxclient >- /usr/bin/tex2lyx >- /usr/share/doc/lyx-2.1.0/ >- /usr/share/doc/lyx-2.1.0/ANNOUNCE >- /usr/share/doc/lyx-2.1.0/COPYING >- /usr/share/doc/lyx-2.1.0/CREDITS >- /usr/share/doc/lyx-2.1.0/NEWS >- /usr/share/doc/lyx-2.1.0/README > > There is a lot of stuff missing. Amonst others, lyx2lyx. This also seems to > be the case for the 32bit version and LyX 2.0.6. > > This would explain your problems. > > José, could you please check? > > Jürgen That is OK. Besides lyx, there are two sub-packages: lyx-common and lyx-fonts. The later is self-descriptive and the former has all the non-arch parts of lyx. lyx2lyx, layouts and company are there. This scheme allows to have a shared sub-package for all the support architectures. Regards, -- José Abílio
Re: converting from LyX 2.0 to 2.1
On Thursday 01 May 2014 20:02:36 Hugh Medal wrote: > I am getting this error when I try to open a LYX file created in version 2.0 > in version 2.1. > > ... is from an older version of LyX and the lyx2lyx script failed to convert > it. > > Can you help? > > Thanks, > Hugh I suspect that this could be related with the failure to load some beamer documents that was fixed by Jürgen recently. I have built a new release with all the recent fixes: http://koji.fedoraproject.org/koji/buildinfo?buildID=514543 it should be quite soon on updates-testing. There is an equivalent release for F-19. FWIW your document loads fine here with Fedora 20 and the above version. If you need further instructions how to install this version just tell. :-) Regards, -- José Abílio
Re: converting from LyX 2.0 to 2.1
2014-05-02 13:22 GMT+02:00 Hugh Medal: > Thank you. > > I have attached an example file (I am not able to get any of my other > files to open either). I can't remember what version the file is from. It > is likely the version immediately before 2.1.0 because I created the file > within the last month. > > I am running a 64-bit Fedora operating system and I am using the LyX > version that comes in the repository. > Wait a minute. This binary http://pkgs.org/fedora-19/fedora-updates-x86_64/lyx-2.1.0-0.fc19.x86_64.rpm.html looks incomplete to me. The file list has - /usr/bin/lyx - /usr/bin/lyxclient - /usr/bin/tex2lyx - /usr/share/doc/lyx-2.1.0/ - /usr/share/doc/lyx-2.1.0/ANNOUNCE - /usr/share/doc/lyx-2.1.0/COPYING - /usr/share/doc/lyx-2.1.0/CREDITS - /usr/share/doc/lyx-2.1.0/NEWS - /usr/share/doc/lyx-2.1.0/README There is a lot of stuff missing. Amonst others, lyx2lyx. This also seems to be the case for the 32bit version and LyX 2.0.6. This would explain your problems. José, could you please check? Jürgen
Re: converting from LyX 2.0 to 2.1
On Fri, 2 May 2014, Hugh Medal wrote: 09:32:51.784: Opening document ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx...Error: Conversion script failed 09:32:54.505: (file-open /home/hmedal/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx) Hugh, If others could open the file it suggests that there's something wrong with your installation. Try removing and re-installing lyx-2.1 if you've not already done so. Just for giggles, can you run pdflatex on that file from the command line and produce a readable .pdf? Rich
Re: converting from LyX 2.0 to 2.1
Yes, here they are: 09:32:51.784: Opening document ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx...Error: Conversion script failed /home/hmedal/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx is from an older version of LyX and the lyx2lyx script failed to convert it. 09:32:54.501: Document not loaded. 09:32:54.501: Could not open document ~/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx 09:32:54.505: (file-open /home/hmedal/Documents/2_msu/1_MSU_Projects/PROJECT_CEED_ERS/what_I_can_offer/Optimal_Software_Design.lyx) On Fri, May 2, 2014 at 6:57 AM, Jürgen Spitzmüller wrote: > 2014-05-02 13:42 GMT+02:00 Rainer M Krug: > > Hugh Medal writes: >> >> > Thank you. >> > >> > I have attached an example file (I am not able to get any of my other >> files >> > to open either). I can't remember what version the file is from. It is >> > likely the version immediately before 2.1.0 because I created the file >> > within the last month. >> > >> > I am running a 64-bit Fedora operating system and I am using the LyX >> > version that comes in the repository. >> >> Mac OSX Maverick, all updates, LyX 2.1.0, the file opens and compiles >> without problems. >> > > > It opens here as well, without errors. This indicates that it is not a > lyx2lyx converter bug, but rather a problem on your side. If you try to > open it while having View > Messages pane open, are any error messages > reported on that pane? > > Jürgen > -- *Hugh Medal* Assistant Professor Industrial and Systems Engineering Mississippi State University Office: 260K McCain Office: 662-325-3923 Email: hmedal@i se.msstate.edu Website: hm568.ise.msstate.edu Office hours: http://hughmedal.youcanbook.me
Re: converting from LyX 2.0 to 2.1
2014-05-02 13:42 GMT+02:00 Rainer M Krug: > Hugh Medal writes: > > > Thank you. > > > > I have attached an example file (I am not able to get any of my other > files > > to open either). I can't remember what version the file is from. It is > > likely the version immediately before 2.1.0 because I created the file > > within the last month. > > > > I am running a 64-bit Fedora operating system and I am using the LyX > > version that comes in the repository. > > Mac OSX Maverick, all updates, LyX 2.1.0, the file opens and compiles > without problems. > It opens here as well, without errors. This indicates that it is not a lyx2lyx converter bug, but rather a problem on your side. If you try to open it while having View > Messages pane open, are any error messages reported on that pane? Jürgen
Re: converting from LyX 2.0 to 2.1
Hugh Medal writes: > Thank you. > > I have attached an example file (I am not able to get any of my other files > to open either). I can't remember what version the file is from. It is > likely the version immediately before 2.1.0 because I created the file > within the last month. > > I am running a 64-bit Fedora operating system and I am using the LyX > version that comes in the repository. Mac OSX Maverick, all updates, LyX 2.1.0, the file opens and compiles without problems. Rainer > > > On Fri, May 2, 2014 at 3:58 AM, Jürgen Spitzmüller wrote: > >> 2014-05-01 22:02 GMT+02:00 Hugh Medal: >> >>> I am getting this error when I try to open a LYX file created in version >>> 2.0 >>> in version 2.1. >>> >>> ... is from an older version of LyX and the lyx2lyx script failed to >>> convert >>> it. >>> >>> Can you help? >>> >> >> We can help, if you can provide us with that file. >> >> Jürgen >> -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 pgpTdrjAHyXFi.pgp Description: PGP signature
Re: converting from LyX 2.0 to 2.1
Thank you. I have attached an example file (I am not able to get any of my other files to open either). I can't remember what version the file is from. It is likely the version immediately before 2.1.0 because I created the file within the last month. I am running a 64-bit Fedora operating system and I am using the LyX version that comes in the repository. On Fri, May 2, 2014 at 3:58 AM, Jürgen Spitzmüller wrote: > 2014-05-01 22:02 GMT+02:00 Hugh Medal: > >> I am getting this error when I try to open a LYX file created in version >> 2.0 >> in version 2.1. >> >> ... is from an older version of LyX and the lyx2lyx script failed to >> convert >> it. >> >> Can you help? >> > > We can help, if you can provide us with that file. > > Jürgen > -- *Hugh Medal* Assistant Professor Industrial and Systems Engineering Mississippi State University Office: 260K McCain Office: 662-325-3923 Email: hmedal@i se.msstate.edu Website: hm568.ise.msstate.edu Office hours: http://hughmedal.youcanbook.me Optimal_Software_Design.lyx Description: application/lyx
Re: converting from LyX 2.0 to 2.1
2014-05-01 22:02 GMT+02:00 Hugh Medal: > I am getting this error when I try to open a LYX file created in version > 2.0 > in version 2.1. > > ... is from an older version of LyX and the lyx2lyx script failed to > convert > it. > > Can you help? > We can help, if you can provide us with that file. Jürgen
Re: converting from LyX 2.0 to 2.1
01/05/2014 22:59, Steve Litt: That being said, I always thought LyX was supposed to convert even my LyX 1.4.x files to modern format. In other words, I hope no developers ever becomes complacent with LyX only converting formats from the last couple years. Actually, lyx2lyx converts file from version 0.6. But there has to be bugs. And if we find'em, we fix'em. JMarc
Re: converting from LyX 2.0 to 2.1
On Thu, 1 May 2014, Steve Litt wrote: That being said, I always thought LyX was supposed to convert even my LyX 1.4.x files to modern format. In other words, I hope no developers ever becomes complacent with LyX only converting formats from the last couple years. SteveT, LyX should do this. I suspect the OP has a flawed installation. When I get an unanticipated issue with an application that I just upgraded I re-build and re-install it. Almost always that fixes the problem. Rich -- Richard B. Shepard, Ph.D. | Have knowledge, will travel. Applied Ecosystem Services, Inc. | www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863
Re: converting from LyX 2.0 to 2.1
On Thu, 1 May 2014 13:33:58 -0700 (PDT) Rich Shepard wrote: > On Thu, 1 May 2014, Hugh Medal wrote: > > > I am getting this error when I try to open a LYX file created in > > version 2.0 in version 2.1. > > > > ... is from an older version of LyX and the lyx2lyx script failed > > to convert it. > > > > Can you help? > > Hugh, > >From what minor version of 2.0.n? I have documents from 2.0.5 > through 2.0.7 that opened in 2.1.0. > > Rich Hi Rich, I recognize and applaud the diagnostic purpose of your question, and it's an excellent piece of information to have. That being said, I always thought LyX was supposed to convert even my LyX 1.4.x files to modern format. In other words, I hope no developers ever becomes complacent with LyX only converting formats from the last couple years. Thanks, SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: converting from LyX 2.0 to 2.1
On Thu, 1 May 2014, Hugh Medal wrote: I am getting this error when I try to open a LYX file created in version 2.0 in version 2.1. ... is from an older version of LyX and the lyx2lyx script failed to convert it. Can you help? Hugh, From what minor version of 2.0.n? I have documents from 2.0.5 through 2.0.7 that opened in 2.1.0. Rich -- Richard B. Shepard, Ph.D. | Have knowledge, will travel. Applied Ecosystem Services, Inc. | www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863