Re: Conversion failure for older format

2022-06-24 Thread Jean-Marc Lasgouttes

Le 24/06/2022 à 08:28, Dr Eberhard Lisse a écrit :

He did address it by complete path prefixed by python2.

I would think the scrip itself uses python3 and therefor works.



I saw that indeed.


Thanks,

JMarc



el

On 2022-06-21 12:06 , Jean-Marc Lasgouttes wrote:

Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :

That successfully converted the original to format 544, which the
frontend was able to render.  Is it possible that there's a bug in
the automagic process?
I'm running the installation from the rpm packages distributed for
Fedora core 35/36.


Could it be that you have another version of lyx2lyx on your path?

JMarc


-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-24 Thread Dr Eberhard Lisse

He did address it by complete path prefixed by python2.

I would think the scrip itself uses python3 and therefor works.

el

On 2022-06-21 12:06 , Jean-Marc Lasgouttes wrote:

Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :

That successfully converted the original to format 544, which the
frontend was able to render.  Is it possible that there's a bug in
the automagic process?
I'm running the installation from the rpm packages distributed for
Fedora core 35/36.


Could it be that you have another version of lyx2lyx on your path?

JMarc


--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 13:27:12 -03 José Abílio Matos wrote:
> 
> This is problematic on so many levels. :-)
> Notice that your python2 is using python3's standard library and so the
> disaster is unavoidable.
> 
> Something is wrong with your python2 installation because that should not
> happen in a regular Fedora installation. I am not even sure if that could
> have been caused by setting PYTHONPATH...
> 
> I have just tested a similar call like the one above and it works for me.
> 
> One way to solve the problem in lyx is to install the
> python-unversioned-command package.
> That will make /usr/bin/python point to python3 because currently lyx is
> getting python2 as the python version and thus the error that you get. But
> again in this case this is just a workaround the problem that you have.
> 
> I hope that this helps.

There was indeed a conflict between two python distributions installed in my 
system: the distribution from Fedora and Intel python.  This is also related 
to my other thread (Support for xfig graphics).
I removed the intel distribution and now it seems that everything is working 
as it should.

Thank you.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread José Abílio Matos
On Tuesday, 21 June 2022 17.06.00 WEST Jean-Marc Lasgouttes wrote:
> Are you sure that you do not have another file names "lyx2lyx"
> somewhere? "locate" may be able to determine that.
> 
> JMarc

It is unlikely because lyx always knows the relative location of lyx2lyx.
So even if there are two lyx2lyx in path each lyx versions always use the 
right version.

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread José Abílio Matos
On Tuesday, 21 June 2022 13.44.01 WEST Rudi Gaelzer wrote:
> Hits a snag right at the beginning:
> 
> rudi@stix|Plasma Modes>python2 /usr/share/lyx/lyx2lyx/lyx2lyx Langmuir-
> lyxformat-508.lyx > /dev/null
>   File "/usr/lib64/python3.10/site.py", line 93
> print(message, file=sys.stderr)
>^
> SyntaxError: invalid syntax

This is problematic on so many levels. :-)
Notice that your python2 is using python3's standard library and so the 
disaster is unavoidable.

Something is wrong with your python2 installation because that should not 
happen in a regular Fedora installation. I am not even sure if that could have 
been caused by setting PYTHONPATH...

I have just tested a similar call like the one above and it works for me.

One way to solve the problem in lyx is to install the 
python-unversioned-command package.
That will make /usr/bin/python point to python3 because currently lyx is 
getting python2 as the python version and thus the error that you get. But 
again in this case this is just a workaround the problem that you have.

I hope that this helps.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread Jean-Marc Lasgouttes

Le 21/06/2022 à 14:39, Rudi Gaelzer a écrit :

lyx2lyx is a python script.  How do I verify the path for python scripts?
It is not in the paths for shell commands, listed by which.

According to dnf, the only package that provides lyx2lyx is
lyx-common-2.3.6.1-6.fc36.noarch


Are you sure that you do not have another file names "lyx2lyx" 
somewhere? "locate" may be able to determine that.


JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread Rudi Gaelzer
On segunda-feira, 20 de junho de 2022 13:44:47 -03 José Abílio Matos wrote:
> 
> If you still have the 508 format file could you run:
> 
> $ python2 /usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx >
> /dev/null
> 
> The only difference from your command above is that this is running the
> converter using python2 and not python3 as it happens above.
> 
> For what is worth this will ignore the output because we are only interest
> in any error that can occur...
> 
> > I'm running the installation from the rpm packages distributed for Fedora
> > core 35/36.
> 
> I am using the same and I am the package maintainer for those packages. :-)

Hits a snag right at the beginning:

rudi@stix|Plasma Modes>python2 /usr/share/lyx/lyx2lyx/lyx2lyx Langmuir-
lyxformat-508.lyx > /dev/null
  File "/usr/lib64/python3.10/site.py", line 93
print(message, file=sys.stderr)
   ^
SyntaxError: invalid syntax

-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 07:06:28 -03 Jean-Marc Lasgouttes wrote:
> Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :
> > That successfully converted the original to format 544, which the frontend
> > was able to render.
> > Is it possible that there's a bug in the automagic process?
> > I'm running the installation from the rpm packages distributed for Fedora
> > core 35/36.
> 
> Could it be that you have another version of lyx2lyx on your path?
> 
> JMarc

lyx2lyx is a python script.  How do I verify the path for python scripts?  
It is not in the paths for shell commands, listed by which.

According to dnf, the only package that provides lyx2lyx is 
lyx-common-2.3.6.1-6.fc36.noarch

$>dnf provides */lyx2lyx
Last metadata expiration check: 23:33:59 ago on seg 20 jun 2022 10:00:57.
lyx-common-2.3.6.1-6.fc36.noarch : Common files of lyx
Repo: @System
Matched from:
Filename: /usr/share/lyx/lyx2lyx
Filename: /usr/share/lyx/lyx2lyx/lyx2lyx

lyx-common-2.3.6.1-6.fc36.noarch : Common files of lyx
Repo: fedora
Matched from:
Filename: /usr/share/lyx/lyx2lyx
Filename: /usr/share/lyx/lyx2lyx/lyx2lyx


-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread Jean-Marc Lasgouttes

Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :

That successfully converted the original to format 544, which the frontend was
able to render.
Is it possible that there's a bug in the automagic process?
I'm running the installation from the rpm packages distributed for Fedora core
35/36.


Could it be that you have another version of lyx2lyx on your path?

JMarc
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-20 Thread José Abílio Matos
On Monday, 20 June 2022 14.28.18 WEST Rudi Gaelzer wrote:
> That worked.  First, I copied the original .lyx to
> -lyxformat-508.lyx, then ran
> $>/usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx -o .lyx
> 
> That successfully converted the original to format 544, which the frontend
> was able to render.
> Is it possible that there's a bug in the automagic process?

If you still have the 508 format file could you run:

$ python2 /usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx > /dev/null

The only difference from your command above is that this is running the 
converter using python2 and not python3 as it happens above.

For what is worth this will ignore the output because we are only interest in 
any error that can occur...

> I'm running the installation from the rpm packages distributed for Fedora
> core 35/36.

I am using the same and I am the package maintainer for those packages. :-)

-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-20 Thread Rudi Gaelzer
On sexta-feira, 17 de junho de 2022 08:08:04 -03 José Abílio Matos wrote:
> On Wednesday, 15 June 2022 18.19.22 WEST Rudi Gaelzer wrote:
> > I'm trying to open a LyX file with an older format:
> > \lyxformat 508
> > 
> > But I got the error message: LyX: Conversion script failed
> > It says that the lyx2lyx script failed to convert the document.
> > 
> > What should I do in this case?
> 
> Rudi,
>   this should not ever happen, but bugs do happen.
> 
> Just as Paul said you can run lyx2lyx from the command line to see where the
> problem occurs and tell us here.
> 
> If you want you can send the file by private mail and I will look in to this
> issue directly.
> 
> Best regards,

That worked.  First, I copied the original .lyx to 
-lyxformat-508.lyx, then ran 
$>/usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx -o .lyx

That successfully converted the original to format 544, which the frontend was 
able to render.
Is it possible that there's a bug in the automagic process?
I'm running the installation from the rpm packages distributed for Fedora core 
35/36.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-17 Thread José Abílio Matos
On Wednesday, 15 June 2022 18.19.22 WEST Rudi Gaelzer wrote:
> I'm trying to open a LyX file with an older format:
> \lyxformat 508
> 
> But I got the error message: LyX: Conversion script failed
> It says that the lyx2lyx script failed to convert the document.
> 
> What should I do in this case?

Rudi,
  this should not ever happen, but bugs do happen.

Just as Paul said you can run lyx2lyx from the command line to see where the 
problem occurs and tell us here.

If you want you can send the file by private mail and I will look in to this 
issue directly.

Best regards,
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-15 Thread Paul A. Rubin

On 6/15/22 13:19, Rudi Gaelzer wrote:

I'm trying to open a LyX file with an older format:
\lyxformat 508

But I got the error message: LyX: Conversion script failed
It says that the lyx2lyx script failed to convert the document.

What should I do in this case?
You can try running lyx2lyx on the source file from the command line, 
using one or more options. The -v option makes output "verbose", which 
might include specifics about the error. The -n option tells it to 
ignore any conversion errors, after which you could try opening the 
resulting file and see if (a) it opens and (b) if so, does any of the 
content appear to be missing or screwed up.


Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users