| Summary: | Python import fails: No module named 'com' | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Jens Troeger <jens.troeger> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | buzea.bogdan, serval2412, suokunlong |
| Priority: | medium | Keywords: | possibleRegression |
| Version: | 6.4.6.2 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 117710 | ||
|
Description
Jens Troeger
2020-08-21 22:22:39 UTC
I do not reproduce with the libreoffice version in Fedora 32's repo. Is it a problem in Gentoo's build of libreoffice? I do reproduce with version 6.4.6.2 release and also on libreoffice-7-0 branch, when running: from com.sun.star.text import ReferenceFieldSource. The first import, "import uno" is successful. The import of com.sun.start.* is successful when I use the python shell with the following extension: https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python On pc Debian x86-64 with master sources updated today, I don't reproduce this.
Python 3.8.12 (default, Jan 22 2022, 17:24:40)
[Clang 13.0.1 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> from com.sun.star.text import ReferenceFieldSource
>>>
Debian testing provides LO 7.3.0.2, I don't see any Python binary in a "libreoffice" subdir in "/usr" so can't test it.
@Julien Nabet the python-interpreter on Debian (also linked to LO ) is: /usr/bin/python @Julien Nabet the python-interpreter on Debian (also linked to LO ) is: /usr/bin/python |