When attempting to import uno
under a Python 3.10 install, Python throws an error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\libreoffice7.3.4\program\uno.py", line 19, in <module>
import pyuno
ImportError: Module use of python38.dll conflicts with this version of Python.
Per research, the culprit is indeed the "python38.dll", which is a file in the Python 3.8 install that LibreOffice needs to do its Python stuff. The catch is, I don't have that dll, I have "python310.dll", and I cannot see how to tell LibreOffice (v. 7.3.4) to look for that dll instead.
I have tried to update the PYTHONPATH
environment variable to point at the 310.dll, and I have made sure that I only have one version of Python installed with $ py -01p
.
Searching within the LibreOffice files/forums has not turned up anything, either. Apparently LibreOffice 7.2 shipped with Python 3.8, and the LibreOffice 7.3 release notes' "Python" field is empty.
Am I just SOL trying to use Python to interact with LibreOffice until they maybe fix the issue with 7.4?