Bug 116412 - Bundled python fails to import bz2 on Windows
Summary: Bundled python fails to import bz2 on Windows
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-15 02:36 UTC by Takeshi Abe
Modified: 2018-03-16 14:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Takeshi Abe 2018-03-15 02:36:07 UTC
Description:
Importing bz2 module of Python fails with the following error message:
ImportError: No module named '__bz2'

Steps to Reproduce:
1. Start Command Prompt
2. > cd "C:\Program Files\LibreOffice\program"
3. > python
4. >>> import bz2

Actual Results:  
Got an ImportError:
---
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\LibreOffice\program\python-core-3.5.4\lib\bz2.py", line 22, in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
ImportError: No module named '_bz2'
>>>
---

Expected Results:
Module bz2 is imported successfully.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.0.2.1 (x64)
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 8; OS: Windows 10.0; UI render: default; 
Locale: en-US (en_US); Calc: group

On the other hand, importing bz2 succeeds with python of macOS version of LibO 6.0.2.


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 Buovjaga 2018-03-16 14:07:57 UTC
Repro.

Version: 6.0.2.1 (x64)
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: fi-FI (fi_FI); Calc: group