Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Beware of the Turing Tar-pit in which everything is possible but nothing of interest is easy.


devel / comp.lang.python / Re: upgrade of pip on my python 2.7 version

SubjectAuthor
* Re: upgrade of pip on my python 2.7 versionMats Wichmann
+- Re: upgrade of pip on my python 2.7 versionMats Wichmann
`* Re: upgrade of pip on my python 2.7 versionChris Angelico
 `- Re: upgrade of pip on my python 2.7 versionThomas Passin

1
Re: upgrade of pip on my python 2.7 version

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: upgrade of pip on my python 2.7 version
Date: Wed, 27 Sep 2023 13:32:19 -0600
Lines: 58
Message-ID: <mailman.357.1695843148.23016.python-list@python.org>
References: <34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de B/I/iOaOtOGNL1mQ7ty9gA/mjAtVr48DckSv5LL9opPg==
Cancel-Lock: sha1:3PMK55IbgTePhgr6zCNIRVy6rp0= sha256:znFjkMZbMFmUvroeTr24YKYxFxc0U6GFLCPs1OR8I9I=
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=iUVxiBK6;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'def': 0.04; 'pip': 0.04;
'traceback': 0.04; '(most': 0.05; 'last):': 0.05; 'pypi': 0.05;
'subject:python': 0.06; 'matches': 0.07; 'python.': 0.08;
'classifiers': 0.09; 'collecting': 0.09; 'subject:version': 0.09;
'upgrading': 0.09; 'received:173': 0.13; 'syntax': 0.15;
'"don\'t': 0.16; 'command.': 0.16; 'incompatible': 0.16;
'interpreter': 0.16; 'invoke': 0.16; 'license:': 0.16; 'skip:"
60': 0.16; 'subject:2.7': 0.16; 'subject:pip': 0.16;
'subject:upgrade': 0.16; 'syntaxerror:': 0.16; 'url:gz': 0.16;
'url:tar': 0.16; 'wrote:': 0.16; 'python': 0.16; 'it?': 0.19;
'to:addr:python-list': 0.20; 'language': 0.21; 'maybe': 0.22;
'version': 0.23; 'install': 0.23; 'command': 0.23; "i'd": 0.24;
'programming': 0.25; 'else': 0.27; 'output': 0.28; 'error': 0.29;
'header:User-Agent:1': 0.30; 'everyone': 0.32; '"",': 0.32;
'dropped': 0.32; 'personally': 0.32; 'python-list': 0.32;
'returning': 0.32; 'header:In-Reply-To:1': 0.34; 'trying': 0.35;
'invalid': 0.35; 'using': 0.37; "it's": 0.37; 'received:192.168':
0.37; 'file': 0.38; 'least': 0.39; 'developers': 0.39; 'to.':
0.39; '(see': 0.40; 'something': 0.40; 'should': 0.40; 'complete':
0.64; 'license': 0.64; 'requirement': 0.64; 'upgrade': 0.64;
'your': 0.64; '20,': 0.67; 'safer': 0.69; '....': 0.76; 'mit':
0.76; 'url:files': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=s73RqIJAfKHp
rTrjei6Ku2rRxpxdlZiAV1bAubvGFGk=; b=iUVxiBK61df5POPQLaLCxVmONwUB
/NrFRSDZ5HGg0Ch0KvOIJPTMqoyP70ssYajSKqhjkun77FrVCIUSzyfZplrSHuS2
KshuonsXpyLqcy4lnctM+NUaSYVyEIG/yNgQSHR95E03B6q9l9hT/1zKc+JpIYAP
osOCfIyvmDOz44g=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=s73RqIJAfKHprTrjei6Ku2rRxpxdlZiAV1bAubvGFGk=;
b=epY+wDJwz4KXEDoQD7oyaP3wEtACs1QmqEIbn85gsihUOatz2ELT+8nYgnHzpDdwBAAlQI/WuQP9KijEjqSN3nqbwtPqGCMOlK99VMVnGmbLUMZRZ18n8LL9S5CJE5Wt8GMEHhxDkFuPH+4kMKwJdYdx4OfJKaqfhyuycGUFQ5g=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
X-Pobox-Relay-ID: 93A79F70-5D6C-11EE-A5D0-A19503B9AAD1-81526775!pb-smtp21.pobox.com
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: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
X-Mailman-Original-References: <34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
 by: Mats Wichmann - Wed, 27 Sep 2023 19:32 UTC

On 9/27/23 05:17, Zuri Shaddai Kuchipudi via Python-list wrote:
> hello everyone this the error that im getting while trying to install and upgrade pip on what is the solution for it?
>
> C:\repository\pst-utils-pc-davinci-simulator>pip install
> You are using pip version 7.0.1, however version 23.2.1 is available.
> You should consider upgrading via the 'pip install --upgrade pip' command.
> You must give at least one requirement to install (see "pip help install")
>
> C:\repository\pst-utils-pc-davinci-simulator>pip install --upgrade pip
> You are using pip version 7.0.1, however version 23.2.1 is available.
> You should consider upgrading via the 'pip install --upgrade pip' command.
> Collecting pip
> Using cached https://files.pythonhosted.org/packages/ba/19/e63fb4e0d20e48bd2167bb7e857abc0e21679e24805ba921a224df8977c0/pip-23.2.1.tar.gz
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
> File "<string>", line 20, in <module>
> File "c:\users\kuchipz\appdata\local\temp\pip-build-gc4ekm\pip\setup.py", line 7
> def read(rel_path: str) -> str:
> ^
> SyntaxError: invalid syntax

PyPI *should* be returning a compatible version of pip to upgrade to.
pip itself has long since dropped support for 2.7, and the version
you're trying to force is pretty clear:

pip 23.2.1

Meta
License: MIT License (MIT)
Author: The pip developers
Requires: Python >=3.7
....
Classifiers
Development Status
5 - Production/Stable
Intended Audience
Developers
License
OSI Approved :: MIT License
Programming Language
Python
Python :: 3
Python :: 3 :: Only
....

So "don't do that".

Why it's trying to select an incompatible version when you ask to
upgrade is not something I'd like to speculate on, for me personally
that's a surprise. Maybe something else you did before?

Also make sure you're using a pip that matches your Python. It's usually
safer if you invoke it as:

python -m pip install --upgrade pip

(or whatever the precise name of your Python 2 interpreter actually is)

Re: upgrade of pip on my python 2.7 version

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!rocksolid2!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: mat...@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: upgrade of pip on my python 2.7 version
Date: Wed, 27 Sep 2023 15:26:14 -0600
Lines: 33
Message-ID: <mailman.362.1695849984.23016.python-list@python.org>
References: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
<34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org>
<ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de mcKid2ojvSdIfT8qBenBTwTuJzIEEb7dR4+o9GFZBnsQ==
Cancel-Lock: sha1:wqewSGjhrMZuCRL8Ifs57YQaHn8= sha256:aP/ztwbrM7UmmrqIUAle48uWopQQu1saRaZGw+G8LOo=
Return-Path: <mats@wichmann.us>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=pobox.com header.i=@pobox.com header.b=Gk4CeaQ6;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'looks': 0.02; 'this:':
0.03; 'pip': 0.04; 'subject:python': 0.06; 'matches': 0.07;
'python.': 0.08; '2.7': 0.09; 'linux': 0.09; 'subject:version':
0.09; 'upgrading': 0.09; 'received:173': 0.13; '"not': 0.16;
'are.': 0.16; 'conversion': 0.16; 'incompatible': 0.16;
'interpreter': 0.16; 'invoke': 0.16; "isn't.": 0.16; 'okay.':
0.16; 'paths': 0.16; 'pip,': 0.16; 'subject:2.7': 0.16;
'subject:pip': 0.16; 'subject:upgrade': 0.16; 'wrote:': 0.16;
'python': 0.16; 'probably': 0.17; 'libraries': 0.19; 'to:addr
:python-list': 0.20; 'written': 0.22; 'maybe': 0.22; 'version':
0.23; 'install': 0.23; 'code': 0.23; 'run': 0.23; "i'd": 0.24;
'else': 0.27; 'expect': 0.28; 'header:User-Agent:1': 0.30;
'personally': 0.32; 'python-list': 0.32; 'but': 0.32; 'windows':
0.34; 'work.': 0.34; 'header:In-Reply-To:1': 0.34; 'trying': 0.35;
'using': 0.37; "it's": 0.37; 'received:192.168': 0.37; 'could':
0.38; 'necessary': 0.39; 'something': 0.40; 'want': 0.40; 'try':
0.40; 'should': 0.40; 'best': 0.61; 'method': 0.61; 'stay': 0.61;
'seen': 0.62; 'url-ip:151.101.0/24': 0.62; 'url-
ip:151.101.128/24': 0.62; 'url-ip:151.101.192/24': 0.62; 'url-
ip:151.101.64/24': 0.62; 'upgrade': 0.64; 'your': 0.64; 'tool':
0.65; 'shows': 0.67; 'video': 0.68; 'safer': 0.69; 'showed': 0.69;
'ignore': 0.71; 'proceed,': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=aUiRAkO8GuZK
jTaf95kmHan73cluVz4d0H8J2PXxAhY=; b=Gk4CeaQ6KIZ9pPNEbstYv5qTrT8T
/xLrh/OS47rtncdFad7dCcMuUjHaRd/XuEzQH0JytKHUgGALmBEWmAWvgP1Co71e
eUQqjuk59GrbCYnf04QxAITn9MD4XFLtN5GjHfKSOc/8SaqYb/R52TTz4sF8jHlC
gve5QQKZVsK3tqg=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=aUiRAkO8GuZKjTaf95kmHan73cluVz4d0H8J2PXxAhY=;
b=n4p8znoLPtZ0EJbEL4JXfCJhzQxPfLapVGqWL6w7BBVJN6rCaeEhqJEsKjzEzpdzmswHSY8qc9SfX7uql8V0zbc8GrdVYCpx6Ddrw9zuRlUeVCU2ysD+bgHcF2c9+cXRWM8BlJLjuC+Qyl6g7IQlMR49+XPKqKVmify5BD+Vw9Y=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
X-Pobox-Relay-ID: 7E0C86CA-5D7C-11EE-9128-A19503B9AAD1-81526775!pb-smtp21.pobox.com
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: <d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
X-Mailman-Original-References: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
<34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org>
<ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
 by: Mats Wichmann - Wed, 27 Sep 2023 21:26 UTC

On 9/27/23 14:02, Zuri Shaddai Kuchipudi via Python-list wrote:

>> Why it's trying to select an incompatible version when you ask to
>> upgrade is not something I'd like to speculate on, for me personally
>> that's a surprise. Maybe something else you did before?
>>
>> Also make sure you're using a pip that matches your Python. It's usually
>> safer if you invoke it as:
>>
>> python -m pip install --upgrade pip
>>
>> (or whatever the precise name of your Python 2 interpreter actually is)
> the code that i want to run and all the libraries are written for python 2 but i have seen a video where the person showed the 2to3 pip method in which it rewrites the code in python 3 and shows all the necessary changes.

Upgrading to Python 3 is the best answer... except when it isn't. If
you want to convert a small project it's usually not too hard; and using
a conversion tool can work well.

If you have libraries "not under your control" expect a lot more work.

You can upgrade pip to the latest available version for Python 2.7 -
will take some research, I don't know what that version might be.

Or you could try this:

https://bootstrap.pypa.io/pip/2.7/get-pip.py
If you were using a Linux distro, you probably don't want to mess with
the "system pip" which is usually set up to understand details of how
that distro's Python is packaged. It looks like you're on Windows by
the paths in your original message, so that should be okay.

Or... you could just ignore the message suggesting you upgrade pip, and
proceed, hoping things will stay working as they are.

Re: upgrade of pip on my python 2.7 version

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: upgrade of pip on my python 2.7 version
Date: Thu, 28 Sep 2023 07:32:26 +1000
Lines: 22
Message-ID: <mailman.363.1695850360.23016.python-list@python.org>
References: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
<34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org>
<ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
<CAPTjJmo0UYFgetgh=O6MtuDMX00RZWs-T3J1SccoRi4N8QQeyQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de ctJL9LT0xK0zEfxmtcf4mQHVUOrq9pWUCemktpAjDjcw==
Cancel-Lock: sha1:/SwnwfrDT9rDTQ63jq2YHTK3BaY= sha256:Dz37HwCZTHO6XFZDzDxs/noFjGX8AfRJveOoH+gi08k=
Return-Path: <rosuav@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=YYplR7Na;
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;
'2023': 0.07; "hasn't": 0.09; 'patches': 0.09; 'subject:version':
0.09; 'upgrading': 0.09; 'chrisa': 0.16; 'conversion': 0.16;
'fixes': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; "isn't.": 0.16; 'mats': 0.16; 'reap': 0.16;
'received:mail-lj1-x233.google.com': 0.16; 'sept': 0.16;
'subject:2.7': 0.16; 'subject:pip': 0.16; 'subject:upgrade': 0.16;
'wichmann': 0.16; 'wrote:': 0.16; 'python': 0.16; 'code.': 0.17;
'bug': 0.19; 'thu,': 0.19; 'to:addr:python-list': 0.20; 'issue':
0.21; 'version': 0.23; 'run': 0.23; 'python,': 0.25; 'old': 0.27;
'python-list': 0.32; 'message-id:@mail.gmail.com': 0.32; 'but':
0.32; 'there': 0.33; 'package': 0.34; 'header:In-Reply-To:1':
0.34; 'received:google.com': 0.34; 'running': 0.34; 'track': 0.35;
'from:addr:gmail.com': 0.35; 'possibly': 0.36; 'using': 0.37;
"it's": 0.37; 'quite': 0.39; 'still': 0.40; 'want': 0.40; 'best':
0.61; 'remember': 0.61; "there's": 0.61; 'python.org': 0.62;
'security': 0.64; 'down': 0.64; 'your': 0.64; 'tool': 0.65; 'pay':
0.65; 'increasingly': 0.67; 'manager': 0.68; '2010': 0.69; 'you.':
0.71; 'released': 0.75; 'price': 0.75; 'features': 0.75; 'left':
0.83; 'luxury': 0.84; 'massive': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1695850358; x=1696455158; darn=python.org;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=My/ZCWi/wbfeS5EuqnHBfQB0TIfOS+IHvJ46GKDvbIQ=;
b=YYplR7NaCNooI/15FtRgSKD0+dRecs5TTBofh1/1i/P71r0jl0P1+g+5dalUnKkSHf
v8BP7+rJac3LsTLgyir8+58VX1n6KcBHvJPpqf/+4y4FsGrjBp5q27j/FG5EdFq/u/1W
1ugSmk1oezQY92zVL8D0nwJn5PC3oZtO2DkVwy3RQ+puMMM4CBGSfuz+nBafS2XjY6Y5
ZzqGOs54xni5zbk2APAmrBNtK1U2j6egeDN37cfgDRfXl3+9t0q6w0YbLDRlqiZdjxOi
QWcxbaWmwASuoCOU48xf46GfgbRpsq1Qo0tLZXsxQFy9Y5LbBtGW6Hw/P/R1weucBOwK
RuWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1695850358; x=1696455158;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=My/ZCWi/wbfeS5EuqnHBfQB0TIfOS+IHvJ46GKDvbIQ=;
b=ZXkW4DGiwPJz74AtTHBcQHaGFllEov871IQmv/f8Dx63+J9Qa+Thxr1wZxTbwix46E
5RQl6wXbVl8d/a4GCUpAWowfdqXF1Y/NVFlqn0t0wr9QvfQ1vEgoI3huvKlih8EeCZOn
rQbSjDEkZqZGq+sKHYVJfSSfnR9GgjG+ve7dgFIUyrvrW9IpgEORCKj20oZqxQYvL4G3
hij0oN2K4W/MYAMbUwutKomipC+HMrdWMVx2CEZeclyP9fXl4JAa9k1gnr7uJNr1nFp9
SQP+xjUeK8RwhEIZfMB0mc/svH1sksDcWOQMxQrf/NJJ0mmqVoBnIXkn8QcRMMP4FYNB
KU6A==
X-Gm-Message-State: AOJu0YyCXOBb4DZN1aeUhDRhZV3QsS9lD5kKLzW7b4cLD8x7uFLTChiJ
xoEv04LVMVNZmpUUyU86otpycdSuJNOgCkWTXYXfwL8d
X-Google-Smtp-Source: AGHT+IGcwbvKuxYk91bHeqFTOJI2Ih+0E3U2p2tOHftz3HexM+TMGgIyKKKFLqPNNhTXx44071AWUoGopRTvDOIGIlU=
X-Received: by 2002:a2e:b6d4:0:b0:2b6:e958:5700 with SMTP id
m20-20020a2eb6d4000000b002b6e9585700mr2871025ljo.4.1695850357790; Wed, 27 Sep
2023 14:32:37 -0700 (PDT)
In-Reply-To: <d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
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: <CAPTjJmo0UYFgetgh=O6MtuDMX00RZWs-T3J1SccoRi4N8QQeyQ@mail.gmail.com>
X-Mailman-Original-References: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
<34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org>
<ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
 by: Chris Angelico - Wed, 27 Sep 2023 21:32 UTC

On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list
<python-list@python.org> wrote:
>
> Upgrading to Python 3 is the best answer... except when it isn't. If
> you want to convert a small project it's usually not too hard; and using
> a conversion tool can work well.

Just remember that Python 2.7.18, the very last version of Python 2,
was released in 2020 and has not changed since. There are not even
security patches being released (at least, not from python.org - but
if you're using a different distribution of Python, you are also quite
possibly using their package manager rather than pip). Staying on a
version of Python that hasn't had new features since 2010 and hasn't
had bug fixes since 2020 is going to become increasingly problematic.

Convert your code. Pay the price in development time now and then reap
the benefits, rather than paying the price when you run into a massive
issue somewhere down the track and there's no options left to you.

Convert while you still have the luxury of running the old code.

ChrisA

Re: upgrade of pip on my python 2.7 version

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lis...@tompassin.net (Thomas Passin)
Newsgroups: comp.lang.python
Subject: Re: upgrade of pip on my python 2.7 version
Date: Thu, 28 Sep 2023 11:43:25 -0400
Lines: 40
Message-ID: <mailman.369.1695918043.23016.python-list@python.org>
References: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
<34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org>
<ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
<CAPTjJmo0UYFgetgh=O6MtuDMX00RZWs-T3J1SccoRi4N8QQeyQ@mail.gmail.com>
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
<mailman.363.1695850360.23016.python-list@python.org>
<7777d6c8-08a0-4342-8297-bba95c316a8fn@googlegroups.com>
<fe35d25c-799e-6cee-4c61-6f177a71edea@tompassin.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de esRcudIEdy1A0EMZgkl8/geIcYmIuKk4h0gmYQugnWrg==
Cancel-Lock: sha1:6Y1O8SSjsB/+hInpkxBNspyyyGw= sha256:cuQCZgD069YzWnCcUcQOPO2Bcfxu6oeho1z8eOtQI3s=
Return-Path: <list1@tompassin.net>
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=tompassin.net header.i=@tompassin.net header.b=rQF2z/hZ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:python': 0.06;
'2023': 0.07; '2.7': 0.09; '3.x.': 0.09; 'angelico': 0.09;
'depend': 0.09; "hasn't": 0.09; 'patches': 0.09;
'subject:version': 0.09; 'upgrading': 0.09; 'that.': 0.15;
'chrisa': 0.16; 'conversion': 0.16; 'fixes': 0.16; "isn't.": 0.16;
'issue?': 0.16; 'mats': 0.16; 'ported': 0.16; 'reap': 0.16;
'received:10.0.0': 0.16; 'received:64.90': 0.16;
'received:64.90.62': 0.16; 'received:64.90.62.162': 0.16;
'received:dreamhost.com': 0.16; 'sept': 0.16; 'subject:2.7': 0.16;
'subject:pip': 0.16; 'subject:upgrade': 0.16; 'tries': 0.16;
'unusual.': 0.16; 'wichmann': 0.16; 'wrote:': 0.16; 'python':
0.16; 'code.': 0.17; 'solve': 0.19; 'bug': 0.19; 'thu,': 0.19;
'to:addr:python-list': 0.20; 'issue': 0.21; 'downloading': 0.22;
'version': 0.23; 'code': 0.23; 'run': 0.23; 'python,': 0.25;
'wednesday,': 0.26; 'old': 0.27; '>>>': 0.28; 'chris': 0.28;
'header:User-Agent:1': 0.30; 'am,': 0.31; 'modify': 0.31; 'do.':
0.32; 'python-list': 0.32; 'received:10.0': 0.32;
'received:mailchannels.net': 0.32;
'received:relay.mailchannels.net': 0.32; 'but': 0.32; 'there':
0.33; 'able': 0.34; 'package': 0.34; 'header:In-Reply-To:1': 0.34;
'running': 0.34; 'track': 0.35; 'possibly': 0.36; 'change': 0.36;
'using': 0.37; "it's": 0.37; 'changes': 0.39; 'quite': 0.39;
'still': 0.40; 'both': 0.40; 'want': 0.40; 'best': 0.61;
'remember': 0.61; "there's": 0.61; 'python.org': 0.62; 'security':
0.64; 'down': 0.64; 'your': 0.64; 'tool': 0.65; 'pay': 0.65;
'increasingly': 0.67; 'header:Received:6': 0.67; 'received:64':
0.67; 'manager': 0.68; '2010': 0.69; 'depending': 0.70; 'you.':
0.71; 'easy': 0.74; 'released': 0.75; 'price': 0.75; 'features':
0.75; 'left': 0.83; 'biggest': 0.84; 'extra': 0.84; 'luxury':
0.84; 'massive': 0.84
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1695915807; a=rsa-sha256;
cv=none;
b=CVIaIRWGw8ayet5F+5XqTfJ4gW5hjhRewiIH2l/MNVLaluJXx/wfIiY4WXzvrm2DKIyJoF
M3hGKi1FTmJqPnm+ZQrvKHWoRbkOkQB5H4qV42nKOUFqLR0qHUsy6nKdkQpFigdGuwV57U
urSnxhfDiyJV1L0BdpuH8mO3M/T+7GEa1LRjiD4lBxOsxB+28us7x2fD7naeH+MeIF/Qm5
m3Osjyax9JUtW8Fz3RSKnz5Y6oTAzXXJHWHNegixqLMF78tjwPGDwQMMLev9ldLLc9eHqs
79ZXfhtaIEOiNKBlBij28iMPZ/REbjNOIXaIGpbzGicbBIu60FVwbrh3b8m4hw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=mailchannels.net; s=arc-2022; t=1695915807;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=OP6OJaaI5dz2fPQ6XgEHW+/gAfx/eop99nzrTLxWcRQ=;
b=BaABs5TEM7H8se7a5sh/ZBvxixfsAfAVZ6mBVvbge6MCfYVSOmYg2o0Eg+OxziBIWg/K0Q
J3A3Pa3SdQvwgyK/M+K/iPbIO0OdztYLzqK4iY4ZdqEnvDsL754GvWvqwAIXgKhs5KB5l3
XP7L/wzXL2IFCugjL22QbES8Hcr8oGqqfC2w3rClQb5MfJXVu5ZiKKTpFR3mj7BQUze08w
lCGEgwLuRdYLMak5HVp6NfM2PXSIlnkHJe/IypVVwqH45CLKg60Z1+bVCSpdCXoIkFjaEw
Gv2zneaZ31k9EbNbEPpv2uik40qTc2Hl6ntFO4mqBwGBJeBi4Kicx6cVZONWxw==
ARC-Authentication-Results: i=1; rspamd-7d5dc8fd68-8wxzf;
auth=pass smtp.auth=dreamhost smtp.mailfrom=list1@tompassin.net
X-Sender-Id: dreamhost|x-authsender|tpassin@tompassin.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|tpassin@tompassin.net
X-MailChannels-Auth-Id: dreamhost
X-Lettuce-Cellar: 485714aa51b148ac_1695915807430_204230770
X-MC-Loop-Signature: 1695915807430:3304163187
X-MC-Ingress-Time: 1695915807430
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tompassin.net;
s=dreamhost; t=1695915806;
bh=OP6OJaaI5dz2fPQ6XgEHW+/gAfx/eop99nzrTLxWcRQ=;
h=Date:Subject:To:From:Content-Type:Content-Transfer-Encoding;
b=rQF2z/hZbmvsdKXzpJxzqyRnOW4Mw87tUFoERHmCHlWojC2rzIvAFCt59WRfOwguR
DpKVVAOtDGMQz6YwxyMce8xkeiGfVCTQ6Rzh7FZiWC/yEz82hm07q2NCqBt0ByCC7h
IhIpC1wpDFWaB1m36d8iL4tooncXLHCESUJR051+HGCNkH/yh3CUuizmTCLkYYolAm
xPdp2X5FynNv1xRe+AkVPmUEBgWbAtc4ODnbmqZ14z5eUwahalgoNXm0GN7eolddNY
O9DoYr9N2M8xBFcYi5i7U3Xwo4Edy8EJ8TPqRYUxw4Ub6gINXfOGHJWMMLlSOdAU6f
LdYrNAAoTVWSQ==
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <7777d6c8-08a0-4342-8297-bba95c316a8fn@googlegroups.com>
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: <fe35d25c-799e-6cee-4c61-6f177a71edea@tompassin.net>
X-Mailman-Original-References: <595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us>
<34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org>
<ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
<CAPTjJmo0UYFgetgh=O6MtuDMX00RZWs-T3J1SccoRi4N8QQeyQ@mail.gmail.com>
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
<mailman.363.1695850360.23016.python-list@python.org>
<7777d6c8-08a0-4342-8297-bba95c316a8fn@googlegroups.com>
 by: Thomas Passin - Thu, 28 Sep 2023 15:43 UTC

On 9/28/2023 9:23 AM, Zuri Shaddai Kuchipudi via Python-list wrote:
> On Wednesday, 27 September 2023 at 23:33:02 UTC+2, Chris Angelico wrote:
>> On Thu, 28 Sept 2023 at 07:27, Mats Wichmann via Python-list
>> <pytho...@python.org> wrote:
>>>
>>> Upgrading to Python 3 is the best answer... except when it isn't. If
>>> you want to convert a small project it's usually not too hard; and using
>>> a conversion tool can work well.
>> Just remember that Python 2.7.18, the very last version of Python 2,
>> was released in 2020 and has not changed since. There are not even
>> security patches being released (at least, not from python.org - but
>> if you're using a different distribution of Python, you are also quite
>> possibly using their package manager rather than pip). Staying on a
>> version of Python that hasn't had new features since 2010 and hasn't
>> had bug fixes since 2020 is going to become increasingly problematic.
>>
>> Convert your code. Pay the price in development time now and then reap
>> the benefits, rather than paying the price when you run into a massive
>> issue somewhere down the track and there's no options left to you.
>>
>> Convert while you still have the luxury of running the old code.
>>
>> ChrisA
> but how do i convert it chris just downloading the python version 3 will solve my issue? and what about the changes

You have to modify your existing Python code. It's often easy to do.
There is the tool that tries to convert from Python 2 to Python 3; you
may need to do some extra work after that. Depending on the code you
may even be able to make it work with both Python 2.7 and 3.x. Often
the biggest change is to print statements:

Python 2:
print a, b, c

Python3:
print(a, b, c)

If you are very unlucky, your code will depend on some package that has
never been ported to Python 3. But that would be unusual.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor