https://bugs.documentfoundation.org/show_bug.cgi?id=159988
--- Comment #1 from [email protected] --- How to reproduce without using the OAuth2OOo extension: The case where it works: - Install LibreOffice 24.2.x on Windows 10 64bits. - download and decompress the lxml package[1] for Windows amd64 / Python 3.8 into a directory. - Place the contents (ie: lxml-5.1.0.dist-info and lxml directory) of this archive in the LibreOffice Python lib directory (ie: C:\Program Files\LibreOffice\program\python-core-3.8.18\lib) - Open a terminal and place this in the folder: C:\Program Files\LibreOffice\program. - Load the Python console with the command: .\python - In the Python console import the lxml and etree modules using the commands: - import lxml - from lxml import etree - The 2 modules will be loaded correctly. The case where it doesn't work: - Install LibreOffice 24.2.x on Linux x86_64. - download and decompress the lxml package[2] for Linux x86_64 / Python 3.8 into a directory. - Place the contents (ie: lxml-5.1.0.dist-info and lxml directory) of this archive in the LibreOffice Python lib directory (ie: /opt/libreoffice24.2/program/python-core-3.8.18/lib) - Open a terminal and place this in the folder: /opt/libreoffice24.2/program. - Load the Python console with the command: ./python - In the Python console import the lxml and etree modules using the commands: - import lxml - from lxml import etree - When you import etree you will get the error: ImportError: cannot import name 'etree' from 'lxml' (/opt/libreoffice24.2/program/python-core-3.8.18/lib/lxml/__init__.py) [1] https://files.pythonhosted.org/packages/86/65/3d582b968b9b6c3efdc4e54f36878d0b79c51af10ec7c9d02d08dd72314b/lxml-5.1.0-cp38-cp38-win_amd64.whl [2] https://files.pythonhosted.org/packages/ee/08/8cb09c9a0d77e7b615ace332a76e6460f4c3b0a50654c181755c619c383e/lxml-5.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -- You are receiving this mail because: You are the assignee for the bug.
