| | |
Python Executable (Py2Exe)
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
Hello:
** I have been researching and experimenting with this with tutorials from many sources but can not even begin it to get it to work it seems.
I have a very small yet important Python program that I must make into an executable file within a week's time or so; my boss leaves for Tokyo to meet with a large video game company and this will be a simple game promo which will be transported via a laptop.
I have all the correct files (as far as I can tell) necessary to create a Py2Exe file but I am unable to build it: some tutorials deal only with Command Line (my system cannot find the right files using this for some odd reason + I am not greatly proficient with Command Line, unfortunately)
Everything I have read lauds Py2Exe's ease of use but I find this to be to the contrary. Making executables from Python seems like a great touch to finish off a program especially for a professional presentation. I would really like to figure this out. It is most important.
I only need assistance with the exe-- the program is in itself complete.
Thank-you in advance very much to anyone that can help me solve this.
sharky_machine
** I have been researching and experimenting with this with tutorials from many sources but can not even begin it to get it to work it seems.
I have a very small yet important Python program that I must make into an executable file within a week's time or so; my boss leaves for Tokyo to meet with a large video game company and this will be a simple game promo which will be transported via a laptop.
I have all the correct files (as far as I can tell) necessary to create a Py2Exe file but I am unable to build it: some tutorials deal only with Command Line (my system cannot find the right files using this for some odd reason + I am not greatly proficient with Command Line, unfortunately)
Everything I have read lauds Py2Exe's ease of use but I find this to be to the contrary. Making executables from Python seems like a great touch to finish off a program especially for a professional presentation. I would really like to figure this out. It is most important.
I only need assistance with the exe-- the program is in itself complete.
Thank-you in advance very much to anyone that can help me solve this.
sharky_machine
Hey Sharky, maybe something like this is what you are looking for.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Ene Uran & ~S.O.S.~ :
Thank-you for your replies.
I am going to try the [Daniweb] snippet (it looks promising) and also I am going to try the link that ~S.O.S.~ supplied
. Between both of these, I will hopefully get some results.
Thanks again for your help. Much appreciated
Regards,
sharky_machine
Thank-you for your replies.
I am going to try the [Daniweb] snippet (it looks promising) and also I am going to try the link that ~S.O.S.~ supplied
. Between both of these, I will hopefully get some results.Thanks again for your help. Much appreciated
Regards,
sharky_machine
Last edited by mattyd; Dec 26th, 2006 at 3:13 pm. Reason: sp
•
•
•
•
Ene Uran & ~S.O.S.~ :
Thank-you for your replies.
I am going to try the [Daniweb] snippet (it looks promising) and also I am going to try the link that ~S.O.S.~ supplied. Between both of these, I will hopefully get some results.
Using: py2exe-0.6.5.win32-py2.5, Python 2.4.3 (IDLE)
sharky_machine
•
•
•
•
Originally Posted by From ~s.o.s~'s link
There's your problem. IDLE was never quite finished. The Run Module in the Run menu doesn't pass any command line arguments that way that other IDEs do. Follow all the steps in tutorial.

Maybe you should just read the link I posted and the original thread.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
~s.o.s.~
Will do right now.
thanks.
sharky_machine
Will do right now.
thanks.
sharky_machine
You should have 2 files, let's say your p2e templet file p2e_test1.py modified with your code filename, and your code file test1.py. Save these 2 files in the same directory and just douple-click on p2e_test1.py
That's really all there is to it!
Otherwise make sure the Python versions match, you seem to be using Python 2.5. I avoid IDLE as an IDE, just too primitive!
That's really all there is to it!
Otherwise make sure the Python versions match, you seem to be using Python 2.5. I avoid IDLE as an IDE, just too primitive!
drink her pretty
•
•
•
•
You should have 2 files, let's say your p2e templet file p2e_test1.py modified with your code filename, and your code file test1.py. Save these 2 files in the same directory and just douple-click on p2e_test1.py
That's really all there is to it!
Otherwise make sure the Python versions match, you seem to be using Python 2.5. I avoid IDLE as an IDE, just too primitive!
-- only the flash of a black console... nothing. I panicked for a moment but was too busy to fool with this problem. I opened IDLE and continued. Cannot let myself to be slowed down when I'm in the deep zone of coding and producing well. :cheesy: I am tring to get this exe file from my program up and running-- I find it a bit confusing. Had no idea it would take so much to produce an exe. I am learning a lot, though, so that's what is important.
Regards,
Matty D.
I am trying this now via your link; so far my results are as follows:
I am going to look this over and try to figure it out.
sharky_machine
- 1 buildHelloWorld directory folder: empty
- 1 HelloWorld.spec file
I am going to look this over and try to figure it out.
sharky_machine
![]() |
Other Threads in the Python Forum
- Previous Thread: Sorting student info Problem
- Next Thread: list in another list
| Thread Tools | Search this Thread |
Tag cloud for Python
abrupt ansi anti apache approximation array basic beginner book builtin calculator chmod code converter countpasswordentry curved dan08 dictionaries dictionary dynamic examples excel file filename float format ftp function gui heads homework import inches input java launcher library line lines linux list lists loop mouse mysql mysqlquery number numbers numeric output parsing path phonebook plugin port prime program programming progressbar projects py2exe pygame pyqt pysimplewizard python random recursion recursive redirect scrolledtext server software ssh stamp statictext statistics string strings table terminal text textarea thread threading time tkinter tlapse trick tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable windows wordgame wxpython






