Questions tagged [pythonw]

82 questions
2
votes
1 answer

Stop a infinite loop in Pythonw (without console)

I have written a code in Python to open a website in infinite loop, also I made it to Pythonw (without console). I want to stop it without powering off my computer, is there any way to do it?
2
votes
0 answers

pythonw subprocess can't call another version of python

Before I start, some notes on my environment: python 2.7.14 installed through miniconda, macOS 10.13.3. The Problem I'm trying to write a data processing pipeline (call it analyze.py) in python which calls several different programs. One of those…
jhopkins
  • 21
  • 3
2
votes
3 answers

Why isn't Anaconda for Windows Installing Properly?

Anaconda 2 and 3 are installing without errors. I reboot because the installer prompts me to do so. When I open the Anaconda Prompt, python, pythonw or activate.bat aren't found. Looking in the Anaconda[2|3] folder, I can't find expected .exe and…
BSalita
  • 8,420
  • 10
  • 51
  • 68
2
votes
0 answers

Best solution for sys.stdout causing 'pythonw.exe' to crash

This (what i consiter a bug) plagued me for quite some time. After ALOT of searches on the topic i've found a decent solution, but i am not happy with it. The bug is as follows; #starts main.pyw Import foo2.py # foo2 contains print() # After a few…
Kieee
  • 126
  • 2
  • 15
2
votes
1 answer

pythonw.exe crashes when using pyo in PsychoPy

I'm generating an experiment in PsychoPy (v1.84.2 on Windows 7), which requires a short tone. The lines of code around the sound generation are: print '1' startTone = sound.Sound(value='B', secs=0.15, octave=5, sampleRate=44100, bits=16, name='',…
JAP
  • 21
  • 1
2
votes
0 answers

pythonw.exe creates network activity when running any script

When I run any python script that doesn't even contain any code or imports that could access the internet in any way, I get 2 pythonw.exe processes pop up in my resource monitor under network activity. One of them is always sending more than…
puzzler
  • 343
  • 4
  • 14
2
votes
2 answers

pythonw.exe can't upload file to Amazon S3

I've written a Python script which takes screenshot of my pc at a certain interval and send that screenshot to my S3 bucket. When I run my script with python command, it works, but when I run this script as a background task with pythonw.exe…
Reza
  • 2,896
  • 4
  • 26
  • 37
2
votes
3 answers

How to disable print statements conveniently so that pythonw can run?

I have a python script (.py) which runs normally on the console. When I try running the script using pythonw by changing the extension to (.pyw), it stopped working. My guess is that the print statements are causing pythonw to die based on results…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
2
votes
1 answer

Module cannot be found when using "pythonw" (instead of "python") to run an application

I tried this minimal example: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': app.run(debug = True) When I try python hello.py, everything goes well.…
Thibaud
  • 89
  • 8
2
votes
1 answer

Please run with 'pythonw', not 'python' -- cannot make plots in python/ipython from cmd line OSX

I am completely new to python installation and took the route of using the Enthought Canopy distribution of python 2.7.6 for my OSX 10.6 32-bit I have the notebook working smoothly along with everything inside of the Canopy interface. However, when…
Connor
  • 397
  • 2
  • 10
2
votes
1 answer

pyw file not working intermittently / Task Scheduler

I've got a python script set to log in to a mail server and transfer the files to a remote directory mapped on my machine. Since I don't want it popping up every 10 minutes, I saved it as a pyw file. It worked fine at first, but then it stopped…
CCKx
  • 1,303
  • 10
  • 22
2
votes
1 answer

Python freezes after computer sleep/hibernate

I have a python script that is running in the background with pythonw. If I close my laptop, it goes into sleep mode. and when I open my laptop, my program has little functionality and freezes after a couple of seconds. Is there any way that my…
user235024
  • 21
  • 2
2
votes
1 answer

Determine if a script is running in pythonw?

I would like to redirect stderr and stdout to files when run inside of pythonw. How can I determine whether a script is running in pythonw or in python?
Georg Schölly
  • 124,188
  • 49
  • 220
  • 267
2
votes
2 answers

.pyw launched on startup via registry launches and quits but launching with double click works...?

I have a .pyw script that works when I double click it etc and it stays open till I close it but I've added it to the registry to run at startup. It does run on startup but it doesn't stay open like its set to. It flashes the gui and then just…
Jay
  • 3,373
  • 6
  • 38
  • 55
1
vote
3 answers

Weird issue with multiple Python installations on Windows

I have 3 versions of Python (2.5, 2.7, 3.2) installed on a Windows machine, 2.5 being the default one (first in PATH and default for open action). Now the weird thing appear when I run a python script with filename.py (without specifying the…
sorin
  • 161,544
  • 178
  • 535
  • 806