Bug 168513 - There is no lzma module in embedded Python distribution
Summary: There is no lzma module in embedded Python distribution
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.8.1.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Xisco Faulí
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks: Macro-Python
  Show dependency treegraph
 
Reported: 2025-09-22 22:20 UTC by denis.gz
Modified: 2025-11-11 20:40 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 denis.gz 2025-09-22 22:20:13 UTC
Description:
--

Steps to Reproduce:
1. Open console window
2. Change to the "C:\Program Files\LibreOffice\program" folder
3. Run python.exe
4. Execute "import lzma" statement

Actual Results:
Command fails

Expected Results:
Command succeeds


Reproducible: Always


User Profile Reset: Yes

Additional Info:
As with similar bug #168512 which addresses missing sqlite3 module, there is no easy workaround for this one too (for the same reason). Both sqlite3 and lzma modules could be useful when working with Pandas library, since they provide additional means for dataset importing/exporting tasks.
Comment 1 Xisco Faulí 2025-09-23 12:22:07 UTC
Comment from bug 168215: Regarding lzma, I added it in 892c0d2ef0ee43e079aff51dcc09572d76689ec1 in but it was reverted in 590157ac1584fb829b0c61905298114e7c4adfde
Comment 2 denis.gz 2025-09-23 13:32:56 UTC
Well, from my point of view, I don't see any rationale why it was removed either, back in 2015.
Comment 3 Xisco Faulí 2025-10-29 10:59:01 UTC
Moving to NEW
Comment 4 Commit Notification 2025-11-11 20:40:22 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6408a49ac5e4c9236b2f9fe88534b6bc9c8e58b9

tdf#168513: python3: bundle lzma

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.