Traceback (most recent call last):
File "convert.py", line 24, in <module>
powerpoint = init_powerpoint()
File "convert.py", line 5, in init_powerpoint
powerpoint = comtypes.client.CreateObject("Powerpoint.Application")
File "D:\software\Anaconda\envs\MCM\lib\site-packages\comtypes\client\__init__.py", line 250, in CreateObject
return _manage(obj, clsid, interface=interface)
File "D:\software\Anaconda\envs\MCM\lib\site-packages\comtypes\client\__init__.py", line 188, in _manage
obj = GetBestInterface(obj)
File "D:\software\Anaconda\envs\MCM\lib\site-packages\comtypes\client\__init__.py", line 112, in GetBestInterface
interface = getattr(mod, itf_name)
AttributeError: module 'comtypes.gen.PowerPoint' has no attribute '_Application'
def init_powerpoint():
powerpoint = win32com.client.DispatchEx("Powerpoint.Application")
return powerpoint