Re: Re: converting from LyX 2.0 to 2.1

2014-05-09 Thread José Matos
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 module
 import LyX
   File /usr/share/lyx/lyx2lyx/LyX.py, line 26, in module
 import gzip
   File /usr/local/lib/python2.7/gzip.py, line 9, in module
 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: Re: converting from LyX 2.0 to 2.1

2014-05-09 Thread José Matos
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 module
 import LyX
   File /usr/share/lyx/lyx2lyx/LyX.py, line 26, in module
 import gzip
   File /usr/local/lib/python2.7/gzip.py, line 9, in module
 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: Re: converting from LyX 2.0 to 2.1

2014-05-09 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-07 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-07 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-07 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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

2014-05-02 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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

2014-05-02 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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: Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread José Matos
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