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

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

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

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

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).

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

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

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

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

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

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

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

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

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

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

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

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

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