Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

For a light heart lives long. -- Shakespeare, "Love's Labour's Lost"


comp / comp.lang.python / Re: Help needed - - running into issues with python and its tools

SubjectAuthor
o Re: Help needed - - running into issues with python and its toolso1bigtenor

1
Subject: Re: Help needed - - running into issues with python and its tools
From: o1bigtenor
Newsgroups: comp.lang.python
Date: Mon, 5 Aug 2024 20:39 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: o1bigtenor@gmail.com (o1bigtenor)
Newsgroups: comp.lang.python
Subject: Re: Help needed - - running into issues with python and its tools
Date: Mon, 5 Aug 2024 15:39:37 -0500
Lines: 82
Message-ID: <mailman.14.1722890417.2890.python-list@python.org>
References: <CAPpdf5-D7kwCK=-kT9E7nZSxk_XqJtenMn08AngXEZjpairCSw@mail.gmail.com>
<6c8e722a-ff27-4979-b299-a25fdcac0036@DancesWithMice.info>
<CAPpdf58wNrm1n+M6uCH4CDazx-rTTnUjgt62vYaFGUw9QZL2Ng@mail.gmail.com>
<9e360cba-5774-4676-a025-810e655f0918@DancesWithMice.info>
<CAPpdf58z=WY-BTcCYPgu+rnaRgkP7+CKt-WX-hwpmogs7KqG4Q@mail.gmail.com>
<65743dbe-948e-4dcb-a434-aedc108c11cc@wichmann.us>
<CAPpdf5_XpFHcqQ8MozaNPSxaJhty-i06Dpj=_b6fq8pcTvxGNQ@mail.gmail.com>
<9796ce7b-9ef7-4386-a79f-8ee3aa97d7bc@wichmann.us>
<CAPpdf58gQQ7Tpnuz7ogHaHoN2Te6h_K1reo2ZCiSWSm9qFechg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de E1GF3QXQbKQBI4bteDYgBQZZc8AcsVTXKeLJXhxI+nkg==
Cancel-Lock: sha1:di4D2TTBt6GvEasIce8JwTkaSes= sha256:/xJ3jLP1EDzVXm/c00Gyj6Sc0pdyvEAI3wOUQZOSWZY=
Return-Path: <o1bigtenor@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=lHGHSBXQ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'error:':
0.05; 'restrictions': 0.05; 'subject:python': 0.06;
'&gt;&gt;&gt;': 0.07; 'aug': 0.07; 'interacting': 0.07; 'pep':
0.07; 'subject:into': 0.07; 'sun,': 0.07; 'python.': 0.08;
'advise.': 0.09; 'cc:addr:python-list': 0.09; 'email
addr:python.org>': 0.09; 'example:': 0.09; 'hat': 0.09; 'it)':
0.09; 'subject:needed': 0.09; 'url-ip:151.101.0.223/32': 0.09;
'url-ip:151.101.128.223/32': 0.09; 'url-ip:151.101.192.223/32':
0.09; 'url-ip:151.101.64.223/32': 0.09; '&gt;': 0.14; 'cc:no real
name:2**0': 0.14; '&lt;': 0.16; '2024': 0.16; 'doc': 0.16;
'found.': 0.16; 'managed,': 0.16; 'mats': 0.16; 'o1bigtenor':
0.16; 'reason.': 0.16; 'subject:running': 0.16; 'to:name:mats
wichmann': 0.16; 'url:peps': 0.16; 'wichmann': 0.16; 'wrote:':
0.16; 'python': 0.16; 'subject:Help': 0.17; 'subject:issues':
0.19; 'cc:addr:python.org': 0.20; 'version': 0.23; 'install':
0.23; 'code': 0.23; 'command': 0.23; 'installed': 0.23; 'run':
0.23; '(and': 0.25; 'cc:2**0': 0.25; 'seems': 0.26; 'cover': 0.26;
'matt': 0.26; 'creating': 0.27; 'done': 0.28; '>>>': 0.28; 'email
addr:python.org&gt;': 0.28; 'error': 0.29; 'whole': 0.30;
'approach': 0.31; 'module': 0.31; "doesn't": 0.32; 'question':
0.32; 'marked': 0.32; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'path': 0.33; 'able': 0.34; 'same':
0.34; 'package': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'trying': 0.35; 'yes,': 0.35;
'from:addr:gmail.com': 0.35; 'mon,': 0.36; 'source': 0.36;
'change': 0.36; "skip:' 10": 0.37; "it's": 0.37; 'setting': 0.39;
'list': 0.39; 'use': 0.39; 'neither': 0.39; 'want': 0.40;
'should': 0.40; 'sorry': 0.60; 'included': 0.61; 'policy': 0.62;
'point.': 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; 'skip:m 20': 0.63; 'mainly': 0.64;
'your': 0.64; 'let': 0.66; 'manager': 0.68; 'tools': 0.74;
'&quot;': 0.76; 'produces': 0.76; 'advise': 0.78; 'construction':
0.81; 'absolutely': 0.84; 'similarly': 0.84; 'situations,': 0.84;
'was,': 0.91; 'manager.': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1722890414; x=1723495214; darn=python.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=WmllSJK4BwIGnaKohECFFgCN7GTeXl4M9bcgT1lCZsI=;
b=lHGHSBXQal13eVn7phcLQvu4Sr2Bl9RfsrYQWNlyd7pUxO9fBPAeIf4zR8N/r0LPGy
Y65X+GaA3vlfuJTxPao1B2doDYFWFaWPUXTCuIL8/uSrOlrzjETcpH+hkeuRKXIDIYPX
qi7doqJ6Ak360Y8JFU6hE3B6d23B2MwQYQuTlxqukjN8T/DldF7R9fUyTw3zqQ8wQGuS
Ff/xNLJzCgm6T7lyJPihuJvWpqle3cNHm8qAa6bfuyrQ+ueUttf02MLXB3co3V/U1kJe
d9JdEav/CN5xD82EDjbiiJZTMLMoAQE0oh5ffZy9dJZx275HlH5xoVxTNUqxJ4nitMxD
8abQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1722890414; x=1723495214;
h=cc: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=WmllSJK4BwIGnaKohECFFgCN7GTeXl4M9bcgT1lCZsI=;
b=G/+xProTiZtWAtdEki9+JMlLSEQkPiIPQUSMuK/Z21cOEyCu3muU80BhFeQztdRgtv
/WuaACMjdLFaLzoqmfIInZjHFq4lrl9PREcWSPtisVItmBb/uP24krTS9fy7RMzjXWRQ
4vFg+X7MJksXgvFH3BxY8uMMIfwVc3gyFq1yOWUTODwwxUlDGn4gMI7i8OiIyQB2ttgk
84yW5Uqsy0m/eIPPbp0KFisQxgGqi369M+mEDyh+3j0H5nee9RoR53F0gru3c5kx4Y3i
17jGXsK5oIGZONTkugBwA0FgsyZhOvFLUCLq4b7mUBahyhm2jJ8YKRTSWsHgYeegMcXS
3ALw==
X-Gm-Message-State: AOJu0Yz2mFx44Alrz+tHfWGBTq3Mdl1mKDamdTjvEaXYgycwWTjCaXN9
9qWHUdvdTmQeNuRJ+nwZeH/DgMDim98kgaLZiJTWcftOeiH16ufmb/YLYpdTOhmGtA7wwLviBkY
QxvawzgsPEDXoeTD7PjlbjVizO8tsoA02ThU=
X-Google-Smtp-Source: AGHT+IFckwGrwok4mj6eYkBBaY3EW2nym8ZPaRd7NZoUwFEK9Xty5H5Bnr0MFosLQjbpQF6BWD5+eGYZQqFx3YFxiOQ=
X-Received: by 2002:a05:6512:2241:b0:530:ab76:9a58 with SMTP id
2adb3069b0e04-530bb3e0c29mr6882982e87.61.1722890413688; Mon, 05 Aug 2024
13:40:13 -0700 (PDT)
In-Reply-To: <9796ce7b-9ef7-4386-a79f-8ee3aa97d7bc@wichmann.us>
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: <CAPpdf58gQQ7Tpnuz7ogHaHoN2Te6h_K1reo2ZCiSWSm9qFechg@mail.gmail.com>
X-Mailman-Original-References: <CAPpdf5-D7kwCK=-kT9E7nZSxk_XqJtenMn08AngXEZjpairCSw@mail.gmail.com>
<6c8e722a-ff27-4979-b299-a25fdcac0036@DancesWithMice.info>
<CAPpdf58wNrm1n+M6uCH4CDazx-rTTnUjgt62vYaFGUw9QZL2Ng@mail.gmail.com>
<9e360cba-5774-4676-a025-810e655f0918@DancesWithMice.info>
<CAPpdf58z=WY-BTcCYPgu+rnaRgkP7+CKt-WX-hwpmogs7KqG4Q@mail.gmail.com>
<65743dbe-948e-4dcb-a434-aedc108c11cc@wichmann.us>
<CAPpdf5_XpFHcqQ8MozaNPSxaJhty-i06Dpj=_b6fq8pcTvxGNQ@mail.gmail.com>
<9796ce7b-9ef7-4386-a79f-8ee3aa97d7bc@wichmann.us>
View all headers

Matt - if you would rather that you were not included in the address list -
- please advise.

On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann <mats@wichmann.us> wrote:

> On 8/5/24 06:48, o1bigtenor via Python-list wrote:
> > On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list <
> > python-list@python.org> wrote:
> >
> >> On 8/3/24 20:03, o1bigtenor via Python-list wrote:
> >>
> >>> My question was, is and will be (and the doc absolutely doesn't cover
> it)
> >>> how do I install a different version in the venv so that python 3.11.x
> on
> >>> the
> >>> system is not discombobulated by the python 3.12.x in the venv.
> >>> That python 3.12 would let me run the tools needed.
> >>> (Its the how to install the next version of python that I just haven't
> >> been
> >>> able to find information on - - - and I would be looking for
> information
> >>> on how to install on a *nix.)
> >>
> >> To get a different Python "in" the venv, you use the version you want in
> >> the construction of the venv. For example:
> >>
> >>
> >> $ python3.13 -m venv new_venv
> >> $ new_venv/bin/python --version
> >> Python 3.13.0b4
> >> $ source new_venv/bin/activate
> >>
> >>
> > "https://peps.python.org/pep-0668/ PEP 668, which prevents pip from
> > interacting with the OS installed python. This change has been done in
> red
> > hat and other distros too . . . "
> >
> > similarly your first command produces and error code for the same reason.
> >
> > Sorry - - - not my policy - - -
>
> What? Yes, the *system* pip should have some restrictions, if it's a
> system mainly managed by a package manager.
>
> Setting up a venv is the *expected* approach to such situations, and
> creating one doesn't cause any problems. You end up with a pip in the
> activated venv that's going to install to a different path (the one in
> the venv), and will not be marked as externally managed, as the package
> manager has no control over that path.
>
> That's the whole point. What error are you getting? The venv module is
> not the pip module so restrictions on the system pip have nothing to do
> with it.
>
> set up pyenv
activated a venv
trying to install python3.12 into it

1. download of python3.12 (blahblahblahetc).deb will not install
2. download of python3.12.tar.xz similarly will not install

(venv2) memyself@devuanbigbox:~$ pip install
/home/memyself/Downloads/Python-3.12.4.tar.xz
Processing ./Downloads/Python-3.12.4.tar.xz
ERROR: file:///home/memyself/Downloads/Python-3.12.4.tar.xz does not appear
to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

seems that I need a different version (installable as it were) of
python3.12
or my approach is all wrong!

Please advise

TIA

1

rocksolid light 0.9.8
clearnet tor