What is wrong with XChartTypeTemplate
???
Import is failing.
I am trying to import XChartTypeTemplate
in LibreOffice 7.4 on Ubuntu 22.04.
I have both snap LibreOffice 7.4 and Regular Installed LibreOffice 7.4 and both version report this same import error.
Here is a API link to XChartTypeTemplate
APSO python console [LibreOffice]
3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]
Type "help", "copyright", "credits" or "license" for more information.
>>> from com.sun.star.chart2 import XChartTypeTemplate
Traceback (most recent call last):
File "/usr/lib/python3.10/code.py", line 90, in runcode
exec(code, self.locals)
File "<console>", line 1, in <module>
File "/usr/lib/python3/dist-packages/uno.py", line 428, in _uno_import
raise uno_import_exc
File "/usr/lib/python3/dist-packages/uno.py", line 349, in _uno_import
return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'com' (or 'com.sun.star.chart2.XChartTypeTemplate' is unknown)
other imports seem to be working fine.
No Errors.
>>> from com.sun.star.chart2 import XChartType
>>>