Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Help Mr. Wizard!" -- Tennessee Tuxedo


devel / comp.lang.python / Re: Python doesn't work

SubjectAuthor
o Re: Python doesn't workAlan Gauld

1
Re: Python doesn't work

<mailman.439.1622407656.3087.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13458&group=comp.lang.python#13458

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: alan.ga...@yahoo.co.uk (Alan Gauld)
Newsgroups: comp.lang.python
Subject: Re: Python doesn't work
Date: Sun, 30 May 2021 21:31:02 +0100
Lines: 30
Message-ID: <mailman.439.1622407656.3087.python-list@python.org>
References: <136EA3E1-318E-4E24-8474-126DD6A1DCB4@hxcore.ol>
<s90sm6$1lo$1@ciao.gmane.io>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de PMZ0y4Dg7474LRpNqQKyHAp7OsLfng4JM4yuXsrWTYpw==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'open.': 0.07; 'message-
id:@ciao.gmane.io': 0.09; 'received:ciao.gmane.io': 0.09;
'received:gmane.io': 0.09; 'received:list': 0.09; 'terminal':
0.09; 'subject:Python': 0.12; 'downloaded': 0.14; '.py': 0.16;
'assuming': 0.16; 'closes': 0.16; 'flickr': 0.16;
'from:addr:alan.gauld': 0.16; 'from:name:alan gauld': 0.16;
'interpreter': 0.16; 'photo-blog': 0.16; 'prompt.': 0.16;
'received:116.202': 0.16; 'received:116.202.254': 0.16;
'received:116.202.254.214': 0.16; 'uninstalling': 0.16; 'url-
ip:79.170.44.132/32': 0.16; 'url-ip:79.170.44/24': 0.16; 'url-
ip:79.170/16': 0.16; 'url-ip:79/8': 0.16; 'url:alan-g': 0.16;
'url:alan_gauld': 0.16; 'url:alangauldphotos': 0.16; 'wrote:':
0.16; 'python': 0.16; 'url:amazon': 0.20; 'round': 0.23; 'to:addr
:python-list': 0.23; 'command': 0.24; 'tried': 0.26; 'files,':
0.27; 'output': 0.28; 'header:User-Agent:1': 0.31; 'but': 0.31;
"doesn't": 0.32; 'window': 0.32; 'program': 0.33; 'work.': 0.33;
'header:In-Reply-To:1': 0.33; 'windows': 0.36; 'close': 0.36;
'at:': 0.37; 'inside': 0.37; 'way': 0.37; 'author': 0.38;
'programs': 0.40; 'likely': 0.61; 'simply': 0.62; 'follow': 0.63;
'launch': 0.65; 'site': 0.69; 'url:author': 0.69; 'received:116':
0.71; 'itself.': 0.84
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.8.1
In-Reply-To: <136EA3E1-318E-4E24-8474-126DD6A1DCB4@hxcore.ol>
Content-Language: en-GB
X-Mailman-Approved-At: Sun, 30 May 2021 16:47:34 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <s90sm6$1lo$1@ciao.gmane.io>
X-Mailman-Original-References: <136EA3E1-318E-4E24-8474-126DD6A1DCB4@hxcore.ol>
 by: Alan Gauld - Sun, 30 May 2021 20:31 UTC

On 30/05/2021 12:23, Mr.Incognito wrote:
> Hello
>
> I downloaded the latest versioon of Python and tried to open several .py
> files, but it doesn't open. It opens for a sec, then closes itself. I
> tried uninstalling and reinstalling, but it doesn't work.

Most likely it is working but faster than you can see.
Python is a program interpreter so if you simply execute
a .py file, the interpreter will execute it and terminate.
Any output will be displayed in a terminal window which
will close when the interpreter finishes.

The way round that is to launch the programs from inside
an existing command shell. assuming you are on Windows hit
Windows-R and type cmd to get a Windows> prompt. Then type

C:\WINDOWS> py \path\to\python\file.py

And you should see the program output.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor