Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#25 typelibs option b0rks (0.5.0a1)

closed
Thomas Heller
None
5
2004-02-19
2003-10-07
Simon Dahlbacka
No

testing the new 0.5.0a1 version with the

typelibs parameter b0rks

in my case:

...
typelibs =
[('{2df8d04c-5bfa-101b-bde5-00aa0044de52}',0,2,2),]
...
barfs out with a:

running py2exe
*** generate typelib stubs ***
Traceback (most recent call last):
File "setup.py", line 41, in ?
options = {"py2exe" : py2exe_options},
File "e:\python23\lib\distutils\core.py", line 149,
in setup
dist.run_commands()
File "e:\python23\lib\distutils\dist.py", line 907,
in run_commands
self.run_command(cmd)
File "e:\python23\lib\distutils\dist.py", line 927,
in run_command
cmd_obj.run()
File
"E:\Python23\Lib\site-packages\py2exe\build_exe.py",
line 169, in run
self.typelibs)
File
"E:\Python23\Lib\site-packages\py2exe\build_exe.py",
line 867, in collect
_win32com_genpy
win32com.gen_py.__path__ = [old_gen_path]
AttributeError: 'module' object has no attribute 'gen_py'

Discussion

  • Thomas Heller
    Thomas Heller
    2003-10-08

    • assigned_to: nobody --> mhammond
     
  • Thomas Heller
    Thomas Heller
    2003-10-08

    Logged In: YES
    user_id=11105

    You need a newer win32all version than you have.
    Unfortunately, even the newest one released (159) doesn't
    seem to be new enough ;-(

    I'll try to assign this bug to Mark, maybe this bugs him to
    look into this and/or release a new win32all build.

    (Mark: with win32all build 159, building the exe isn't a
    problem, but running the built exe shows this traceback,
    test_wmi is a simple script using Tim Golden's wmi module):

    Traceback (most recent call last):
    File "test_wmi.py", line 1, in ?
    import wmi
    File "wmi.pyc", line 117, in ?
    File "win32com\client\gencache.pyc", line 443, in
    EnsureDispatch
    File "win32com\client\gencache.pyc", line 341, in EnsureModule
    File "win32com\client\gencache.pyc", line 213, in
    GetModuleForTypelib
    File "win32com\client\gencache.pyc", line 481, in _GetModule
    File "win32com\gen_py\__init__.pyc", line 3, in ?
    AttributeError: 'module' object has no attribute '__gen_path__'

     
  • Logged In: YES
    user_id=750513

    using the win32all (159) it seems to be working, at least
    the produced executable runs on my dev machine, haven't had
    time to test on others yet..

    ..however, in order to be able to run it, I had to replace
    all references to win32com.client.constants with their
    numerical values..

     
  • Thomas Heller
    Thomas Heller
    2004-01-16

    Logged In: YES
    user_id=11105

    Does this still occur, with py2exe 0.5.0, and win32all build
    163?

     
  • Thomas Heller
    Thomas Heller
    2004-01-16

    • assigned_to: mhammond --> theller
     
  • Thomas Heller
    Thomas Heller
    2004-02-19

    Logged In: YES
    user_id=11105

    No response - closing.

     
  • Thomas Heller
    Thomas Heller
    2004-02-19

    • status: open --> closed