[Libreoffice-bugs] [Bug 136001] New: Python import fails: No module named 'com'
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Aug 21 22:22:39 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=136001
Bug ID: 136001
Summary: Python import fails: No module named 'com'
Product: LibreOffice
Version: 6.4.5.2 release
Hardware: x86-64 (AMD64)
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: jens.troeger at light-speed.de
Description:
We have just updated to LibreOffice 6.4.6.2 40(Build:2), and now Python’s
modules fail to import:
$ PYTHONPATH=/usr/lib64/libreoffice/program/ python3.8
Python 3.8.5 (default, Aug 21 2020, 13:17:56)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> from com.sun.star.text import ReferenceFieldSource
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/libreoffice/program/uno.py", line 436, in _uno_import
raise uno_import_exc
File "/usr/lib64/libreoffice/program/uno.py", line 358, in _uno_import
return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'com' (or 'com.sun.star.text.ReferenceFieldSource'
is unknown)
>>>
Same with Python 3.7. Now rolling back to 6.4.5.2 which hopefully fixes the
issue.
Is this a regression? Something I’m missing? Anything changed here? I noticed
that 6.4.6.2 is not listed below as an “official” release?
Steps to Reproduce:
See above.
Actual Results:
Python import exception.
Expected Results:
Successful import of Python modules.
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Built LO on a Gentoo box:
[ebuild R ] app-office/libreoffice-6.4.6.2::gentoo USE="dbus mariadb
postgres -accessibility -base -bluetooth -branding -coinmp -cups -debug -eds
-firebird -googledrive -gstreamer -gtk -java -kde -ldap -odk -pdfimport -test"
LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript
-wiki-publisher" PYTHON_SINGLE_TARGET="python3_7 -python3_6 -python3_8
-python3_9" 0 KiB
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200821/21063b71/attachment.htm>
More information about the Libreoffice-bugs
mailing list