"Deprecated sets module" with Python 2.6
vs at it.uu.se
Wed Jul 29 09:46:50 CEST 2009
Diez B. Roggisch wrote:
> Virgil Stokes schrieb:
>> I would appreciate help on correcting a problem when trying to create
>> an *.exe file using py2exe via GUI2exe with Python 2.6.2.
>> When using GUI2exe to create an *.exe I always get the following
>> warning during the compile process:
>> DeprecationWarning: the sets module is deprecated
>> import sets
>> and this results in the creation of an *.exe file that can not be
>> On the other hand, if I use the same procedure (on the same Python
>> code) with
>> Python 2.5, there are no warnings and the *.exe works fine.
>> The procedure used is that given in the example "Less simpler one" at
>> Any suggestions, help, ... would be greatly appreciated.
> If you don't need your app running on python2.3 and earlier, just
> remove the sets-module and replace it with the builtin "set".
Of course Diez, this is a good suggestion. However, in this case the
Python code that I am trying to convert into an *.exe file does not
refer to sets directly; i.e, the use of this module is buried within a
package that is imported (wxPython) which is not under my control.
More information about the Python-list