[python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Jacob Kruger
Ok, when I now type in the following command: python setup.py py2exe with the following code in setup.py: #start code from glob import glob from distutils.core import setup import py2exe data_files = [(Microsoft.VC90.CRT, glob(r'C:\Program Files\Microsoft Visual Studio

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
Jacob Kruger wrote: Ok, when I now type in the following command: python setup.py py2exe ... It seems to be generating the following exception/error, based on the line where I assume I'm trying to tell it to include the contents of the file, mapDataFn.py? #error text from console window

[python-win32] Error Quitting Excel Instance when One is Already Open

2011-05-24 Thread Mark Mordeca
Greetings, I am having a problem with using win32com to open an instance of Excel when there is already one open. I would appreciate any help. My example goes as follows: The user has an Excel file (and therefore an EXCEL.exe process) open already. I do:

[python-win32] RTD Server problem with Excel 2007

2011-05-24 Thread Tobias Oberstein
Hi, I'm testing the excelRTDServer.py example RTD Server (TimeServer): Win7-SP1 64-Bit Excel 2007 32-Bit Python 2.6.6 32-Bit pywin32-216 and get a generic COM exception when the RTD server tries to notify Excel of data changes (from the trace collector): Traceback (most recent call last):

[python-win32] outlook new mail handling

2011-05-24 Thread Umesh Sharma
hi, i am building application for outlook in my application i need to capture the NewMailEx event of Outlook which fires when a new mail arrived. I have tried using win32event but i failed can please anyone tell me how to capture new mail of outlook using event handler thanks Umesh Kumar Sharma

Re: [python-win32] RTD Server problem with Excel 2007

2011-05-24 Thread Tim Roberts
Tobias Oberstein wrote: ... and get a generic COM exception when the RTD server tries to notify Excel of data changes (from the trace collector): ... The COM Error is: generic COM exception 0x80020009 The callpath that leads to the exception is: excelRTDServer.py == L281

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
Jacob Kruger wrote: Ok, then why is it not picking up that the 2 files are in fact in same folder at the time when I'm running the setup.py? All I have in the main file is the following in case that's an issue?: from mapDataFn import fnTakeItem If you have main.py, setup.py, and

Re: [python-win32] Next step trying to include extra/external file in py2exe output

2011-05-24 Thread Tim Roberts
Jacob Kruger wrote: #error text from console window raise ImportError, No module named + qname ImportError: No module named c:\temp\pythonScripts\mapDataFn Should I rather copy that file to somewhere else, and then just tell it to do something like: includes : [mapDataFn] Also tried

Re: [python-win32] Error Quitting Excel Instance when One is Already Open

2011-05-24 Thread Mark Hammond
Sadly this is all under the control of Excel, so I've no good advice. The poor advice I can offer is (1) for your own piece of mind, see if you can get the same basic behaviour with wscript and a .vbs script, (2) to try and see if you can find a similar problem in any language/environment (eg,