Connecting Tech Pros Worldwide Help | Site Map

I'm having problems with py2exe

Newbie
 
Join Date: Jul 2008
Posts: 19
#1: 2 Weeks Ago
Hey, in an earlier question I asked why gui2exe wasn't working.
Since then I've tried a couple of things but haven't found out much. Only that the problem has something to do with the sets module which py2exe is accessing.

I tried,
Expand|Select|Wrap|Line Numbers
  1. import py2exe
and got,
Expand|Select|Wrap|Line Numbers
  1. Warning (from warnings module):
  2.   File "C:\Program Files\Python25\lib\site-packages\py2exe\build_exe.py", line 16
  3.     import sets
  4. DeprecationWarning: the sets module is deprecated
Then I tried,
Expand|Select|Wrap|Line Numbers
  1. import sets
and got,
Expand|Select|Wrap|Line Numbers
  1. Warning (from warnings module):
  2.   File "__main__", line 1
  3. DeprecationWarning: the sets module is deprecated
But when I looked at the code for the sets module, I couldn't figure out what was wrong. (what does python mean by deprecated, by the way?)

If anyone knows why this is happening, I really appreciate it.

Joshua
bvdet's Avatar
Moderator
 
Join Date: Oct 2006
Location: Nashville, TN
Posts: 1,560
#2: 2 Weeks Ago

re: I'm having problems with py2exe


The sets module has been deprecated since version 2.6. From the Python docs: "Deprecated since version 2.6: The built-in set/frozenset types replace this module."

The definition of deprecated: "In computer software standards and documentation, the term deprecation is applied to software features that are superseded and should be avoided."
Newbie
 
Join Date: Jul 2008
Posts: 19
#3: 2 Weeks Ago

re: I'm having problems with py2exe


umm, ok.
Is there any way to make py2exe work? Maybe by changing the code? Or is there an update that works on vista?

Thank,
Joshua
bvdet's Avatar
Moderator
 
Join Date: Oct 2006
Location: Nashville, TN
Posts: 1,560
#4: 2 Weeks Ago

re: I'm having problems with py2exe


I wish I could help, Joshua.

BV
Newbie
 
Join Date: Nov 2009
Posts: 1
#5: 4 Days Ago

re: I'm having problems with py2exe


I would suggest reading this document

http://www.py2exe.org/index.cgi/Tutorial
Newbie
 
Join Date: Jul 2008
Posts: 19
#6: 3 Days Ago

re: I'm having problems with py2exe


Thanks,
for some reason it's working now. Unfortunately I haven't the faintest idea why. :) Oh well it's working and I wouldn't know were to start figuring out why it's working so I wont even try.

Josh
Reply

Tags
deprecated, gui2exe, py2exe, sets