2.3.8dev compilation

2024-01-31 Thread Jean-Pierre Chrétien
Dear developers Compiling 2.3.8dev from recent git pull, I get these deprecation warnings : ../../../../2.3.x/src/frontends/qt4/GuiDocument.cpp:172:18: warning: ‘template struct std::binary_function’ is deprecated [-Wdeprecated-declarations] 172 | : public binary_function

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