Questions tagged [pythonw]
82 questions
28
votes
7 answers
.pyw and pythonw does not run under Windows 7
Running a simple .py or .pyw python file causes python.exe to show up under Task Manager.
python myApp.py
python myApp.pyw
However when we try to run it without using the console, the script does not appear to run, nor does python.exe or…

Nyxynyx
- 61,411
- 155
- 482
- 830
27
votes
6 answers
Running a process in pythonw with Popen without a console
I have a program with a GUI that runs an external program through a Popen call:
p = subprocess.Popen("" , stdout=subprocess.PIPE , stderr=subprocess.PIPE , cwd=os.getcwd())
p.communicate()
But a console pops up, regardless of what I do…

sbirch
- 871
- 1
- 10
- 18
21
votes
8 answers
Update anaconda failed - Entry point not found
I have just tried to update my anaconda environment to the latest version and I am now receiving errors. I opened the conda environment as an admin, and the commands issued were:
conda update conda
conda update anaconda
First command finished…

Matthew Baker
- 2,637
- 4
- 24
- 49
13
votes
6 answers
How to avoid console window with .pyw file containing os.system call?
If I save my code files as .pyw, no console window appears - which is what I want - but if the code includes a call to os.system, I still get a pesky console window. I assume it's caused by the call to os.system. Is there a way to execute other…

twneale
- 2,836
- 4
- 29
- 34
9
votes
3 answers
How to print to stdout from Python script with .pyw extension?
I have a python program with a wxpython GUI and some command line parameters. I generate a single windows executable with py2exe. I don't want to have a command line window in the background, so py2exe is making this a pythonw executable without…

Martin Schulze
- 2,091
- 2
- 22
- 27
8
votes
3 answers
Microsoft Visual C++ Runtime Error in Python
I have a python program that runs in a server continuously and it puts some data into MYSQL dataBase and load some. It is also using TCP/IP connection. the problem is that after about 24 hrs it gives a runtime error:
Microsoft Visual C++ Runtime…

Reza Asgharzadeh
- 141
- 1
- 3
- 10
6
votes
1 answer
Python script failing under pythonw
I'm running Python 3.3 on Windows 7. I have a script that succeeds when I call it like this:
c:\python33\python.exe my_script.py
But fails when I call it like this:
c:\python33\pythonw.exe my_script.py
I want to be launching it regularly using…

Ram Rachum
- 84,019
- 84
- 236
- 374
6
votes
3 answers
What Do The Ending Letters Mean - pythonw, javaw, javap, javac, etc
I just made a connection between python's: pythonw.exe and java's: javaw.exe and I'm curious about this as I cant figure out what some of those ending letters mean. I know that javac is the Java compiler so I assume the w on the end of the name also…

kmecpp
- 2,371
- 1
- 23
- 38
6
votes
1 answer
Why does my program work with a .py extension but not with a .pyw extension?
I have a script that converts Google Earth .kml / .kmz files to shapefiles with a simple GUI interface written in Tkinter.
My problem is that it works fine with a .py extension, but when saved out with a .pyw extension it stalls while reading my…

Nick
- 61
- 1
- 2
4
votes
1 answer
Using console_scripts entry_points with pythonw?
I've created a python library with a GUI component. I'm creating a command line launcher using the console_scripts feature of setuptools. Currently, when I launch the tool using the console_scripts launcher, it also brings up a command shell…

Brendan Abel
- 35,343
- 14
- 88
- 118
3
votes
1 answer
Tkinter minimise/hide terminal Windows
I have created a simple tkinter GUI and when the submit button is pressed a CLI command is executed to launch a package installed/managed through pip. The package grabs information from a web page and puts it in a folder.
The problem lies when…

user3703776
- 51
- 4
3
votes
0 answers
debugging program that crashes in pythonw but not in python
I have the following program. When I run it with pythonw to suppress the console, it will run for ~40 seconds then close. However, when I run it with python and the console open so I can catch errors, it runs until I shut it down. I'm not sure…

jeffpkamp
- 2,732
- 2
- 27
- 51
2
votes
0 answers
How to stop a python script that is using Timeloop package and is running with pythonw from a .vbs file?
I have a main.py script that is using the module timeloop. I think this module is important in this case
then I have a launch.vbs file with the following content
Set oShell = CreateObject ("WScript.Shell")
oShell.run "pythonw…

Curious Learner
- 1,182
- 1
- 4
- 17
2
votes
0 answers
Flask file not starting in Windows Task Scheduler
I saw two posts here, one about .pyw files and one about running a file during startup in Windows that showed me to run a python file without opening up CMD (using pythonw).
I have a flask file that I would like to run when I log in to my computer/…

abhivemp
- 932
- 6
- 24
2
votes
1 answer
Mac pythonw / GUI on Catalina OS anaconda - not working python3+
I am a linux user and am trying to install a GUI driven python package on a student's computer (https://github.com/DeepLabCut/DeepLabCut).
I've exhausted my Mac knowledge after trying many different steps.
installed conda + pytonn 3.7 (+ package in…

catubc
- 488
- 3
- 16