Questions tagged [pythonw]
82 questions
1
vote
1 answer
Pythonw stuck on python2.7 on MacOS X 10.15.7 in conda environment
How can I force pythonw to use python3 instead of python2? Here are the outputs from my zsh terminal (MacOS X 10.15.7):
python --version
>> Python 3.8.5
python3 --version
>> Python 3.8.10
However when it comes to pythonw, I get such an…

errno98
- 312
- 2
- 12
1
vote
1 answer
Tkinter transparentcolor working with .py but not with .pyw
root.attributes("-transparentcolor", "white") won't work with a .pyw file extension
Up until yesterday all my tkinter GUIs have been working like they should but two days ago all of them stopped working like I want them to. The line…

Jeppe 03
- 11
- 3
1
vote
0 answers
Why Pythonw file is taking big CPU resources?
I write a .pyw file and run it on background. But, when I do nothing, it takes 29% CPU. If I start any other software, it starts to take 49% - 50% CPU. Is there any way to reduce the CPU usage?
Code:
def check():
time =…

Debtanu Gupta
- 65
- 1
- 6
1
vote
1 answer
pythonw 3.6.6 sys.stdout doing nothing on reassign
I am attempting to debug my pythonw script that I am writing because it sort of works when launching it through idle, but it crashes when launching it through cmd or double-clicking on it. the code i have at the moment that's failing is
import…

Tyler Silva
- 411
- 6
- 14
1
vote
1 answer
Execute a script without a console window without using pythonw.exe
I have a python script that uses the http.server module that I would like to run without a terminal window being shown. Unfortunately, due to how I'm doing this, running the script in pythonw.exe does not work.
Here is the script:
import os
from…

Scripter17
- 38
- 1
- 7
1
vote
1 answer
BaseHTTPRequestHandler hangs when being run by pythonw.exe 3.1
The following code works fine with python.exe but fails with pythonw.exe. I'm using Python 3.1 on Windows 7.
from http.server import BaseHTTPRequestHandler, HTTPServer
class FooHandler(BaseHTTPRequestHandler):
def do_POST(self):
length…

llc
- 129
- 9
1
vote
0 answers
Hide phantomjs console
I am doing a project and I want him to be invisible. Therefore, i used this website - http://pytoexe.com/ to create an window based exe file from my python script which means it will not use the windows console.
Unfortuently, since i am using…

omersk2
- 79
- 1
- 11
1
vote
1 answer
Python pythonw subprocess check_output not working
I have a problem regarding pythonw. I'm making a program which should be executed in background. When it starts, it's supposed to send the computername, the username and the result of a check to see if the program has admin rights. Here's the…

Nim
- 158
- 2
- 14
1
vote
0 answers
python vs pythonw
The man page describes pythonw2.7 as follows:
NAME
pythonw -- run python script allowing GUI
However, the man page also states this:
Actually, since Python 2.5, the normal python also allows GUI access,
so python and pythonw are now…

cs95
- 379,657
- 97
- 704
- 746
1
vote
1 answer
Using python how do I manage windows on OSX
I am trying to manage windows using python.
Specifically I am trying to find a window that I have opened using selenium then have it focused and maximise it. I believe this is possible using a window manager as there are programs like qtile written…

Daniel Tate
- 2,075
- 4
- 24
- 50
1
vote
0 answers
Pythonw.exe causes script to crash, but not Python.exe
A Python 2.7 script runs fine on Windows 7 64-bit.
However the exact same script myscript.pyw simply renamed to have a .pyw extension runs for some time before crashing. It is started by double clicking on the file to run it.
This script uses…

Nyxynyx
- 61,411
- 155
- 482
- 830
1
vote
1 answer
Enthought Canopy: 'pythonw.exe has stopped working'
I am currently running Enthought Canopy version 1.5.2 full version, through an academic license at a 64bit Windows 7. I was a happy user for a couple months until a 'pythonw.exe has stopped working' issue rendered the software useless. This issue…

Frâncio Rodrigues
- 2,190
- 3
- 21
- 30
1
vote
2 answers
can't execute pyw on windows
I want to hide the console window of a python program, so I change the file extensions to "pyw", but when I open it, the python IDLE show up even though I choose open it with "pythonw.exe"
If I use "pythonw test.py" in cmd, it works.
So I want to…

Hunger
- 5,186
- 5
- 23
- 29
1
vote
0 answers
C++ runtime error pythonw
I have been trying to run a script to generate a mandelbrot image using matplotlib however I am getting a very peculiar error. I am running the script through IDLE, running it for the first time does nothing but running it again after that brings up…

Samuel Barnett
- 434
- 1
- 3
- 13
1
vote
5 answers
Indentify running pythonw programs through cmd start
I have 4 .bat-files in the Windows autostart folder for starting the programs Sabnzbd, CouchPotato, SickBeard and Headphones together with Windows. In these batch files I run the Python .py file through a line like this:
start "SABnzbd" pythonw…

Dediqated
- 901
- 15
- 35