<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 30 Jan 2021 at 12:26, Enrico Forestieri <<a href="mailto:forenr@lyx.org">forenr@lyx.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Jan 30, 2021 at 05:31:05AM +0100, Thibaut Cuvelier wrote:<br>
> On Sat, 30 Jan 2021 at 02:31, Enrico Forestieri <<a href="mailto:forenr@lyx.org" target="_blank">forenr@lyx.org</a>> wrote:<br>
> ><br>
> > So, it seems that you have to check also for the 32-bit version.<br>
> ><br>
> Indeed. Would the attached patch solve the problem? I first look for a<br>
> 64-bit version before a 32-bit, just to favour newer things, but there is<br>
> no other reason to do so.<br>
<br>
The patch does not apply neither to current master nor to current stable<br>
(most probably it depends on previous patches):<br>
<br>
$ patch --dry-run -p1 < 0013-Configure-look-for-Java-in-the-registry-on-Windows.patch<br>
checking file lib/configure.py<br>
Hunk #1 FAILED at 330.<br>
Hunk #2 succeeded at 403 (offset -14 lines).<br>
Hunk #3 succeeded at 1923 (offset -94 lines).<br>
1 out of 3 hunks FAILED<br>
<br>
and I had to apply it manually. Before applying it, I took away java from<br>
PATH and reconfigured:<br>
<br>
...<br>
checking for a java interpreter...<br>
+checking for "java"...  no<br>
...<br>
<br>
Correctly, java was not found (it is found when it is in PATH).<br>
Then I applied the patch an reconfigured again:<br>
<br>
...<br>
checking for a java interpreter...<br>
+checking for "java"...  no<br>
Traceback (most recent call last):<br>
  File "C:\cygwin\win\python\lib\logging\__init__.py", line 870, in emit<br>
    stream.write(ufs % msg)<br>
LookupError: unknown encoding: cp65001<br>
Logged from file configure.py, line 346<br>
...<br>
<br>
I have a native Windows version of Python 2.7 installed in<br>
"C:\cygwin\win\python".<br>
<br>
So, it seems there is a problem with Python 2<br></blockquote><div><br></div><div>I just tried with Python 2.7.18 (64 bits), I cannot reproduce your problem. What is exactly on your line 346? I guess it is something like <a href="http://logger.info">logger.info</a>, a line that runs without problem on my side (Python 3.8 and 2.7).<br></div></div></div>