ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: Py2exe error
by Chris Rebert other posts by this author
Nov 6 2009 10:13PM messages near this date
Py2exe error | Aborting a read with pySerial
On Fri, Nov 6, 2009 at 9:40 PM, Joshua Leihe <jleihe@[...].com>  wrote:
>  Hello, I was wondering if anyone know how to fix this.
>  When I try to import py2exe version 0.6.9, using the command "import py2exe"
>  I get the following error message.
> 
>  Warning (from warnings module):
>    File "C:\Program Files\Python25\lib\site-packages\py2exe\build_exe.py",
>  line 16
>      import sets
>  DeprecationWarning: the sets module is deprecated
> 
>  Apparently something is wrong with the sets module, but I don't know how to
>  fix it.
>  Any ideas?

It's a warning, not an error, so you don't truly need to fix it. You
can safely ignore it.
Apparently your version of py2exe was written for a Python version
before sets became a built-in type and thus importing the `sets`
module was required in order to use them.
Since sets are now built-in, the `sets` module is being phased out,
hence the warning; nothing is erroneous with the `sets` module, you're
just being told the py2exe code is using it and that it's being
deprecated. The py2exe code will /eventually/ need to be changed when
it's ported to a version of Python that completely removes the `sets`
module (e.g. 3.x), but it's nothing you personally need to worry
about.

Cheers,
Chris
--
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Joshua Leihe
Chris Rebert

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved