<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 2/10/21 4:28 PM, Yu Jin wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHyfprR8v635iBFHJWsXxDStgcHY8KD_WFdhpqrSgB0YeZRLPQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">Am Mi., 10. Feb. 2021 um
            20:23 Uhr schrieb Richard Kimberly Heck <<a
              href="mailto:rikiheck@lyx.org" moz-do-not-send="true">rikiheck@lyx.org</a>>:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div>
              <div>On 2/10/21 2:14 PM, Thibaut Cuvelier wrote:<br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <div class="gmail_quote">
                    <div dir="ltr" class="gmail_attr">On Wed, 10 Feb
                      2021 at 18:34, José Abílio Matos <<a
                        href="mailto:jamatos@lyx.org" target="_blank"
                        moz-do-not-send="true">jamatos@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 Wednesday,
                      February 10, 2021 12:48:17 PM WET Thibaut Cuvelier
                      wrote:<br>
                      > @José : reconfiguring LyX does not solve the
                      problem. It really looks like<br>
                      > it cannot find Python.<br>
                      <br>
                      We did not change the python detection code since
                      alpha-1... :-(<br>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>However, this must be the cause of the
                      problems. I just tried adding Python to the PATH
                      environment variable, and everything worked
                      perfectly. <br>
                    </div>
                    <div><br>
                    </div>
                    <div>Maybe LyX is tricked in some way by the
                      python.exe that Microsoft puts in the PATH? (It's
                      not a real Python, just something that tells you
                      how to install it.) With this, you can start "a
                      Python executable", but it will not execute any
                      script (I believe it always returns an error
                      code).<br>
                    </div>
                  </div>
                </div>
              </blockquote>
              <p>That may be. Where do we record what Python we found?<br>
              </p>
              <p>If so, then the solution would be to try running some
                simple Python file using whatever we find and see if
                that works. E.g. run the program "1;".</p>
            </div>
          </blockquote>
          <div>I have contributed some lines to python recognition on
            windows (<a href="https://www.lyx.org/trac/ticket/11712"
              moz-do-not-send="true">https://www.lyx.org/trac/ticket/11712</a>):
            But because of what was written by Thibaut (adding Python to
            PATH), it  looks to me that the failure is not in this
            function but in rather LyX failing to add path prefix. I can
            also reproduce this btw. I have checked the path prefix in
            the settings, all is done right there. But even if I add
            python dir to PATH, it then will not find other dependencies
            (imagemagik and ghostscript).<br clear="all">
          </div>
        </div>
      </div>
    </blockquote>
    <p>I would try reverting all the changes to configure.py since alpha
      1 and see if that fixes the problem. We did not get this report
      with alpha 1. These are:</p>
    <p> f7beed1e<br>
      e95513c8<br>
      9d4ffac7<br>
      e3fe4d65<br>
      daa6f143<br>
      c0fe2522<br>
      af49df00<br>
      738dccbf</p>
    <p>If that helps, then add them back one at a time and find the
      culprit.<br>
    </p>
    <p>Riki</p>
    <br>
  </body>
</html>