Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-02-09 Thread Enrico Forestieri

On Thu, Feb 08, 2024 at 10:35:42AM +0100, Pavel Sanda wrote:


On Wed, Jan 31, 2024 at 01:27:04PM +0100, Enrico Forestieri wrote:

It is a mess and while adjusting a thing some other thing was breaking. I
don't plan to look further into it if simply shipping a patched getopt.py on
windows solves the problem ;)


Enrico, can you commit this so we have testing for RC3?


Done at fe99f7b0.

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


Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-02-08 Thread Pavel Sanda
On Wed, Jan 31, 2024 at 01:27:04PM +0100, Enrico Forestieri wrote:
> It is a mess and while adjusting a thing some other thing was breaking. I
> don't plan to look further into it if simply shipping a patched getopt.py on
> windows solves the problem ;)

Enrico, can you commit this so we have testing for RC3?

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-31 Thread José Matos
On Wed, 2024-01-31 at 13:27 +0100, Enrico Forestieri wrote:
> It is a mess and while adjusting a thing some other thing was
> breaking. 
> I don't plan to look further into it if simply shipping a patched 
> getopt.py on windows solves the problem ;)

As far a I can see I think that problem is from our solution required
to support both Python 2 and 3. In this context the Python 3 code seems
to be saner, after all that was one of the major reasons to break the
backward compatibility between Python 2 and 3. :-) 

If the easiest, and faster, solution for 2.4 is to ship this interim
file I have no issue with that. :-)

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


Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-01-31 Thread Enrico Forestieri

On Tue, Jan 30, 2024 at 11:15:13PM +0100, Jean-Marc Lasgouttes wrote:


Le 30/01/2024 à 21:15, Enrico Forestieri a écrit :
No, the patched version works only on Windows. It will not be used 
on Linux.
However, it has to go with the patched lyxpak.py and thus it has to 
be shipped with the other sources. Otherwise lyxpak.py does not work 
when running LyX in place after compiling it.


Is that a Python bug? Should it be reported?


I am not sure what the issue is. It seems that the elements of argv are 
different types on windows and linux.


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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-31 Thread Enrico Forestieri

On Wed, Jan 31, 2024 at 12:57:21AM +0100, Thibaut Cuvelier wrote:


It's going to be a bit hard to test the patch for getopt.py, as the default
LyX installer ships the Python libraries in a .zip file ("C:\Program
Files\LyX 2.4\Python\python311.zip") containing only .pyc files (like
getopt.pyc).


Sorry, I forgot to tell that it has to be copied next to lyxpak.py.


Nevertheless, copying your module lyxwin_getopt and patching lyxpak.py
solves the problem for me! (Windows 11 x64 23H2.)


Great!

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-31 Thread Enrico Forestieri

On Wed, Jan 31, 2024 at 09:38:44AM +, José Matos wrote:


The culprit, from your analysis, seems to be that on windows some
variables are bytes instead of strings (unicode text on Python 3).


I think it is the other way around. Some variables are bytes on linux 
and strings on windows. But I am very confused by all this dance.



Would not it be easier to convert the bytes to unicode, in the cases
where we need (read windows), and then it is not necessary to change
getopt and friends?


The script is geared around bytes and I think the proposed patch is the 
minimal one. Otherwise I fear a complete overhaul is needed.



I am finishing other tasks and so I had not a proper look into this
issue and so I am admit to be wrong.


It is a mess and while adjusting a thing some other thing was breaking. 
I don't plan to look further into it if simply shipping a patched 
getopt.py on windows solves the problem ;)


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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-31 Thread José Matos
On Tue, 2024-01-30 at 19:26 +0100, Enrico Forestieri wrote:
> For making it work with Python 3 on Windows I had to patch both our 
> lyxpak.py script and getopt.py from Python.
> 
> Attached you will find the patch to be applied to lyxpak.py, the
> patch I 
> had to apply to getopt.py and the patched version (lyxwin_getopt.py) 
> that should be distributed with LyX.
> 
> In this way lyxpak.py works for me with both Python 2 and 3, in both 
> Windows and Linux.

The culprit, from your analysis, seems to be that on windows some
variables are bytes instead of strings (unicode text on Python 3).

Would not it be easier to convert the bytes to unicode, in the cases
where we need (read windows), and then it is not necessary to change
getopt and friends?

I am finishing other tasks and so I had not a proper look into this
issue and so I am admit to be wrong.

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-30 Thread Thibaut Cuvelier
On Tue, 30 Jan 2024 at 19:27, Enrico Forestieri  wrote:

> On Sun, Jan 28, 2024 at 12:59:12AM +0100, Enrico Forestieri wrote:
> >
> >On Sat, Jan 27, 2024 at 10:09:05PM +, José Matos wrote:
> >>
> >>On Sat, 2024-01-27 at 20:49 +0100, didiergab...@free.fr wrote:
> >>>20:37:37.977: Exportation en cours...
> >>>20:37:37.993: (buffer-export lyxzip)
> >>>20:37:38.150: python -tt "C:/Users/Didier/AppData/Local/Programs/LyX
> >>>2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
> >>>2024/DS3/"/"MWE-PDF preview.lyx"
> >>>20:37:38.375: Traceback (most recent call last):
> >>>20:37:38.376:   File "C:\Users\Didier\AppData\Local\Programs\LyX
> >>>2.4\Resources\scripts\lyxpak.py", line 396, in 
> >>>20:37:38.377: if not argv[0].startswith("-"):
> >>>20:37:38.378:^^^
> >>>20:37:38.378: TypeError: startswith first arg must be bytes or a
> >>>tuple of bytes, not str
> >>>support\Systemcall.cpp (306): Systemcall: 'python -tt
> >>>"C:/Users/Didier/AppData/Local/Programs/LyX
> >>>2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
> >>>2024/DS3/"/"MWE-PDF preview.lyx"' finished with exit code 1
> >>>Error: Conversion du fichier impossible
> >>
> >>The problem here is that argv members are of type bytes instead of
> >>being str (string).
> >>
> >>This comes from the fact that the lyxpak.py script has special code to
> >>deal with Python 2 on Windows.
> >>
> >>@Enrico could it be that most of the specific windows code is not need
> >>any more with Python 3?
> >
> >I don't know (I don't use the native windows version). However,
> >skipping that code when using Python3 the script fails as follows:
> >
> >python -tt "C:/Program Files/LyX/Resources/scripts/lyxpak.py"
> "C:/work/"/"a.lyx"
> >Traceback (most recent call last):
> >  File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 401, in
> 
> >main(sys.argv)
> >  File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 302, in
> main
> >input = gzopen(lyxfile)
> >^^^
> >  File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 77, in
> gzopen
> >input = open(file.decode('utf-8'), 'rb')
> > ^^^
> >AttributeError: 'str' object has no attribute 'decode'. Did you mean:
> 'encode'?
> >
> >
> >I don't think it was ever tested on Windows with Python3.
>
> For making it work with Python 3 on Windows I had to patch both our
> lyxpak.py script and getopt.py from Python.
>
> Attached you will find the patch to be applied to lyxpak.py, the patch I
> had to apply to getopt.py and the patched version (lyxwin_getopt.py)
> that should be distributed with LyX.
>
> In this way lyxpak.py works for me with both Python 2 and 3, in both
> Windows and Linux.
>
> Please test, especially on Windows.
>

It's going to be a bit hard to test the patch for getopt.py, as the default
LyX installer ships the Python libraries in a .zip file ("C:\Program
Files\LyX 2.4\Python\python311.zip") containing only .pyc files (like
getopt.pyc).

Nevertheless, copying your module lyxwin_getopt and patching lyxpak.py
solves the problem for me! (Windows 11 x64 23H2.)
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-01-30 Thread Jean-Marc Lasgouttes

Le 30/01/2024 à 21:15, Enrico Forestieri a écrit :
No, the patched version works only on Windows. It will not be used on 
Linux.
However, it has to go with the patched lyxpak.py and thus it has to be 
shipped with the other sources. Otherwise lyxpak.py does not work when 
running LyX in place after compiling it.


Is that a Python bug? Should it be reported?

JMarc

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


Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-01-30 Thread Enrico Forestieri

On Tue, Jan 30, 2024 at 09:04:53PM +0100, Pavel Sanda wrote:


On Tue, Jan 30, 2024 at 07:26:35PM +0100, Enrico Forestieri wrote:

For making it work with Python 3 on Windows I had to patch both our
lyxpak.py script and getopt.py from Python.

Attached you will find the patch to be applied to lyxpak.py, the patch I had
to apply to getopt.py and the patched version (lyxwin_getopt.py) that should
be distributed with LyX.


I am confused about the situation on linux. Do you propose that we ship
our own getopt.py for linux installs as well?


No, the patched version works only on Windows. It will not be used on Linux.
However, it has to go with the patched lyxpak.py and thus it has to be 
shipped with the other sources. Otherwise lyxpak.py does not work when 
running LyX in place after compiling it.


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


Re: LYX 2.4 RC1 ??? Unable to export a Lyx archive (zip)

2024-01-30 Thread Pavel Sanda
On Tue, Jan 30, 2024 at 07:26:35PM +0100, Enrico Forestieri wrote:
> For making it work with Python 3 on Windows I had to patch both our
> lyxpak.py script and getopt.py from Python.
> 
> Attached you will find the patch to be applied to lyxpak.py, the patch I had
> to apply to getopt.py and the patched version (lyxwin_getopt.py) that should
> be distributed with LyX.

I am confused about the situation on linux. Do you propose that we ship 
our own getopt.py for linux installs as well?

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-30 Thread Enrico Forestieri

On Sun, Jan 28, 2024 at 12:59:12AM +0100, Enrico Forestieri wrote:


On Sat, Jan 27, 2024 at 10:09:05PM +, José Matos wrote:


On Sat, 2024-01-27 at 20:49 +0100, didiergab...@free.fr wrote:

20:37:37.977: Exportation en cours...
20:37:37.993: (buffer-export lyxzip)
20:37:38.150: python -tt "C:/Users/Didier/AppData/Local/Programs/LyX
2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
2024/DS3/"/"MWE-PDF preview.lyx"
20:37:38.375: Traceback (most recent call last):
20:37:38.376:   File "C:\Users\Didier\AppData\Local\Programs\LyX
2.4\Resources\scripts\lyxpak.py", line 396, in 
20:37:38.377: if not argv[0].startswith("-"):
20:37:38.378:^^^
20:37:38.378: TypeError: startswith first arg must be bytes or a
tuple of bytes, not str
support\Systemcall.cpp (306): Systemcall: 'python -tt
"C:/Users/Didier/AppData/Local/Programs/LyX
2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
2024/DS3/"/"MWE-PDF preview.lyx"' finished with exit code 1
Error: Conversion du fichier impossible


The problem here is that argv members are of type bytes instead of
being str (string).

This comes from the fact that the lyxpak.py script has special code to
deal with Python 2 on Windows.

@Enrico could it be that most of the specific windows code is not need
any more with Python 3?


I don't know (I don't use the native windows version). However, 
skipping that code when using Python3 the script fails as follows:


python -tt "C:/Program Files/LyX/Resources/scripts/lyxpak.py" "C:/work/"/"a.lyx"
Traceback (most recent call last):
 File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 401, in 
   main(sys.argv)
 File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 302, in main
   input = gzopen(lyxfile)
   ^^^
 File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 77, in gzopen
   input = open(file.decode('utf-8'), 'rb')
^^^
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?


I don't think it was ever tested on Windows with Python3.


For making it work with Python 3 on Windows I had to patch both our 
lyxpak.py script and getopt.py from Python.


Attached you will find the patch to be applied to lyxpak.py, the patch I 
had to apply to getopt.py and the patched version (lyxwin_getopt.py) 
that should be distributed with LyX.


In this way lyxpak.py works for me with both Python 2 and 3, in both 
Windows and Linux.


Please test, especially on Windows.

--
Enrico
--- /c/Progra~1/Inkscape/lib/python3.11/getopt.py   2024-01-30 
18:39:45.118862300 +0100
+++ /usr/local/src/lyx/lyx-devel/lib/scripts/lyxwin_getopt.py   2024-01-30 
18:59:02.668281900 +0100
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 """Parser for command line options.
 
 This module helps scripts to parse the command line arguments in
@@ -85,11 +87,11 @@ def getopt(args, shortopts, longopts = [
 longopts = [longopts]
 else:
 longopts = list(longopts)
-while args and args[0].startswith('-') and args[0] != '-':
+while args and args[0].startswith(b'-') and args[0] != '-':
 if args[0] == '--':
 args = args[1:]
 break
-if args[0].startswith('--'):
+if args[0].startswith(b'--'):
 opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
 else:
 opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
@@ -119,7 +121,7 @@ def gnu_getopt(args, shortopts, longopts
 longopts = list(longopts)
 
 # Allow options after non-option arguments?
-if shortopts.startswith('+'):
+if shortopts.startswith(b'+'):
 shortopts = shortopts[1:]
 all_options_first = True
 elif os.environ.get("POSIXLY_CORRECT"):
@@ -207,7 +209,7 @@ def do_shorts(opts, optstring, shortopts
 def short_has_arg(opt, shortopts):
 for i in range(len(shortopts)):
 if opt == shortopts[i] != ':':
-return shortopts.startswith(':', i+1)
+return shortopts.startswith(b':', i+1)
 raise GetoptError(_('option -%s not recognized') % opt, opt)
 
 if __name__ == '__main__':
diff --git a/lib/scripts/lyxpak.py b/lib/scripts/lyxpak.py
index 6cdea5c53f..07091f208c 100755
--- a/lib/scripts/lyxpak.py
+++ b/lib/scripts/lyxpak.py
@@ -17,7 +17,6 @@
 
 from __future__ import print_function
 import gzip, os, re, sys
-from getopt import getopt
 from io import BytesIO
 import subprocess
 
@@ -35,6 +34,9 @@ running_on_windows = (os.name == 'nt')
 if running_on_windows:
 from shutil import copyfile
 from tempfile import NamedTemporaryFile
+from lyxwin_getopt import getopt
+else:
+from getopt import getopt
 
 # Pre-compiled regular expressions.
 re_lyxfile = re.compile(br"\.lyx$")
@@ -128,7 +130,7 @@ def gather_files(curfile, incfiles, lyx2lyx):
 elif running_on_windows:
 # For some unknown reason, there can be a spurious '\r' in the line
 # separators, causing 

Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread Enrico Forestieri

On Sat, Jan 27, 2024 at 10:09:05PM +, José Matos wrote:


On Sat, 2024-01-27 at 20:49 +0100, didiergab...@free.fr wrote:

20:37:37.977: Exportation en cours...
20:37:37.993: (buffer-export lyxzip)
20:37:38.150: python -tt "C:/Users/Didier/AppData/Local/Programs/LyX
2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
2024/DS3/"/"MWE-PDF preview.lyx"
20:37:38.375: Traceback (most recent call last):
20:37:38.376:   File "C:\Users\Didier\AppData\Local\Programs\LyX
2.4\Resources\scripts\lyxpak.py", line 396, in 
20:37:38.377: if not argv[0].startswith("-"):
20:37:38.378:^^^
20:37:38.378: TypeError: startswith first arg must be bytes or a
tuple of bytes, not str
support\Systemcall.cpp (306): Systemcall: 'python -tt
"C:/Users/Didier/AppData/Local/Programs/LyX
2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
2024/DS3/"/"MWE-PDF preview.lyx"' finished with exit code 1
Error: Conversion du fichier impossible


The problem here is that argv members are of type bytes instead of
being str (string).

This comes from the fact that the lyxpak.py script has special code to
deal with Python 2 on Windows.

@Enrico could it be that most of the specific windows code is not need
any more with Python 3?


I don't know (I don't use the native windows version). However, skipping 
that code when using Python3 the script fails as follows:


python -tt "C:/Program Files/LyX/Resources/scripts/lyxpak.py" "C:/work/"/"a.lyx"
Traceback (most recent call last):
  File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 401, in 
main(sys.argv)
  File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 302, in main
input = gzopen(lyxfile)
^^^
  File "C:\Program Files\LyX\Resources\scripts\lyxpak.py", line 77, in gzopen
input = open(file.decode('utf-8'), 'rb')
 ^^^
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?


I don't think it was ever tested on Windows with Python3.

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread José Matos
On Sat, 2024-01-27 at 20:49 +0100, didiergab...@free.fr wrote:
> 20:37:37.977: Exportation en cours...
> 20:37:37.993: (buffer-export lyxzip)
> 20:37:38.150: python -tt "C:/Users/Didier/AppData/Local/Programs/LyX
> 2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
> 2024/DS3/"/"MWE-PDF preview.lyx"
> 20:37:38.375: Traceback (most recent call last):
> 20:37:38.376:   File "C:\Users\Didier\AppData\Local\Programs\LyX
> 2.4\Resources\scripts\lyxpak.py", line 396, in 
> 20:37:38.377: if not argv[0].startswith("-"):
> 20:37:38.378:^^^
> 20:37:38.378: TypeError: startswith first arg must be bytes or a
> tuple of bytes, not str
> support\Systemcall.cpp (306): Systemcall: 'python -tt
> "C:/Users/Didier/AppData/Local/Programs/LyX
> 2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-
> 2024/DS3/"/"MWE-PDF preview.lyx"' finished with exit code 1
> Error: Conversion du fichier impossible

The problem here is that argv members are of type bytes instead of
being str (string).

This comes from the fact that the lyxpak.py script has special code to
deal with Python 2 on Windows.

@Enrico could it be that most of the specific windows code is not need
any more with Python 3?

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread Eberhard W Lisse
On the Mac it exports nicely to tar.gz (after removing the Doc/
subdirectory from the image paths :-)-O), but the error message will
probably help the developers (it is within a windows specific block).

el

On 27/01/2024 21:49, didiergab...@free.fr wrote:
[...]
> 20:37:38.376: File "C:\Users\Didier\AppData\Local\Programs\LyX 
> 2.4\Resources\scripts\lyxpak.py", line 396, in 
> 
> 20:37:38.377: if not argv[0].startswith("-"):
> 
> 20:37:38.378: ^^^
> 
> 20:37:38.378: TypeError: startswith first arg must be bytes or a 
> tuple of bytes, not str
[...]

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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread didiergabory

Sorry for leaving the reference to the custom module... You can delete it 
because what's left in the file doesn't use it. 

Here is the content of the “message” panel when trying to export… 



20:37:37.977: Exportation en cours... 

20:37:37.993: (buffer-export lyxzip) 
20:37:38.150: python -tt "C:/Users/Didier/AppData/Local/Programs/LyX 
2.4/Resources/scripts/lyxpak.py" "K:/CPGE/PTSI/DS/DS-2023-2024/DS3/"/"MWE-PDF 
preview.lyx" 
20:37:38.375: Traceback (most recent call last): 
20:37:38.376: File "C:\Users\Didier\AppData\Local\Programs\LyX 
2.4\Resources\scripts\lyxpak.py", line 396, in  
20:37:38.377: if not argv[0].startswith("-"): 
20:37:38.378: ^^^ 
20:37:38.378: TypeError: startswith first arg must be bytes or a tuple of 
bytes, not str 
support\Systemcall.cpp (306): Systemcall: 'python -tt 
"C:/Users/Didier/AppData/Local/Programs/LyX 2.4/Resources/scripts/lyxpak.py" 
"K:/CPGE/PTSI/DS/DS-2023-2024/DS3/"/"MWE-PDF preview.lyx"' finished with exit 
code 1 
Error: Conversion du fichier impossible 
 
Une erreur s'est produite lors de l'exécution : 
python -tt $$s/scripts/lyxpak.py "K:/CPGE/PTSI/DS/DS-2023-2024/DS3/"/"MWE-PDF 
preview.lyx" 
20:38:03.687: Erreur à l'exportation au format : Archive LyX (zip)-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread Eberhard W Lisse
It is not an MWE, it requires a specific Module.

el

On 27/01/2024 19:12, didiergab...@free.fr wrote:
> Unable to export a Lyx archive (zip)...Attached here is a screen copy of
> the error message, as well as the test file.On windows 10 pro
> 


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


Re: LYX 2.4 RC1 — Unable to export a Lyx archive (zip)

2024-01-27 Thread José Matos
On Sat, 2024-01-27 at 18:12 +0100, didiergab...@free.fr wrote:
> Unable to export a Lyx archive (zip)...
> Attached here is a screen copy of the error message, as well as the
> test file.
> On windows 10 pro

What do you get from View -> Messages Pane (Affichage -> Panneau des
messages)?

On Linux I get:

17:28:53.360: Exporting ...
17:28:53.365: (buffer-export lyxgz)
17:28:53.467: python3 -tt
"/home/jamatos/lyx/lyx.anon/lib/scripts/lyxpak.py"
"/home/jamatos/tmp/inbox/lyx/"/"MWE-PDF preview.lyx"
17:28:53.568: LyX archive "/home/jamatos/tmp/inbox/lyx/MWE-PDF
preview.tar.gz" created successfully.
17:28:53.568: lyx2lyx warning: No conversion needed: Target format 620
same as current format!
17:28:53.573: Successful export to format: LyX Archive (tar.gz)

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