[python-win32] Dispatch Error

2007-07-09 Thread James Matthews
I see people using this code however it doesn't seem to work for me! Any help Thanks James Code: from win32com.client import constants, Dispatch outlook = Dispatch("Outlook.Application") Error com_error: (-2146959355, 'Server execution failed', None, None) Traceback (innermost last): File "

Re: [python-win32] urllib and Outlook 2007

2007-07-09 Thread James Matthews
Thank you Larry however those websites don't help me when i want to be able to retrieve email content. On 7/9/07, Larry Bates <[EMAIL PROTECTED]> wrote: James Matthews wrote: > Dear List > > I have two questions. > > > 1. Is there any way to change the user-agent when using urllib.urlopen > wit

Re: [python-win32] urllib and Outlook 2007

2007-07-09 Thread Larry Bates
James Matthews wrote: > Dear List > > I have two questions. > > > 1. Is there any way to change the user-agent when using urllib.urlopen > without having to subclass it? > > 2. I cannot seem to find anything on reading outlook email using COM > everything i find is out dated can anyone give me

[python-win32] urllib and Outlook 2007

2007-07-09 Thread James Matthews
Dear List I have two questions. 1. Is there any way to change the user-agent when using urllib.urlopenwithout having to subclass it? 2. I cannot seem to find anything on reading outlook email using COM everything i find is out dated can anyone give me some pointers or a place to find some info

Re: [python-win32] Trying to build debug version of win32 extensions

2007-07-09 Thread Gerrat Rickert
LOL! duh...here I was believing this had something to do with the mysterious build process for c/c++ projects that I know nothing about, and it turns out it was just a stupid matter of me running my regular version of python to execute the setup.py script (instead of the debug version I built).

Re: [python-win32] Trying to build debug version of win32 extensions

2007-07-09 Thread Sidnei da Silva
I believe you just have to run setup.py with 'python_d.exe' that is in PCBuild\python_d.exe instead of 'python.exe', though I might be wrong. -- Sidnei da Silva Enfold Systemshttp://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 __

Re: [python-win32] Trying to build debug version of win32 extensions

2007-07-09 Thread Gerrat Rickert
Thanks for your reply, Mark. I probably wasn't very clear, but I did build a debug version of python. I'll provide more detailed information, as I'm sure the solution to my quandry is very likely a no-brainer for most of the people on this list. I checked out a copy of the python 2.4.4 source