#44 NameError with "typelibs"

closed-fixed
nobody
None
5
2004-04-07
2004-04-07
Bajusz Tamás
No

py2exe 0.5.0 with Python 2.3.3 on XP

C:\python23\scripts>python setup.py py2exe -c
running py2exe
*** generate typelib stubs ***
Traceback (most recent call last):
File "setup.py", line 20, in ?
options = {"py2exe": {"typelibs": [('{EAB22AC0-30C1-
11CF-A7EB-0000C05BAE0B}'
,0,1,1)],
File "c:\python23\lib\distutils\core.py", line 149, in
setup
dist.run_commands()
File "c:\python23\lib\distutils\dist.py", line 907, in
run_commands
self.run_command(cmd)
File "c:\python23\lib\distutils\dist.py", line 927, in
run_command
cmd_obj.run()
File "c:\python23\lib\site-
packages\py2exe\build_exe.py", line 180, in run
self.typelibs)
File "c:\python23\lib\site-
packages\py2exe\build_exe.py", line 1062, in collec
t_win32com_genpy
sub_mod = gencache.GetModuleForCLSID(clsid)
File "C:\python23\Lib\site-
packages\win32com\client\gencache.py", line 240, in
GetModuleForCLSID
makepy.GenerateChildFromTypeLibSpec(sub_mod,
info)
File "C:\python23\Lib\site-
packages\win32com\client\makepy.py", line 306, in G
enerateChildFromTypeLibSpec
__import__("win32com.gen_py." + dir_name + "." +
child)
File "C:\python23\scripts\build\bdist.win32
\winexe\temp\win32com\gen_py\EAB22A
C0-30C1-11CF-A7EB-0000C05BAE0Bx0x1x1
\IWebBrowser.py", line 27, in ?
class IWebBrowser(DispatchBaseClass):
NameError: name 'DispatchBaseClass' is not defined
-------------------------------------------------

If i change build_exe.py at line 1057 from
makepy.GenerateFromTypeLibSpec(info, bForDemand =
True)
to
makepy.GenerateFromTypeLibSpec(info, bForDemand =
False)

it's OK.

Bajusz Tamás

Discussion

  • Thomas Heller
    Thomas Heller
    2004-04-07

    Logged In: YES
    user_id=11105

    This is already fixed in CVS, in the same way you suggested ;-)
    Thanks anyway.

     
  • Thomas Heller
    Thomas Heller
    2004-04-07

    • summary: NameError with "typelibs" --> NameError with "typelibs"
    • status: open --> closed-fixed