Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 22nd, 2003, 07:25 PM
saddlebacks saddlebacks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 8 saddlebacks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question py2exe problem....

Whenever i compile my py's with the -w flag, it never runs, that is, once its compiled the program doesnt run, i click on it and it will think for about 2-3 secs then nothing...


the reason i want to use the -w flag is becuase i want the get rid of the interpreter

my program has a gui and the interpreter makes it confusing for some of my users


i type
D:/Python23/python.exe setup.py py2exe -w
into the run box

please help

Reply With Quote
  #2  
Old August 23rd, 2003, 01:47 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
It's possible Py2exe is not fully compatable with Python 2.3.. You might want to download it again if you didn't download it yesterday since a new port to 2.3 was released.

I was looking at the Py2exe doc's on there website and wondered if -c would do what you wanted?

--console or -c
build a console application, similar to running the script with python.exe. The default is to create a console application if the script has the extension .py, a console-less GUI application if the script has the extension .pyw

of course if you used -c you'd need to use the .pyw extension to get the desired result.

What do you mean by get rid of the interpriter? Surly compiling any program with Py2exe would remove the dependancy on Python?

Take care,
Mark.

Reply With Quote
  #3  
Old August 23rd, 2003, 06:57 PM
saddlebacks saddlebacks is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 8 saddlebacks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
what i meant was that i wanted to hide the interpereter


When i run the compiled program, the interpereter is there also, though it serves no real perpose,

the user doesnt enter in, or read any information from it, thats all done by the gui, so its just kind of an eyesore, and may confuse users, about why its there..

ill try that -c thing

Reply With Quote
  #4  
Old August 24th, 2003, 06:45 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
I don't see it.. programs compiled with Py2exe are stand alone meaning they will run on systems which don't have the Python interpriter.. There's a dll created with an exe, you talking about this?

Let me know if -c does/doesn't do what you wanted

Mark.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > py2exe problem....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway