https://bugs.documentfoundation.org/show_bug.cgi?id=168215

            Bug ID: 168215
           Summary: Embedded Python runtime lacks some important modules
           Product: LibreOffice
           Version: 25.8.1.1 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
1. No (simple) way to create virtual environment for embedded Python, using
standard approach via "python.exe -m venv venv" command.
2. Missing standard modules and binaries in embedded runtime (sqlite3,
_lzma.pyd and others), which makes third party modules installation/operation
to fail (for example, included lzma.py won't load on Windows).
3. Missing pythonw.exe binary (note the "W" in the name!) which makes Spyder
(and other GUI apps) to fail on startup. 
4. Missing import library and headers for python3.dll/python311.dll, which
makes it impossible to compile some modules for which prebuilt "wheel" doesn't
exist. For example, trying to replace missing sqlite3 with pysqlite3, fails due
to missing Python.h (easily fixable) and missing Python3.lib (not so easily
fixable).
5. Complications arose from existence of Python3.dll (shim dll, incompatible
with official Python3.dll) and Python311.dll (compatible but with a
non-standard name).

All these issues make developing Python scripts on Windows way more complicated
than it could/should be.

Steps to Reproduce:
1. Try to run python -m venv venv
2. Try to import lzma in a script
3. Try to install something which depends on sqlite3 (for example Spyder)
4. Try to run Spyder from venv

Actual Results:
1. Fails
2. Fails
3. Fails
4. Fails

Expected Results:
1. venv is created
2. import lzma doesn't fail
3. pip install spyder doesn't fail
4. Spyder runs


Reproducible: Always


User Profile Reset: No

Additional Info:
Developing Python script on Windows is too complicated now, due to difficulties
setting up (efficient in regard to time and resources) development environment.
Setting up should be as simple as:
1. set PATH=C:\Program Files\LibreOffice\program;%PATH%
2. mkdir project && cd project
3. python -m venv venv
4. venv\Scripts\activate
5. pip install spyder
6. spyder

And then start developing scripts, having decent debugger and code
inspection/completion.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to