<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Unable to run unit tests under Python 3.7 embedded in LibreOffice 6.4"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131105">131105</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unable to run unit tests under Python 3.7 embedded in LibreOffice 6.4
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>peter.88213@t-online.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
Unit tests previously working on LibreOffice 6.3 embedded Python fail on
LibreOffice 6.4 embedded Python. Upon trying to import "_queue", an ImportError
exception is thrown.

A comparison of the code of queue.py with the corresponding code of the current
Python 3.8 installation shows a difference which obviously causes the problem. 






Steps to Reproduce:
1. Register LibreOffice 6.4 embedded Python 3.7 as Python interpreter in
Eclipse PyDev.
2. Execute a formerly working Python unit test.


Actual Results:
The unit test terminates on ImportError exception (Module "_queue" not found).

Expected Results:
The test ends without errors, as under LibreOffice 6.3 embedded Python 3.5.


Reproducible: Always


User Profile Reset: No



Additional Info:
After changing line 17 of 
c:\Program Files\LibreOffice\program\python-core-3.7.6\lib\queue.py, 
everything seems to work. 

Original code as from line 15:

try:
    from _queue import Empty
except AttributeError:
    class Empty(Exception):
        'Exception raised by Queue.get(block=0)/get_nowait().'
        pass

Corrected code that matches my current Python 3.8 installation: 

try:
    from _queue import Empty
except ImportError:
    class Empty(Exception):
        'Exception raised by Queue.get(block=0)/get_nowait().'
        pass</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>