473,394 Members | 1,843 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,394 software developers and data experts.

import py2exe Error

When I use the command "import py2exe" in IDLE (Python Shell) I get the following error:
Expand|Select|Wrap|Line Numbers
  1. IDLE 2.6.5      
  2. >>> import py2exe
  3.  
  4. Warning (from warnings module):
  5.   File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 16
  6.     import sets
  7. DeprecationWarning: the sets module is deprecated
  8. >>> 
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.
Jun 27 '10 #1
1 2508
bvdet
2,851 Expert Mod 2GB
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.
Jun 28 '10 #2

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

Similar topics

1
by: Ray | last post by:
Microsoft Windows XP (C) Copyright 1985-2001 Microsoft Corp. C:\Python22>python setup.py py2exe --icon EXE icon Traceback (most recent call last): File "setup.py", line 7, in ? scripts = ,...
3
by: Nick | last post by:
I am trying to turn one of my .py files into an exe and I created a setup script and everything, but when i do the follwing "python myscript.py py2exe" I get an error saying "Error: Nothing to do" ...
1
by: Haim Ashkenazi | last post by:
Hi (complete newbie warning...:) ) I've written a script that uses pickle to store data to a file. here's the code that stored the data: ------------- def put(self, conf):
3
by: Olivier Noblanc ATOUSOFT | last post by:
Hello, When i want to import a .py fire from another subdirectory i make import inc/setupxml but that make me an error message.
3
by: Larry Bates | last post by:
I had occasion to look back at a project I did over a year ago and needed to make one small change. I use py2exe to package it for distribution via Inno Setup. After making my change I tried to...
2
by: Chris | last post by:
I've just completed a project using the following (Windows XP, python 2.4.1, wxpython 2.6, and pymssql 0.7.3). The program runs great, but after I convert it to an exe (required for this project),...
5
by: Sharon Tal | last post by:
Compiler Error Message: CS0234: The type or namespace name 'Http' does not exist in the class or namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?) Source...
2
by: syahreza.octadian | last post by:
Dear all, Please help, i have error message when i import gzip module. The error like this below: bash-3.00$ python Python 2.5 (r25:51908, Sep 20 2006, 03:46:40) on sunos5 Type "help",...
6
by: AccessHunter | last post by:
Hi, I am trying to import data from an Access 2003 database table 'Cases' to the table 9dbo.Cases) in SQL Sever database and its giving me the following error. Could someone please explain what...
3
by: Reedsp | last post by:
I am using Access 2007. In Access 2003, when you had the import window opened and clicked on the Cancel button, MS displayed an error message. To compensate for this using VB code, I used the "On...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.