[python-win32] win32 error running on python 3 and win 64 machine
Tim Roberts
timr at probo.com
Sun Jul 3 14:46:56 EDT 2016
On Jun 30, 2016, at 5:23 AM, Nabeela <tabu1989 at gmail.com<mailto:tabu1989 at gmail.com>> wrote:
i'm trying to run the following code and get this error
import win32com.client as win32
import os
excel = win32.gencache.EnsureDispatch('Excel.Application')
Traceback (most recent call last):
File "C:\Users\nabeelah.bijapur\Documents\Anaconda3\lib\site-packages\win32com\client\gencache.py", line 532, in EnsureDispatch
ti = disp._oleobj_.GetTypeInfo()
pywintypes.com<http://pywintypes.com>_error: (-2147418111, 'Call was rejected by callee.', None, None)
Do you actually have Microsoft Office installed on this machine?
—
Tim Roberts, timr at probo.com<mailto:timr at probo.com>
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20160703/ab3b6d6b/attachment.html>
More information about the python-win32
mailing list