[python-win32] Re: Found how to use TLBs with py2exe,
Thomas Heller
theller at python.net
Fri Feb 27 12:03:28 EST 2004
pyama at snafu.de writes:
>> Andreas Maurer <pyama at snafu.de> writes:
>>
>>
>
> ....
>
>> > ChildFromTypeLibSpec
>> > __import__("win32com.gen_py." + dir_name + "." + child)
>> > File "H:\Ablagen\py\Setups\build\bdist.win32
>> > \winexe\temp\win32com\gen_py\783CD4E0-9D54-11CF-B8EE-00608CC9A71Fx0x5x1
>> > \IVSSDatabase.py", line 27, in ?
>> > class IVSSDatabase(DispatchBaseClass):
>> > NameError: name 'DispatchBaseClass' is not defined
>> > ---
>>
>> And this looks like you could try to debug this yourself. Can you try?
>
> I've tried. When I had found the reason why this exception raises
> I barely didn't post in this group.
>
Here's a hint. When I look into one of the subdirectories of
win32com\gen_py, I find code like this
(line 27) from win32com.client import DispatchBaseClass
(line 28) class ISWbemServicesEx(DispatchBaseClass):
The traceback you posted above suggests that the 'from ... import
DispatchBaseClass' line is missing in the module in your system, or for
another reason DispatchBaseClass is not defined.
Take a look into that file and report what you find there - that's what
I would have done if I were you.
Thomas
More information about the Python-win32
mailing list