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

Why doesn't py2exe work?

I am getting next message trying to create an executable file:
Expand|Select|Wrap|Line Numbers
  1.   File "C:\Python27\lib\distutils\core.py", line 140, in setup
  2.     raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
  3. SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  4.    or: setup.py --help [cmd1 cmd2 ...]
  5.    or: setup.py --help-commands
  6.    or: setup.py cmd --help
  7.  
  8. error: no commands supplied
What do I do wrong?
Jan 27 '11 #1
2 2818
Thekid
145 100+
Are you just typing "setup.py"? If so, it's telling you that you need to add command arguments to it. You can type:
setup.py cmd --help
for options.
This line tells you the usage for setup.py:
Expand|Select|Wrap|Line Numbers
  1. usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
  2.  
and these give you options for the usage. Notice the last line says "no commands supplied:
Expand|Select|Wrap|Line Numbers
  1. #    or: setup.py --help [cmd1 cmd2 ...]
  2. #    or: setup.py --help-commands
  3. #    or: setup.py cmd --help
  4. #  
  5. # error: no commands supplied
  6.  
Typically setup.py is ran from a command line, and usually just needs:

python setup.py install
Jan 27 '11 #2
Thanks for your answer.
The problem however is solved. I was working with the 64bit program. 32bit was needed (its hard to find).
Jan 31 '11 #3

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

Similar topics

0
by: pbrenon | last post by:
Hello everybody, I try to install php on a 2003 server and IIS6 and It doesn't work. I had modified the mime type of the IIS server, i'd used phpinstaller one time and another time i'd do it...
0
by: Paul C | last post by:
Hello, everybody. I am having trouble running some of the VS.NET samples, specifically the CarSelector web app, which is very simple. The symptom is that the web controls (drop down listboxes and...
3
by: Douglas Buchanan | last post by:
Buttons don't work if form is opened on startup A2k If 'frmMain' is set to open by default at startup none of the buttons work. If 'frmMain' is opened from the database window then all the...
4
by: Paul T. RONG | last post by:
Dear All, I add two new tables to the database and then the disable shift key codes don't work. These two new tables are actually created by two queries, and only these two are in the front end,...
0
by: faktujaa | last post by:
XML Comment tags (except summary, remarks, param and returns) don't work in my small trial program. The comment tags i want to work are see, seealso, exception, etc. But none of them work. I tried...
6
by: Chris Anderson | last post by:
Anyone know of a fix (ideally) or an easy workaround to the problem of escape characters not working in regex replacement text? They just come out as literal text For example, you'd think that thi...
0
by: Shlomit | last post by:
Hi, I work in VB and in VB via excel and the roll of the mouse don't work. How can I fix it will work?
1
by: Mark | last post by:
I have a main form which is linked to a table. I have also placed a sub form on this main form. For some reason I can't control the subform for example the scroll bars do not work, the record...
1
by: Gustavo Narea | last post by:
Hello, everyone. Why do unitest.TestCase grand-grandchildren not work? I've created a unittest.TestCase descendant, which contains the setUp() and tearDown() for testing some components of a...
0
by: Gabriel Genellina | last post by:
En Tue, 19 Aug 2008 18:35:57 -0300, Gustavo Narea <me@gustavonarea.net> escribi�: Do you have any reason for such meta-testing? If you want to ensure that all derived Test classes correctly...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.