469,962 Members | 2,341 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

makepy must be run after restart of pythonwin


thank you for the hint, but i solved the problem myself.
i didnt knew that that the following two lines in py-script must be added:

from win32com.client import gencache

now it works fine. my skills in python in python are not really advanced, so
the python-mailinglists are good help for me.

so long


i'm using pythonwin 2.2.3
my programm reads and write the outlook-adress book using COM. for this i
have to use the makepy utility. after i have run the utiltity everything is
fine and i can run my py-file without any errors.
but if i close the pythonwin and restart and then try to run my py-script i
get the following error:

File "C:\Program Files\Python22\contacts_ausgabe.py", line 45, in
folder =
mapi.GetDefaultFolder(win32com.client.constants.o lFolderContacts)
File "C:\PROGRA~1\Python22\lib\site-packages\win32com\client\__init__.py",line 168, in __getattr__
raise AttributeError, a
AttributeError: olFolderContacts

I suggest you examine the attributes of win32com.client.constants. Perhaps
there is a case sensitivity issue. makepy can cause attributes that were
previously case insensitive to become case sensitive.

I also recall somewhere a discussion about win32com.client.constants not
being populated immediately. Consider waiting a moment after dispaching.

Bob Gailer
303 442 2625
Jul 18 '05 #1
0 1534

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Gerson Kurz | last post: by
2 posts views Thread by Svenn-Ivar Svendsen | last post: by
1 post views Thread by markscottwright | last post: by
2 posts views Thread by nvhengr | last post: by
1 post views Thread by Martin Stettner | last post: by
1 post views Thread by Steve M | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.