<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 - get-pip.py fails to import _queue with LibreOffice 6.4.0.3 and embedded python 3.7.6 on Windows 10"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=130404">130404</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>get-pip.py fails to import _queue with LibreOffice 6.4.0.3 and embedded python 3.7.6 on Windows 10
</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>x86-64 (AMD64)
</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>Installation
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gaxonegaxone@hotmail.com
</td>
</tr></table>
<p>
<div>
<pre>Description:
History:
In LibreOffice 6.3 running on Windows 10, I had installed "pip" into
LibreOffice's embedded python without any problem. I recently upgraded to LO
6.4.0.3 and noticed the embedded python version is now 3.7.6. Thus, python
modules I had previously installed thus needed to be reinstalled, including
"pip". I began to do that, but ...
Problem:
Installing pip into the new embedded python version 3.7.6 fails with error
message:
ModuleNotFoundError: No module named '_queue'
It appears that module "_queue.pyd" is missing from the python version 3.7.6
files that are embedded in the Windows LibreOffice 6.4.0.3 distribution?
While investigating, I located the _queue.pyd module at:
<a href="https://www.python.org/ftp/python/3.7.6/python-3.7.6-embed-amd64.zip">https://www.python.org/ftp/python/3.7.6/python-3.7.6-embed-amd64.zip</a> . I
extracted it from the zip file and copied it into directory "C:\Program
Files\LibreOffice\program\python-core-3.7.6\lib\". I was then able to install
pip successfully.
Steps to Reproduce:
1. Install LibreOffice 6.4.0.3 (in my case, I upgraded from LO 6.3)
2. Install python "pip" utility into LibreOffice's embedded python (version
3.7.6) using instructions from <a href="https://pip.pypa.io/en/stable/installing/">https://pip.pypa.io/en/stable/installing/</a>. I
did this by opening a Windows 10 (admin) powershell and entering following
commands:
2a. cd C:\Program Files\LibreOffice\program\
2b. curl <a href="https://bootstrap.pypa.io/get-pip.py">https://bootstrap.pypa.io/get-pip.py</a> -o get-pip.py
2c. .\python.exe .\get-pip.py
Actual Results:
After step 2c, see following traceback:
PS C:\Program Files\LibreOffice\program> .\python.exe .\get-pip.py
Traceback (most recent call last):
File ".\get-pip.py", line 22711, in <module>
main()
File ".\get-pip.py", line 198, in main
bootstrap(tmpdir=tmpdir)
File ".\get-pip.py", line 82, in bootstrap
from pip._internal.cli.main import main as pip_entry_point
File
"C:\Users\gax\AppData\Local\Temp\tmpsnual8e6\pip.zip\pip\_internal\cli\main.py",
line 10, in <module>
File
"C:\Users\gax\AppData\Local\Temp\tmpsnual8e6\pip.zip\pip\_internal\cli\autocompletion.py",
line 9, in <module>
File
"C:\Users\gax\AppData\Local\Temp\tmpsnual8e6\pip.zip\pip\_internal\cli\main_parser.py",
line 7, in <module>
File
"C:\Users\gax\AppData\Local\Temp\tmpsnual8e6\pip.zip\pip\_internal\cli\cmdoptions.py",
line 31, in <module>
File
"C:\Users\gax\AppData\Local\Temp\tmpsnual8e6\pip.zip\pip\_internal\utils\ui.py",
line 20, in <module>
File
"C:\Users\gax\AppData\Local\Temp\tmpsnual8e6\pip.zip\pip\_internal\utils\logging.py",
line 9, in <module>
File "C:\Program
Files\LibreOffice\program\python-core-3.7.6\lib\logging\handlers.py", line 28,
in <module>
import queue
File "C:\Program Files\LibreOffice\program\python-core-3.7.6\lib\queue.py",
line 16, in <module>
from _queue import Empty
ModuleNotFoundError: No module named '_queue'
PS C:\Program Files\LibreOffice\program>
Expected Results:
PS C:\Program Files\LibreOffice\program> .\python.exe .\get-pip.py
Collecting pip
Using cached pip-20.0.2-py2.py3-none-any.whl (1.4 MB)
Collecting setuptools
Downloading setuptools-45.1.0-py3-none-any.whl (583 kB)
|████████████████████████████████| 583 kB 328 kB/s
Collecting wheel
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Installing collected packages: pip, setuptools, wheel
WARNING: The scripts pip.exe, pip3.7.exe and pip3.exe are installed in
'C:\Program Files\LibreOffice\program\python-core-3.7.6\Scripts' which is not
on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this
warning, use --no-warn-script-location.
WARNING: The scripts easy_install-3.7.exe and easy_install.exe are installed
in 'C:\Program Files\LibreOffice\program\python-core-3.7.6\Scripts' which is
not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this
warning, use --no-warn-script-location.
WARNING: The script wheel.exe is installed in 'C:\Program
Files\LibreOffice\program\python-core-3.7.6\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this
warning, use --no-warn-script-location.
Successfully installed pip-20.0.2 setuptools-45.1.0 wheel-0.34.2
Reproducible: Always
User Profile Reset: No
Additional Info:
I suspect the need to include module "_queue.pyd" with embedded python version
3.7.6 is somehow associated with the following python.org change?
<a href="https://bugs.python.org/issue32588">https://bugs.python.org/issue32588</a>
( see specifically <a href="https://bugs.python.org/msg310258">https://bugs.python.org/msg310258</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>