[python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously
Graham Bloice
graham.bloice at trihedral.com
Tue Jul 17 18:10:14 CEST 2012
> -----Original Message-----
> From: python-win32-bounces+graham.bloice=trihedral.com at python.org
> [mailto:python-win32-bounces+graham.bloice=trihedral.com at python.org]
> On Behalf Of Kurt Munson
> Sent: 17 July 2012 17:08
> To: python-win32 at python.org
> Subject: Re: [python-win32] new Pywin32 errors stating 'object has no
> attribute' - and the code worked previously
>
> Graham,
>
> Thanks for the suggestion - deleting the \win32com\gen_py .py and .pyc
files
> solved the problem!
>
> It appears that my dispatch (whether static or dynamic) was using old
> generated py instead of regenerating. Why would this be?
>
> Either way, deleting the folder under \win32com\gen_py solved this
> problem. Thanks again for the help.
>
[Graham Bloice said]
I don't know of a way to force regeneration, maybe the gencache module can
do that, or possibly ComMakePy.
More information about the python-win32
mailing list