<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:glogow@fbihome.de" title="Jan-Marek Glogowski <glogow@fbihome.de>"> <span class="fn">Jan-Marek Glogowski</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Embedded Python install missing 6 Windows DLL files (LO 7.1.0.3, Python 3.8.4)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140279">bug 140279</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>UNCONFIRMED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Embedded Python install missing 6 Windows DLL files (LO 7.1.0.3, Python 3.8.4)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140279#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Embedded Python install missing 6 Windows DLL files (LO 7.1.0.3, Python 3.8.4)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=140279">bug 140279</a>
              from <span class="vcard"><a class="email" href="mailto:glogow@fbihome.de" title="Jan-Marek Glogowski <glogow@fbihome.de>"> <span class="fn">Jan-Marek Glogowski</span></a>
</span></b>
        <pre>(In reply to gaxonegaxone from <a href="show_bug.cgi?id=140279#c5">comment #5</a>)
<span class="quote">> Adding libffi-7.dll did resolve my issue.</span >

Ok. I'll close this as a duplicate.

<span class="quote">> I'm not sure if it's appropriate to mention here, or if you'd prefer
> separate bug report(s): I find that each time I upgrade LibreOffice (LO),
> iff LO has embedded a new Python version, then extra python packages I
> installed (residing in directory "site-packages") over the previous
> months/years are wiped out, and I must rebuild the environment required by
> my LO python macros.  For that reason, I now religiously check the Release
> Notes before upgrading LO to see if a new version of Python is included.</span >

<span class="quote">> 1. LO 7.1.0.3 Rel Notes did not (at least, not when I read them) mention the
> new python version.  Could the Rel Notes be updated to help others?</span >

Adding that info to the release notes is easy enough, if people don't forget
it, even that I don't see any benefit. You would see a failure instantly
anyway.

<span class="quote">> 2. Not sure if this is reasonable / advisable, but is it possible for the
> installation process to automatically preserve the LO user's python package
> environment in cases where LO is delivering a new python version?</span >

Probably. The install directory currently contains a version
(program/python-core-<version>). We build + ship our own Python for user
convenience and because pyuno is a c++ modules, so it would need to be compiled
on a users computer. I don't know, how compatible the Python module interface
is, so we could optionally use some system Python on Windows too and just ship
a precompiled PyUNO version. So maybe that workaround wouldn't actually work.
And it makes things much more complicated and error prone in the end.

And if we eliminate the version postfix, I'm not sure that would help or
produce more problems, if python versions break stuff. Maybe other stuff relies
on this directory name too.

This all looks like a can of worms and I doubt that currently any dev would
invest time into this. You're free to try yourself, or propose some solution.

In any way, this should be an extra bug report for further discussion.

<span class="quote">> 3. If answer to #2 is no, is there any way to at least include pip (or
> somehow boostrap pip automatically) in the embedded python?  That would
> simplify re-establishing the package environment needed by LO user's python
> macros.</span >

At least the Windows Python installer uses ensurepip to setup pip. I have no
idea, if that call is actually enough, or if there is additional stuff missing
in LO's Python build. The documentation claims, that everything is already
available and just work: <a href="https://docs.python.org/3/library/ensurepip.html">https://docs.python.org/3/library/ensurepip.html</a>

The msi call is "python -E -s -m ensurepip -U --default-pip", so I assume it
works on Windows too, if LO doesn't skip any pip stuff.

<span class="quote">> Thanks for resolving the DLL issue.</span >

You're welcome.

<span class="quote">> Let me know if one or more of items 1-3 belong in a separate bug report.</span >

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ImportError: DLL load failed while importing _ctypes"
   href="show_bug.cgi?id=140236">bug 140236</a> ***</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>