[Libreoffice-bugs] [Bug 130404] New: get-pip.py fails to import _queue with LibreOffice 6.4.0.3 and embedded python 3.7.6 on Windows 10
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Feb 3 22:33:34 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=130404
Bug ID: 130404
Summary: get-pip.py fails to import _queue with LibreOffice
6.4.0.3 and embedded python 3.7.6 on Windows 10
Product: LibreOffice
Version: 6.4.0.3 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Installation
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: gaxonegaxone at hotmail.com
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:
https://www.python.org/ftp/python/3.7.6/python-3.7.6-embed-amd64.zip . 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 https://pip.pypa.io/en/stable/installing/. I
did this by opening a Windows 10 (admin) powershell and entering following
commands:
2a. cd C:\Program Files\LibreOffice\program\
2b. curl https://bootstrap.pypa.io/get-pip.py -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?
https://bugs.python.org/issue32588
( see specifically https://bugs.python.org/msg310258 )
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200203/c7a542b7/attachment.htm>
More information about the Libreoffice-bugs
mailing list