Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Yeah, but you're taking the universe out of context."


devel / comp.lang.python / Re: How to have python 2 and 3 both on windows?

SubjectAuthor
* Re: How to have python 2 and 3 both on windows?Sunil KR
`* Re: How to have python 2 and 3 both on windows?Dennis Lee Bieber
 `- Re: How to have python 2 and 3 both on windows?Sunil KR

1
Re: How to have python 2 and 3 both on windows?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: krli...@yahoo.com (Sunil KR)
Newsgroups: comp.lang.python
Subject: Re: How to have python 2 and 3 both on windows?
Date: Sun, 24 Apr 2022 01:19:38 +0000 (UTC)
Lines: 55
Message-ID: <mailman.233.1650763183.20749.python-list@python.org>
References: <1766896259.80347.1650605332904@mail.yahoo.com>
<1A496C85-0E6A-432B-B455-581F70F648FD@barrys-emacs.org>
<1897585274.397040.1650763178034@mail.yahoo.com>
Reply-To: Sunil KR <krlinus@yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de /e0dE2TW1byYgbh2RDge+wH65V29B888KJow7XJaUe2g==
Return-Path: <krlinus@yahoo.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=yahoo.com header.i=@yahoo.com header.b=oKu0tshT;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.014
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:python': 0.06;
'installer': 0.09; '&gt;': 0.14; 'url:mailman': 0.15;
'2.\xc2\xa0': 0.16; '2022,': 0.16; 'barry': 0.16; 'defaults':
0.16; 'error?': 0.16; 'finger': 0.16; 'impossible': 0.16;
'python3': 0.16; 'python3.': 0.16; 'subject:windows': 0.16;
'sunil': 0.16; 'tips.': 0.16; 'typing': 0.16; 'unicode': 0.16;
'windows.': 0.16; 'wrote:': 0.16; 'python': 0.16; 'installing':
0.19; 'to:addr:python-list': 0.20; 'version': 0.23; 'install':
0.23; 'installed': 0.23; 'subject:How': 0.23; 'run': 0.23;
'to:name:python-list@python.org': 0.24; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cannot': 0.25; 'url-ip:188.166/16': 0.25;
'function': 0.27; 'old': 0.27; 'email addr:python.org&gt;': 0.28;
'error': 0.29; 'url-ip:188/8': 0.31; 'python-list': 0.32; 'skip:w
40': 0.32; "wouldn't": 0.32; 'but': 0.32; 'path': 0.33; 'windows':
0.34; 'same': 0.34; 'header:In-Reply-To:1': 0.34; 'cases': 0.36;
'change': 0.36; 'using': 0.37; 'file': 0.38; 'way': 0.38; 'put':
0.38; 'edit': 0.39; 'list': 0.39; 'use': 0.39; 'want': 0.40;
'search': 0.61; 'reply-to:addr:yahoo.com': 0.61; 'your': 0.64;
'box': 0.65; 'right': 0.68; 'matter': 0.68; 'skip:# 10': 0.68;
'tip': 0.69; 'subject:have': 0.75; 'header:Reply-To:1': 0.79;
'email name:&lt;python-list': 0.84; 'proved': 0.84; 'strings':
0.84; 'want.': 0.84; 'opt': 0.89
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1650763181; bh=8txu/d2YjqAS4wzKd9KAhO+VyPh2R10KBFzCw4UBtWg=;
h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject:Reply-To;
b=oKu0tshTHS8K0oPXS/9B86RRUA/EAftSPMdumHpcPYoMIBsiXI7hymZzRDZOZLdDgTG3vDz/6/BCE5A1O7wqE3rkxzzgIXtmracs/UIkkXK15MHhTtfpHaYgdPNBn8o55M4wHuuomItPqVsFYoEzcYtdyNfqNw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1FosEEYX9oplwesVt6CSOIDP4k.2vLpavM4_Po0ExE6MOS_5eVuqr8gftpJ8Lvr8.0wM
VOVeSga857WqfPmctBjER_KlUHsxr6nCtNv7jpcBINpcqyuUj66GP89ZNwGp28C2Oesz1f0ZKAa7
o9AegAjoqfAQWJr79qogHAwZbxnIr9Sje_EIqSZwONGj88moR49sqzWCEkDKyAW.albRHcVPPb5R
YGgcLGFO2e5nr5I5KVEp_L8eDH3mK7UrNc_4zUEQiGQ0crIbUABS9Le1c0H2fDzzr9KfUEpGBPvc
UALejFhiVijKH2dtZL.bnQH3EeO9oLOjiR07dRlCuAlaDZTi6KIYW6W8xkYE0Hq7xtJQvlUbFuio
ceqsewaRwyMJ2uK0kIa5aTW571rxgRBOhqG5ZlmVa4Wn0UXUE._Nc40zTMWHWKWbHMJxArjg.xc2
dKApK9wHoKKyj70sukxVxHb2fJaCZe2DIBP7DiV86Ja5xKjQBfJDhduK2kKy9rZj6243KCrczk2D
tb5OLhg7L0pZuTNSsw1hMlAVLX9Za7wHsrRkY_EyziIc45acIKskFLnTKfZK8yx8Ylpf7OI9uU4s
Hk4MXMAqRjfN1m1khilP7905k.jt7Wt8eaTnz9D.Yb5AHbmjJ61MphE4KjXkxN3MBUhGCJOh23a5
HTgRq1dqBwKzyzeG_0kRDpHKrjWf8hoGFoMCZ9DY8gM5jBdaYBkicc7IT6UIMQ75.XqA1rc056fU
6rxllagKnC2U3GDdvB1oK.ZNKvkrmUhX8VQx.GB1MfDgO.F9VMuzvCHwnQZZEFon_elgeFlDmSAF
pTb4303GcGA1MsJ6mt8p3Oz1TYk_ckytBrCKb5jkEEmSIWCfkTtFtOXGinXuMNJFDzmAfi356KiN
C_2.BP3frVpTK.GUlSuS0YeA9Kt5OYEDn6dgJ853LG_weCmc-
X-Sonic-MF: <krlinus@yahoo.com>
In-Reply-To: <1A496C85-0E6A-432B-B455-581F70F648FD@barrys-emacs.org>
X-Mailer: WebService/1.1.20118 YMailNorrin
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: <1897585274.397040.1650763178034@mail.yahoo.com>
X-Mailman-Original-References: <1766896259.80347.1650605332904@mail.yahoo.com>
<1A496C85-0E6A-432B-B455-581F70F648FD@barrys-emacs.org>
 by: Sunil KR - Sun, 24 Apr 2022 01:19 UTC

I am happy with how the python starts up. When I use
python
I get python 2. 
I am ok with using py -3 for my new scripts, even using the shebang like
#!py -3
I don't want to put a unix (or for that matter windows) path in the shebang, as it is not platform portable
But the real question/s for me is/are

-- Why are my strings being sent to python3, so that I get the unicode related error?
-- in other cases I see error pertaining to the print function
In my case, I don't own the python2 scripts and so I am not allowed to change any part of them. And I wouldn't need to either, if I can make python 2 and 3 coexist on my system

> On 22 Apr 2022, at 17:10, Sunil KR via Python-list <python-list@python..org> wrote:
>
> I have some scripts that are old and won't work under python2 and at the same time I am writing new scripts which will use python3. However, if python 2 and 3 cannot co-exist in a windows box it will be impossible to transition
> What I try:- remove all pythons and launchers- Use windows installer and install python2 in python27 directory- Use windows installer and install python3 in python310 directory- When installing python3 I opt in to install the launcher- Test with py -2 and py -3 and see that I get the expected prompt- just typing python gets me python2

As you have proved you can install many versions of python at the same time on windows.

In your scripts set the shebang to run the python version you want.
E.g
#!/usr/bin/python2
Or
#!/usr/bin/python3

The python launcher py.exe will then do the right thing after looking at en shebang line.

Also you can edit the INI file of the py.exe launcher to set the defaults the way you want them. Do a search for “py.exe ini” to file the path to the file, I do not have it my finger tips.

Tip “py.exe -0” will list the state of installed pythons.

Barry

> --
> https://mail.python.org/mailman/listinfo/python-list
>

Re: How to have python 2 and 3 both on windows?

<t8h96h1mtokmf48lvl3f204tujd8bn5510@4ax.com>

  copy mid

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

  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: Sat, 23 Apr 2022 22:44:21 -0500
From: wlfr...@ix.netcom.com (Dennis Lee Bieber)
Newsgroups: comp.lang.python
Subject: Re: How to have python 2 and 3 both on windows?
Date: Sat, 23 Apr 2022 23:44:21 -0400
Organization: IISS Elusive Unicorn
Message-ID: <t8h96h1mtokmf48lvl3f204tujd8bn5510@4ax.com>
References: <1766896259.80347.1650605332904@mail.yahoo.com> <1A496C85-0E6A-432B-B455-581F70F648FD@barrys-emacs.org> <1897585274.397040.1650763178034@mail.yahoo.com> <mailman.233.1650763183.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: 30
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-5W61wZfK3+xe1J0F4Q35WEEAmXKw2Dz83ExM4uNRtVNZqsjdt/wYa+ryTHTTrKx8M5eKNbiLPjwmq4M!xzp6ndWD2Wmq3FgNvXeNON2sf2meoLuHy4G6GfH0a4OyDziwaUcqEjPRKRUEu5+2QlrYUTfq
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: 2618
 by: Dennis Lee Bieber - Sun, 24 Apr 2022 03:44 UTC

On Sun, 24 Apr 2022 01:19:38 +0000 (UTC), Sunil KR <krlinus@yahoo.com>
declaimed the following:

>
>-- Why are my strings being sent to python3, so that I get the unicode related error?
>-- in other cases I see error pertaining to the print function

In python2, the default for strings is BYTES -- you must explicitly ask
for unicode (for literals, using u'literal' notation). Python3 strings are,
by default, interpreted as unicode (with the encoding for source code [and
hence, literals] specified somewhere via a special comment). Getting a
normal python2 string requires using the b'literal' notation to indicate
/bytes/.

Also, in Python2, print is a language statement, not a function. If you
have any print statements that do not have ( ) surrounding the output
items, it WILL fail in Python3.

>In my case, I don't own the python2 scripts and so I am not allowed to change any part of them. And I wouldn't need to either, if I can make python 2 and 3 coexist on my system
>

Even if you are not "allowed to change" those scripts, have you tried
feeding them through the 2to3 conversion script just to see what type of
changes would be required?
https://docs.python.org/3/library/2to3.html

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

Re: How to have python 2 and 3 both on windows?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: krli...@yahoo.com (Sunil KR)
Newsgroups: comp.lang.python
Subject: Re: How to have python 2 and 3 both on windows?
Date: Sun, 24 Apr 2022 07:29:55 +0000 (UTC)
Lines: 58
Message-ID: <mailman.234.1650785401.20749.python-list@python.org>
References: <1766896259.80347.1650605332904@mail.yahoo.com>
<1A496C85-0E6A-432B-B455-581F70F648FD@barrys-emacs.org>
<1897585274.397040.1650763178034@mail.yahoo.com>
<mailman.233.1650763183.20749.python-list@python.org>
<t8h96h1mtokmf48lvl3f204tujd8bn5510@4ax.com>
<1696294318.365982.1650785395131@mail.yahoo.com>
Reply-To: Sunil KR <krlinus@yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de qrQrIQPrBAOy2l1KdabTvQQnK2BkFvDkC+jet5eSN9Fg==
Return-Path: <krlinus@yahoo.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=yahoo.com header.i=@yahoo.com header.b=SR3opl6H;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'this:': 0.03; '(for':
0.05; '2022': 0.05; 'indicate': 0.05; 'subject:python': 0.06;
'explicitly': 0.07; 'string': 0.07; 'sun,': 0.07; '&gt;': 0.14;
'url:mailman': 0.15; '2022,': 0.16; 'conversion': 0.16; 'email
addr:yahoo.com&gt;': 0.16; 'encoding': 0.16; 'error?': 0.16;
'items,': 0.16; 'not)': 0.16; 'pdt,': 0.16; 'python3': 0.16;
'python3.': 0.16; 'script.': 0.16; 'subject:windows': 0.16;
'sunil': 0.16; 'unicode': 0.16; 'wrote:': 0.16; 'problem': 0.16;
'python': 0.16; 'installing': 0.19; 'to:addr:python-list': 0.20;
'language': 0.21; 'code': 0.23; 'subject:How': 0.23; 'run': 0.23;
'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'tried': 0.26; 'function': 0.27; 'output': 0.28; 'goes': 0.28;
'error': 0.29; 'default': 0.31; 'url-ip:188/8': 0.31; 'question':
0.32; 'specified': 0.32; "wouldn't": 0.32; 'script': 0.33;
'requires': 0.34; 'header:In-Reply-To:1': 0.34; 'also,': 0.36;
'cases': 0.36; 'source': 0.36; 'change': 0.36; 'those': 0.36;
'special': 0.37; 'using': 0.37; 'changes': 0.39; '(with': 0.39;
'both': 0.40; 'reply-to:addr:yahoo.com': 0.61; 'following:': 0.69;
'interpreted': 0.69; 'surrounding': 0.69; 'subject:have': 0.75;
'header:Reply-To:1': 0.79; 'conversion.': 0.84; 'saturday,': 0.84;
'strings': 0.84; 'affect': 0.91; 'hence,': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1650785398; bh=RjsCU4oOAO+3kuAsdXmF3GYO3GnNOubm/Z66GyWFjms=;
h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To;
b=SR3opl6HkGJnW/jq4JASsclAB5AaGG0ZapPl0xTchot6RFB3LROSwWaLYALfuh2SJk5dzwds53G/I08CKZV/uDWklMTkQvVnv+kjX8NqXAHkGAZD0CpXN/Jt33qaitFPA6ji+rnaSpturOFpwGxtZX7ScD6EqQo1oiruNFZKJxg3sF93fqVxNweShG2325bv9+Ab1BCIUZ1HqTJnFJe7pAni1eIYcRB8KChee6b5sN4Eek0Ca09NyzIYxi4PXsaXUAZvuCC4oUPVIGJmsNpojisDwaKcHN+5kw+dLjXtFThmsfuY3PP1yFFi6jgUFT1GgbEysGq3Xy4AFCSxbsUuNg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1650785398; bh=t67pG3/2RaRr7UiEuVopoG9mYDWY2XWQ3eFAdXTEqOp=;
h=X-Sonic-MF:Date:From:To:Subject:From:Subject;
b=hAWFrAdi0jdip0U4MUuxJuQmWHCAgYyK2v0w2ukA7pKgHZ+VPeMvJ99mAxwy+tUNKda8N1QyJoLxPWEM3DphwzZmCKz8GEKEuC52f5XzWtCGlhiKUYDQbacysHaY+MQ0Z2ZQZ9A7P4poKJCbCjsRMF75djQrQ8BtDL8NdieoePElzcFt7sVWYvHbzUSUZ4JPvBz6j9YUc+i0GdCoNtMFCpcGIx2ZS/0z5Y0uFec90TswFxCtSYobHT50uMHLGT/J//qoBw0s2m60Z13epQJa5PlyD8xKe3gplQ/fnNYVZJawh39uwvA9ojXz+Aglh8l4XT+nDuE9NY5bqPSzKYf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.qeZ2L5BBuvjyHVZ__.OU4wIlVfrXpqxriGBh2C4yi.2WtPpyeTSFiXZcw4topBid
yhDuITKQeBU3_46iSulGdA4SkEtL6EF7HGzJKFzNWfAi6eTDihRRD7bL9SdzA0x81z60weNrFqtW
pTUGr5QIABnVG8pX0GXBak8jGLuFk7vnDaTSM_s3FRE1nLwD9w23OsubrA6tlfrxYVfjnV.QIiny
PT.hCqVl0GgBe_5pHjy2YL7m4vkAp0NnRsP6mONnG3Zl8Dp0n03l4hdc-
X-Sonic-MF: <krlinus@yahoo.com>
In-Reply-To: <t8h96h1mtokmf48lvl3f204tujd8bn5510@4ax.com>
X-Mailer: WebService/1.1.20118 YMailNorrin
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: <1696294318.365982.1650785395131@mail.yahoo.com>
X-Mailman-Original-References: <1766896259.80347.1650605332904@mail.yahoo.com>
<1A496C85-0E6A-432B-B455-581F70F648FD@barrys-emacs.org>
<1897585274.397040.1650763178034@mail.yahoo.com>
<mailman.233.1650763183.20749.python-list@python.org>
<t8h96h1mtokmf48lvl3f204tujd8bn5510@4ax.com>
 by: Sunil KR - Sun, 24 Apr 2022 07:29 UTC

The question is not one of conversion. The question is this:
When I have both python 2 and python3, why is my python 2 script breaking? And when I remove python3 the problem goes away?

In both cases (regardless of installing python 3 or not) I am using only python 2 to run the python2 script. Why does the installation of python3 affect the python2, and how can I get them to work without stepping on one another?

On Saturday, April 23, 2022, 09:59:46 PM PDT, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
On Sun, 24 Apr 2022 01:19:38 +0000 (UTC), Sunil KR <krlinus@yahoo.com>
declaimed the following:

>
>-- Why are my strings being sent to python3, so that I get the unicode related error?
>-- in other cases I see error pertaining to the print function

    In python2, the default for strings is BYTES -- you must explicitly ask
for unicode (for literals, using u'literal' notation). Python3 strings are,
by default, interpreted as unicode (with the encoding for source code [and
hence, literals] specified somewhere via a special comment). Getting a
normal python2 string requires using the b'literal' notation to indicate
/bytes/.

    Also, in Python2, print is a language statement, not a function. If you
have any print statements that do not have ( ) surrounding the output
items, it WILL fail in Python3.

>In my case, I don't own the python2 scripts and so I am not allowed to change any part of them. And I wouldn't need to either, if I can make python 2 and 3 coexist on my system
>

    Even if you are not "allowed to change" those scripts, have you tried
feeding them through the 2to3 conversion script just to see what type of
changes would be required?
https://docs.python.org/3/library/2to3.html

--
    Wulfraed                Dennis Lee Bieber        AF6VN
    wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/
--
https://mail.python.org/mailman/listinfo/python-list

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor