[python-win32] Win32com error

2023-08-01 Thread Amanullah Amanullah
Hi, I'm using win32com module in python to perform actions such as draft email, change subject, move email items to other sub folders, and also read email details within date range etc. Intermittently I'm facing below error: -2147352567, 'Exception occurred.', (4096, 'Microsoft Outlook', 'Your se

Re: [python-win32] win32com error of 'invalid parameters'

2015-11-19 Thread Tim Roberts
Lewis Thompson wrote: > (-2147352567, 'Exception occurred.', (0, u'Xtapi.TTInstrObj.1', u'Invalid > Parameters', None, 0, -2147352567), None) > > Does this mean that an argument needs to be passed as a keyword arg? There's no way to tell. -2147352567 is 0x80020009, which is the unhelpful DISP_E_

[python-win32] win32com error of 'invalid parameters'

2015-11-19 Thread Lewis Thompson
(-2147352567, 'Exception occurred.', (0, u'Xtapi.TTInstrObj.1', u'Invalid Parameters', None, 0, -2147352567), None) Does this mean that an argument needs to be passed as a keyword arg? ___ python-win32 mailing list python-win32@python.org https://mail.

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread mc@mclaveau
Hi! > Carl Evans wrote: I am running 32bit Python 2.7 on 64bit excel Warning! 64 bits Excel have not the same CLSID than 32 bits Excel. If it run in tests/dev. with 32 bits Excel, try to install a 32 bits Office on the production computer. MS himself advises to prefer the 32-bit version. @-

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread Tim Roberts
Carl Evans wrote: > Yea I know. It worked fine when testing, I had it set up on task scheduler > when it stopped working u expectedly. Aha! I should have asked that earlier. I can explain this. By default, processes running under Task Scheduler run as the LocalSystem user, not as the logged in

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread Tim Roberts
Carl E. Evans wrote: > I can open excel fine with no issues. Its a full 64bit edition, so no > trial or anything. Also, when I run the script, this error occurs in > about 2 seconds, so not waiting for any sort of time out. Very odd. Has this EVER worked for you? You aren't trying to run this fr

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread Tim Roberts
Carl Evans wrote: > > I am trying to dipatch excel using the win32com library but for some > reason am running into an issue. I have the following code: The obvious question is, do you have Excel installed? That error (80080005) means that the COM server app (Excel, in this case) did not start up

[python-win32] Win32com Error any suggestions?

2015-04-15 Thread Carl Evans
Hi, I am trying to dipatch excel using the win32com library but for some reason am running into an issue. I have the following code: import win32com.clientimport os file1= r'C:\\Users\cevans\Desktop\models1\file.xlsm' def refresher(): if os.path.exists(file1): xl = win32com.client.D

[python-win32] win32com error when importing numpy

2011-01-18 Thread Mauro
I get an error (below) when trying to use a python code including numpy. Is win32 somehow incompatible with numpy? I would appreciate any information you can provide regarding this issue. I only get the error if I import any function from numpy! Minimal example: import win32com.server.register