ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> py2exe-users
py2exe-users
Re: [Py2exe-users] py2exe
by John Machin other posts by this author
Jul 25 2006 5:04PM messages near this date
[Py2exe-users] Leave Early | Re: [Py2exe-users] py2exe
On 26/07/2006 1:50 AM, programer_vedran_d wrote:
>  HELLO,
>  
>  
>  I was follow  your instructions

No you didn't!!

Read this carefully:
1. Provide an exact listing of your setup.py file.
2. Run your setup.py at the command prompt, NOT IN PYSHELL.
3. Provide an exact listing (copy/paste from the screen) of the command 
that you typed, and of the result.


Here's a simple example of what I mean; now you try to do the same with 
your files ...

C:\junk\py2exe_hello> dir
  Volume in drive C has no label.
  Volume Serial Number is 7D12-D6D2

  Directory of C:\junk\py2exe_hello

26/07/2006  09:20 AM    <DIR>           .
26/07/2006  09:20 AM    <DIR>           ..
26/07/2006  09:17 AM                61 hello.py
26/07/2006  09:12 AM                78 setup.py
                2 File(s)            139 bytes
                2 Dir(s)  52,083,757,056 bytes free

C:\junk\py2exe_hello> type hello.py
print "Hello, world!"
raw_input("Press the 'any' key ...")

C:\junk\py2exe_hello> type setup.py
from distutils.core import setup
import py2exe
setup(windows=["hello.py"])

C:\junk\py2exe_hello> python setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
    or: setup.py --help [cmd1 cmd2 ...]
    or: setup.py --help-commands
    or: setup.py cmd --help

error: no commands supplied

#### I'm using Python 2.4 --- same error as you got with Python 2.3
#### Perhaps we should supply a command :-)

C:\junk\py2exe_hello> python setup.py py2exe
running py2exe
creating C:\junk\py2exe_hello\build
creating C:\junk\py2exe_hello\build\bdist.win32
creating C:\junk\py2exe_hello\build\bdist.win32\winexe
creating C:\junk\py2exe_hello\build\bdist.win32\winexe\collect-2.4

#### etc etc etc ....
#### and the dist\hello.exe does actually run -- briefly, gets an EOF 
because there's no stdin. But this is a long way further down the path.


>  but again same error,always when I run 
>  any script with that setup
>  
>  IN PYTHON 2.4 ERROR IS:
>  
>  
>  Traceback (most recent call last):
>    File "<pyshell#1>", line 1, in -toplevel-
>      setup(scripts=['myscript.py'])
>    File "C:\Python24\distutils\core.py", line 101, in setup
>      _setup_distribution = dist = klass(attrs)
>    File "C:\Python24\distutils\dist.py", line 130, in __init__
>      setattr(self, method_name, getattr(self.metadata, method_name))
>  AttributeError: DistributionMetadata instance has no attribute 'get___doc__'
>  
>  IN PYTHON 2.3 ERROR IS:
>  
>  Traceback (most recent call last):
>    File "<pyshell#1>", line 1, in -toplevel-
>      setup(scripts=['myscript.py'])
>    File "C:\Python23\lib\distutils\core.p y", line 137, in setup
>      raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
>  SystemExit: usage:  [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>     or:  --help [cmd1 cmd2 ...]
>     or:  --help-commands
>     or:  cmd --help
>  
>  error: no commands supplied
>  
>  
>                                                                                         
>  THANK YOU AND PLEASE HELP ME!!!!!!!!!!!!!!!!!!
>  REGARDS,
>  Vedran,Croatia
>  
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Py2exe-users mailing list
Py2exe-users@[...].net
https://lists.sourceforge.net/lists/listinfo/py2exe-users
Thread:
John Machin
John Machin
John Machin

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved