import py2exe Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dubstep
    New Member
    • Jun 2010
    • 1

    #1

    import py2exe Error

    When I use the command "import py2exe" in IDLE (Python Shell) I get the following error:
    Code:
    IDLE 2.6.5      
    >>> import py2exe
    
    Warning (from warnings module):
      File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 16
        import sets
    DeprecationWarning: the sets module is deprecated
    >>>
    The code above is what I type and the error I get. Can anyone help me? I have py2exe installed and python 2.6.5. Thanks for everyone who helps.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    build-exe.py uses sets.Set(). Try modifying build_exe.py by deleting the import and substituting set() for sets.Set(). Otherwise, download the Python 2.6 version of py2exe.

    Comment

    Working...