Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"We will bury you." -- Nikita Kruschev


devel / comp.lang.python / Re: Verifying I installed Python correctly

SubjectAuthor
* Verifying I installed Python correctlyGreg
+- Re: Verifying I installed Python correctlyDennis Lee Bieber
`- Re: Verifying I installed Python correctlyStefan Ram

1
Verifying I installed Python correctly

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

 copy mid

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

 copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: gd75...@gmail.com (Greg)
Newsgroups: comp.lang.python
Subject: Verifying I installed Python correctly
Date: Sun, 24 Apr 2022 13:59:53 -0400
Lines: 13
Message-ID: <mailman.253.1650908937.20749.python-list@python.org>
References: <CAGhAU_hPwHOC2FE0mof4WN336RZ9==NapYDfaDhe7sJgzQnnpg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de FDRqFP/tyIP51JFZdB+yog9pK8nLxpi5XDi1V18E5T0A==
Return-Path: <gd75291@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=fIs/7sQr;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.040
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.12;
'syntax': 0.15; 'directory.': 0.16; 'stuck': 0.16; 'python': 0.16;
'to:addr:python-list': 0.20; 'version': 0.23; 'command': 0.23;
'installed': 0.23; 'help.': 0.25; 'cannot': 0.25; 'message-
id:@mail.gmail.com': 0.32; 'path': 0.33; 'received:google.com':
0.34; 'trying': 0.35; 'from:addr:gmail.com': 0.35; 'files': 0.36;
'received:209.85': 0.37; 'directory': 0.37; 'could': 0.38;
'received:209': 0.39; 'use': 0.39; 'skip:* 10': 0.71
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=SRnQAyNelExZnKp1y7FtFrMdU5s3J6cERvbjpk6m8lA=;
b=fIs/7sQrCOsOEgJ4aLchZf25x0mIq9mqLSlDGqxndc0/4/vR87jjB5qkJVPDj//ouU
96O1i7tUCxu1aIfZYAyH+XUVrbl9Z1H2Wu7F0GgnO0LohcPs6A4/w5evz4G0tq4TdI2P
ru1losMtjlNq2zKOnCHLplkb3WhSJlGJTFoTCUIEAMTiXmA6V0sA9kmIEP3jSkTJ3m67
fwwkpDUZkUsfJac+Q3dvvsAc3V1b/WdaZeVz/0C7Vpmd0P1eqmhPKukWM/eAq+kr4yBw
kQXI0FqTMFe/+3aBWHJjhCCyt0z5TT75vf9/YFc13uQSI3VWNny3daulRiLiJQwYN0Vn
BgPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=SRnQAyNelExZnKp1y7FtFrMdU5s3J6cERvbjpk6m8lA=;
b=r3T9lBJKUchkT4ZWPuP5rFzHfgpUt8+VCZZon3dBRYK/uLuYpUf8iWS44AdDZc3ty4
aBST2nJGrL/DisG4Tb52UfHhYAgx9WCzl0sAOi6QREqFyYF+/R2b3ddX5ydHNT8RiHH3
LmFn+V5XNwEyqrFzeDvoB7ciiCsceCcuZT9bvOOHJeiJZ8gqQWojeXQoSENBFedfY9AP
/sIkcL/JDc182y3sLsdJgthcF8DxUty0XgT//zygUoMNHBMzCRRIykMHouS6PsiOf8Lc
cXIzKcWp2ozvu3ptbiO71GTCQ9SJ5vsMKOKVDk6E7RJSqOoJMrU8OelRt6465DWKqbCU
Y3cQ==
X-Gm-Message-State: AOAM530MzX0pvF2h8vy3km9ws1xh9DXtEgVnPkh/s4xIkH1XH6u1cmr8
x2iQeGQih4dXd1iUiDNtfeK1qAYFQI/+FYc+mQtqWA4lYwQ=
X-Google-Smtp-Source: ABdhPJyvvZ+pvRiOha6n22lMsnwSiuZH5MxnQYp+IMz2Ej40SEV4vYhsVmsKS2TKgg9sJ3QwFt+Yjx+k3QQgbqwBTXg=
X-Received: by 2002:ac2:4202:0:b0:471:f2af:c7b4 with SMTP id
y2-20020ac24202000000b00471f2afc7b4mr6710172lfh.66.1650823204948; Sun, 24 Apr
2022 11:00:04 -0700 (PDT)
X-Mailman-Approved-At: Mon, 25 Apr 2022 13:48:56 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
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: <CAGhAU_hPwHOC2FE0mof4WN336RZ9==NapYDfaDhe7sJgzQnnpg@mail.gmail.com>
 by: Greg - Sun, 24 Apr 2022 17:59 UTC

I am trying to get Hello World to appear under my directory. The files of

*C:\Users\gd752>cd C:\google-python-exercises> python hello.py*
*The system cannot find the path specified.*

*C:\Users\gd752>cd C:\google-python-exercises>*
*The syntax of the command is incorrect.*

I installed version 3.10. I am stuck and could use some help.
Thx,

[image: directory pic.png]

Re: Verifying I installed Python correctly

<4usd6hh0iloe8n10n3j5k2rgpcmvhrfk3j@4ax.com>

 copy mid

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

 copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 25 Apr 2022 14:42:25 -0500
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: Verifying I installed Python correctly
Date: Mon, 25 Apr 2022 15:42:26 -0400
Organization: IISS Elusive Unicorn
Message-ID: <4usd6hh0iloe8n10n3j5k2rgpcmvhrfk3j@4ax.com>
References: <CAGhAU_hPwHOC2FE0mof4WN336RZ9==NapYDfaDhe7sJgzQnnpg@mail.gmail.com> <mailman.253.1650908937.20749.python-list@python.org>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 97
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-MYvca8JKAJ8odX9xSDzLeRXzzb1xeS1Am6VY2X6ESYvq4nMPCe5lYh4LnrJErKfsBO9IaCbAz+3aopu!SyMfPe8UlInUhkHqQKoatMyrZYZQBhkP5e1dPntweiSL52lTrQf4rruK0i/2fp5sWvMr7X+Q
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4236
 by: Dennis Lee Bieber - Mon, 25 Apr 2022 19:42 UTC

tOn Sun, 24 Apr 2022 13:59:53 -0400, Greg <gd75291@gmail.com> declaimed the
following:

>I am trying to get Hello World to appear under my directory. The files of
>
>*C:\Users\gd752>cd C:\google-python-exercises> python hello.py*
>*The system cannot find the path specified.*
>
>*C:\Users\gd752>cd C:\google-python-exercises>*
>*The syntax of the command is incorrect.*
>
>I installed version 3.10. I am stuck and could use some help.
>Thx,
>
>
>[image: directory pic.png]

Text only, no images on this forum.

Cut&Paste the TEXT from your console window, not a screen grab.

And... with that... show us the exact text. The text you show above IS
invalid -- paths do not end with > character (that, when shown at the start
of a command, is the prompt delimiter) and (normally space separated) is
the output redirection operator when it follows a command.

Your SECOND line, assuming the prompt string is just "C:\Users\gd752>" is
trying to change directory to a path of "C:\google-python-exercises>" which
is not valid. Take off the trailing >

05/29/2018 09:58 AM <DIR> wekafiles
06/18/2020 09:43 PM <DIR> workspace_v10
08/23/2018 11:25 AM <DIR> workspace_v6_0
01/08/2018 01:45 PM <DIR> workspace_v7
07/08/2019 12:10 PM <DIR> workspace_v9
67 File(s) 355,065,731 bytes
44 Dir(s) 650,737,876,992 bytes free

C:\Users\Wulfraed>cd wekafiles>
The syntax of the command is incorrect.

C:\Users\Wulfraed>cd wekafiles

C:\Users\Wulfraed\wekafiles>

Actually, based upon

C:\Users\Wulfraed\wekafiles>cd ..

C:\Users\Wulfraed>cd wekafiles> test.dat

C:\Users\Wulfraed\wekafiles>

the > is acceptable -- AS OUTPUT REDIRECTION, but the your second line does
not specify the target for said redirection (not that CD has much in the
way of output).

This means your first line is attempting to do a CD with output
redirection to a file with a questionable name

C:\Users\Wulfraed>cd wekafiles> python anything.dat
The system cannot find the path specified.

C:\Users\Wulfraed>dir python
Volume in drive C is OS
Volume Serial Number is 4ACC-3CB4

Directory of C:\Users\Wulfraed

04/25/2022 03:29 PM 0 python
1 File(s) 0 bytes
0 Dir(s) 650,748,653,568 bytes free

C:\Users\Wulfraed>

It appears to have created a file with the name python, and then failed
attempting to parse the anything.dat

So... To run your script you have two choices...

DIRECT invocation (from anywhere -- hence "prompt" could show anything)
prompt> python C:\google-python-exercises\hello.py

INDIRECT
prompt> cd C:\google-python-exercises
C:\google-python-exercises> python hello.py

(note that the prompt has changed to reflect the CD of the first line)

In neither of those do you ever type a > character.

--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

Re: Verifying I installed Python correctly

<start-python-20220425224749@ram.dialup.fu-berlin.de>

 copy mid

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

 copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram...@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Verifying I installed Python correctly
Date: 25 Apr 2022 21:51:17 GMT
Organization: Stefan Ram
Lines: 40
Expires: 1 Apr 2023 11:59:58 GMT
Message-ID: <start-python-20220425224749@ram.dialup.fu-berlin.de>
References: <mailman.253.1650908937.20749.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de d2P/+mL+4AsF96DvLl278wA9kLrDdcDOvQK+rosY1uyMev
X-Copyright: (C) Copyright 2022 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE, en-US, it, fr-FR
 by: Stefan Ram - Mon, 25 Apr 2022 21:51 UTC

Greg <gd75291@gmail.com> writes:
>I installed version 3.10. I am stuck and could use some help.

If you're comfortable with the command line:

Create the file "hello.py" with the line "print( 'hello!' )"
and call "py" with the argument "hello.py" on the command line.

If you're not comfortable with the command line:

Learn how to use the command line. A programmer must
absolutely know how to use the command line.

If you're not comfortable with the command line, but do not
want to learn how to use the command line right now:

Start IDLE. You may find this where your GUI shows installed
software.

If you can't find IDLE, install IDLE.

If you have installed IDLE, but can't find out how to start it:

Go to a video site and look at videos that show how to
install and start Python and/or IDLE under your operating
system. Or read a tutorial/book about this.

If you still can't get it to work: Try to find a place near
you that offers Python training for beginners and ask them
about their next introductory course or try to find a tutor
that you pay to show you how to use Python.

Maybe I'm old-fashioned, but I have this idea that people
first learn how to use their operating system, including how
to use the command line with such concepts as search paths
for commands and doing basic stuff like learning how to
search for files, edit text files, or write simple batch
files, /and then/ tackle learning a programming language.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor