473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

I'm having problems with py2exe

19
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
Nov 7 '09 #1
6 3787
bvdet
2,851 Expert Mod 2GB
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."
Nov 7 '09 #2
josh001
19
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
Nov 7 '09 #3
bvdet
2,851 Expert Mod 2GB
I wish I could help, Joshua.

BV
Nov 7 '09 #4
I would suggest reading this document

http://www.py2exe.org/index.cgi/Tutorial
Nov 18 '09 #5
josh001
19
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
Nov 18 '09 #6
I am having the same problem with py2exe. If anyone can help me I would greatly appreciate it.
Mar 4 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
0
by: Jamie | last post by:
Hi all, I have a wxPython application that I'm packaging with py2exe. I've encountered a couple of problems with the latest py2exe with the latest python and wxPython releases, and was wondering...
12
by: Alessandro Crugnola *sephiroth* | last post by:
Hi, i'm trying to compile a .py script using py2exe into a win .exe file. In that script i'm using xml.dom.minidom to parse an xml file (with the iso8859-1 encoding) i've included in the setup...
2
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
6
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
2
by: list.repository | last post by:
Problem: Works fine when running python test.py but fails when executing test.exe. test.py: conn = win32com.client.gencache.EnsureDispatch('ADODB.Connection')...
0
by: guilligan.geo | last post by:
Hello, I'm trying to create an addin for Outlook 2002 using the one provided in the demo of win32com as a starting point. I've been able to do my addin and test it if I go the "standard" way...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.