Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > distribute python script

Reply
Thread Tools

distribute python script

 
 
codecraig
Guest
Posts: n/a
 
      04-14-2005
i want to distribute my python script as an executable. I have tried
py2exe but it caused a problem in my script when I ran it. I know
about Gordon McMillans Installer (which is no longer hosted)..but i
tried that and when i run the .exe it generated, it just crashes (i.e.
Windows wants to send an error report). Pyco is gone as well.

anyone?

 
Reply With Quote
 
 
 
 
Larry Bates
Guest
Posts: n/a
 
      04-14-2005
py2exe works just fine, but you didn't give enough information for us
to help you. Thomas Heller (maintainer of py2exe) monitors this list.
So post some more information of what "...caused a problem in my
script..." means and we will all try to help.

Larry Bates

codecraig wrote:
> i want to distribute my python script as an executable. I have tried
> py2exe but it caused a problem in my script when I ran it. I know
> about Gordon McMillans Installer (which is no longer hosted)..but i
> tried that and when i run the .exe it generated, it just crashes (i.e.
> Windows wants to send an error report). Pyco is gone as well.
>
> anyone?
>

 
Reply With Quote
 
 
 
 
codecraig
Guest
Posts: n/a
 
      04-14-2005
sure....i posted another thread eariler, which explains much more
related to py2exe..check that out and let me know if that helps.

http://groups-beta.google.com/group/...71921987be308d

 
Reply With Quote
 
Thomas Heller
Guest
Posts: n/a
 
      04-14-2005
"codecraig" <(E-Mail Removed)> writes:

> sure....i posted another thread eariler, which explains much more
> related to py2exe..check that out and let me know if that helps.
>
> http://groups-beta.google.com/group/...71921987be308d


I'm monitoring this group, but I hope you understand the I cannot spend
too much time to debug each problem reported.

A very common problem with py2exe has to do with encodings (google for
"EncodingsAgain", and you will find a wiki page explaining this), but
this is pure speculation.

Thomas
 
Reply With Quote
 
codecraig
Guest
Posts: n/a
 
      04-14-2005
Thanks so much Thomas!!! I added encodings to my setup's...here it is

setup(console=[{"script": 'monkey_shell.py'}], options={"py2exe":
{"packages": ["encodings"]}})

and i did the same for the other python script.

Thanks!!

 
Reply With Quote
 
Thomas Heller
Guest
Posts: n/a
 
      04-14-2005
"codecraig" <(E-Mail Removed)> writes:

> Thanks so much Thomas!!! I added encodings to my setup's...here it is
>
> setup(console=[{"script": 'monkey_shell.py'}], options={"py2exe":
> {"packages": ["encodings"]}})
>
> and i did the same for the other python script.
>
> Thanks!!


Cool. The next py2exe version will include the encodings automatically,
unless this is overridden with the '-a' or '--ascii' command line
option.

Thomas
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: A new script which creates Python 3.3 venvs with Distribute andpip installed in them Ian Kelly Python 0 01-30-2013 08:42 PM
A new script which creates Python 3.3 venvs with Distribute and pipinstalled in them Vinay Sajip Python 0 01-30-2013 08:09 PM
how to distribute python extensions independently of python Travis Python 0 02-12-2009 05:38 PM
ExtUtils::MakeMaker - how to distribute CGI script? bwooster47@gmail.com Perl Misc 3 05-23-2007 06:30 PM
How to properly package/distribute a pure python module? Matt Shomphe Python 3 07-29-2003 09:54 PM



Advertisments