On 8/06/2010 11:21 AM, Greg Bahns wrote:
I was able to capture the error below when trying to enable the add-in.
Looks like write permissions in the win32com folder. I changed
directory to the parent folder "C:\\Program
Files\\Python26\\lib\\site-packages\\win32com\\gen_py\\" and ran this:
C:\Program Files\Python26\Lib\site-packages> *C:\Program
Files\Python26\Lib\site-packages*
After this, I seem to have gotten past the write permissions, because I
see the dicts.dat file now, with the current date and time.
Right - permissions is one reason Python doesn't install in Program
Files by default.
But now it just crashes Outlook. I’m going to try to figure out what’s
happening. Any troubleshooting tips would be appreciated. I’m a
developer, but haven’t done Python in years, and have never done Outlook
add-ins. For starters it would help to know what the entry point is when
Outlook tries to load the add-in. In the Outlook add-in dialog it shows
that the add-in is pythoncom26.dll, but I don’t see what script it’s
executing.
Outlook2000\addin.py is the 'entry-point' - although the entry-point is
actually the COM classes in that file, hence there is no __main__ block.
You will notice all the initialization done in the mainline (eg, the
code-block I mentioned yesterday) which would be a good place to start.
Sadly, crashers like this can be hard to pin down without a debugger and
debug versions of Python installed...
Mark
_______________________________________________
[email protected]
http://mail.python.org/mailman/listinfo/spambayes
Info/Unsubscribe: http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html