Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyw IDLE =/= Non IDLE
#1
hi, is there any "special treatment" for .pyw?
i don't know why if I run pyw file via IDLE, then press F5, the program run normal,
but
when run like exe (double click), some script is not working,
any idea why?

Edit: after some research,
maybe it about "sys.stderr.write",
maybe, I don't know
Reply
#2
The main difference I've seen between running a program in IDLE and running it with Python is that IDLE doesn't quit when the program reaches the end.

Can you describe the difference you see running your program the two ways. Can you post your program?
Reply
#3
@deanhystad
thank you for the reply,
my program is too big and when I try to split it, the code seems fine,
Reply
#4
i think this is the culprit, but i still dont know what to do
import transformers
print(transformers.__version__)
input("press any key to continue...")
the result in IDLE:
4.15.0
press any key to continue...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why can I not see the code correctly in Python IDLE.? Trump 8 720 Apr-04-2024, 07:47 AM
Last Post: jonesphedra
  problem with help(type(self)) in Idle akbarza 1 497 Dec-26-2023, 12:31 PM
Last Post: Gribouillis
  save a session in idle akbarza 5 782 Nov-06-2023, 08:36 AM
Last Post: snippsat
  [PROBLEM] Removing IDLE from context menu WebSpider 1 479 Sep-28-2023, 03:35 PM
Last Post: deanhystad
  Recommendations for IMAP Push/IDLE library MikeFlorida 0 839 Jul-15-2023, 05:19 PM
Last Post: MikeFlorida
  What is all the info in the info window in Idle? Pedroski55 3 710 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  create a default path with idle to a specific directory greybill 0 882 Apr-23-2023, 04:32 AM
Last Post: greybill
  Launch Python IDLE Shell from terminal Pavel_47 5 1,262 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  Python Idle won't start totalmachine 9 3,541 Oct-16-2022, 05:57 PM
Last Post: totalmachine
  Why is IDLE not opening on a MacOS Montery 12.6 and using Python 3.10.7? Merlin385 7 1,721 Oct-08-2022, 08:36 PM
Last Post: Merlin385

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020