Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will stop at nothing to reach your objective, but only because your brakes are defective.


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 toolsMats Wichmann

1
Subject: Re: Help needed - - running into issues with python and its tools
From: Mats Wichmann
Newsgroups: comp.lang.python
Date: Mon, 5 Aug 2024 20:56 UTC
References: 1 2 3 4 5 6 7 8 9 10
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: mats@wichmann.us (Mats Wichmann)
Newsgroups: comp.lang.python
Subject: Re: Help needed - - running into issues with python and its tools
Date: Mon, 5 Aug 2024 14:56:13 -0600
Lines: 122
Message-ID: <mailman.16.1722891384.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>
<2066444d-2b5d-4b09-b1a8-8242c68591d1@wichmann.us>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de qMYVwTZWWoUS0CcjrFOflwcGF7Yqn5Wo+LmPcjuqS6sA==
Cancel-Lock: sha1:RSv3bw/zLx8LgCCB46qr5drkKf0= sha256:Npgrb4/5LVuhgonhC490QyhNiL5rdmz5V58lqe9Iqok=
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=F/YTqcNp;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'knows': 0.04; 'pip': 0.04;
'error:': 0.05; 'restrictions': 0.05; 'subject:python': 0.06;
'aug': 0.07; 'hopefully': 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; 'example:': 0.09; 'hat': 0.09;
'it)': 0.09; 'linux': 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; 'received:173': 0.13; 'cc:no real name:2**0': 0.14;
'possible,': 0.15; 'that.': 0.15; '2024': 0.16; 'doc': 0.16;
'found.': 0.16; 'indeed': 0.16; 'managed,': 0.16; 'mats': 0.16;
'micropython,': 0.16; 'o1bigtenor': 0.16; 'reason.': 0.16;
'subject:running': 0.16; 'to:addr:o1bigtenor': 0.16;
'to:name:o1bigtenor': 0.16; 'url:peps': 0.16; 'virtualenv': 0.16;
'wichmann': 0.16; 'wrote:': 0.16; 'python': 0.16; 'subject:Help':
0.17; "can't": 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; 'python,':
0.25; 'cc:2**0': 0.25; 'seems': 0.26; 'binary': 0.26; 'cover':
0.26; 'matt': 0.26; "wasn't": 0.26; 'creating': 0.27; 'done':
0.28; '>>>': 0.28; 'it,': 0.29; 'error': 0.29; 'header:User-
Agent:1': 0.30; 'whole': 0.30; 'approach': 0.31; 'module': 0.31;
'think': 0.32; "doesn't": 0.32; 'question': 0.32; 'marked': 0.32;
'python-list': 0.32; 'but': 0.32; 'there': 0.33; 'path': 0.33;
'able': 0.34; 'same': 0.34; 'package': 0.34; 'work.': 0.34;
'header:In-Reply-To:1': 0.34; 'trying': 0.35; 'yes,': 0.35;
'built': 0.36; 'mon,': 0.36; 'source': 0.36; 'change': 0.36;
"skip:' 10": 0.37; "it's": 0.37; 'hard': 0.37; 'received:192.168':
0.37; 'setting': 0.39; 'list': 0.39; 'use': 0.39; 'neither': 0.39;
'base': 0.40; 'something': 0.40; 'want': 0.40; 'should': 0.40;
'sorry': 0.60; 'included': 0.61; 'policy': 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; 'come':
0.62; 'ever': 0.63; 'skip:m 20': 0.63; 'mainly': 0.64; 'your':
0.64; 'let': 0.66; 'right': 0.68; 'manager': 0.68; 'recipe': 0.69;
'tools': 0.74; 'produces': 0.76; 'construction': 0.81;
'absolutely': 0.84; 'plugin,': 0.84; 'similarly': 0.84;
'situations,': 0.84; 'was,': 0.91; 'manager.': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id
:date:mime-version:subject:to:cc:references:from:in-reply-to
:content-type:content-transfer-encoding; s=sasl; bh=lx2HoD6giV+d
hhFgCtt8Xpld/DmgIJ3AHCDt3HzgiEY=; b=F/YTqcNpASDPm7Ztzueh1iZAX1oL
uk50VU29XY9JnACl0Qn4U2Y3CY/J7OZkJbz2wrMVqYOQxeJOD4nHmvpi+5E62lb7
nEZSCcV6BUUZTmgzg/5ZTCCS0hFjcILRxBtebqr3Ju55jgoGEe784Fw3XE0przUE
5ZZBLQdLsSIcU3U=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=wichmann.us;
h=message-id:date:mime-version:subject:to:cc:references:from:in-reply-to:content-type:content-transfer-encoding;
s=2018-07.pbsmtp; bh=+ohGgmahCljKflUHHSqsBuPyQ4bPiK63owLpGiUx3VY=;
b=GvNEVndRJmECg+dUyUCnZNIjLhK25kK+MLJRJvbGrHxzMm/5fJSHNhDUDzxDiSPyDoK8j8wYlBgbpl5EasTpCOpn1Q3XHAnqPGV+XlG62VElmBYZJHEnACbn9qtEkwpZGw5KJsVjwUB2oRsh3C1395kGhYBOz2KnqCvsy7DF/CQ=
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=mats@wichmann.us; keydata=
xsDiBD9xp6oRBAC1vd3YI8Gcr1CxpV1gldNQu0uQsNaICDk+Ai3+R163s/P83JOYG+SBEA3P
v7iZx70qpQ3RzP7KrjF1Nm6j0em9ccUX2fPQUCAxXw5Hiq7CSMiwQQZRI6shcnyMh9XTKViT
WK5MrKDyvjDEn7epjKzKwPS5SG039l6XaOKU0A4uGwCgsNqUQqC0gMMcbKlJV8ql58iKmbMD
/ii8FPQrXmyS/FnsPs7UddV5qMHKm7NUH5oiKuMVyakInRyq9iIxuu3D4Ec6mWRKcGsjmIkW
HXCSz0aefs6dsqNqpU54cYioJ3wP5LzHK7oclgJPryVt5Qezbdutf8SQf8gVkaNIlkxwGUzi
bKTZ6CHzwlz9nNgeel0XPUcZzFxGA/4paeCg2rMSVuAhUQbsLYHu4XzTs9P16zaXkrtxc4m5
b+BF5xsLgTpyO5l859XudS2Gp+7/Y37dAU4QlyGGOboWmF1y9U5DnzBwG8ghsnym+ga58MJh
LdRdQQ6xQolCpEXOuzm40f2r5uMxF3KOJ7WpIPuGAkeCPru9BmlATH+zOs0gTWF0cyBXaWNo
bWFubiA8bWF0c0B3aWNobWFubi51cz7CYQQTEQIAIQIbAwYLCQgHAwIDFQIDAxYCAQIeAQIX
gAUCT0VyZwIZAQAKCRDAMaCQc9hUxiZBAJ9cWziGp7hVfsu5T+cQptc3rLNndQCgrZh8u5LW
BfJ5e/Y+3PwZ8UEm+ELOwE0EP5is8BAEAMtwzcA8TYf5UTjDMgwcSNoErTc9ag+IX05QFgL8
aF8sfJRv5atcitqQy0gSIsOzI+L/AFdPN/+QQI3dL1tCq14t32KPDtigDhzm6jVPXX5z+V9u
xnD8XTp+ZvNcWoHXjViM8aXeLLEiCpiVCho307h3XShvqoKINWRQWeAsKKDDAAMFA/48zaey
wiiEyvI0meJ1KkNHxdLP0yLODr1WV6j9xkPkLWOaIDw7dlwEOlF1N1YtZ2wa0p1wsttdIbIx
ffgwXmcH4zrdxUIMz3U0BqYzk5H+5cYFXECXTFVOmweS+JECYMj80PjRoKCO1eVO1N30zksB
36NnhZWPRWIhjK3ZarIYH8JGBBgRAgAGBQI/mKzwAAoJEMAxoJBz2FTG6VEAoKDYHfDp5Q3q
PuPvPahCE9HsXMgAAJ9INTqcLSJrOfyJ8q95nBO1T26H2Q==
In-Reply-To: <CAPpdf58gQQ7Tpnuz7ogHaHoN2Te6h_K1reo2ZCiSWSm9qFechg@mail.gmail.com>
X-Pobox-Relay-ID: 2869B868-536D-11EF-984E-BF444491E1BC-81526775!pb-smtp20.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: <2066444d-2b5d-4b09-b1a8-8242c68591d1@wichmann.us>
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>
<CAPpdf58gQQ7Tpnuz7ogHaHoN2Te6h_K1reo2ZCiSWSm9qFechg@mail.gmail.com>
View all headers

On 8/5/24 14:39, o1bigtenor wrote:
> 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
> <mailto: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 <mailto: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/
> <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!

you can't install Python "into" a venv.

you use a version of Python as the base when *creating* a venv, the venv
will use the same binary as the base python (symlinks if possible, as in
the Linux case), but with different paths.

Since you've already got pyenv, use it to build the version you want to
use - I think you said there wasn't a deb for 3.12 in your distro?
That's something like

pyenv install 3.12.4

that will use the build recipe it has... and hopefully work. Distro
Pythons sometimes have some strange setups that are hard to reproduce.
Pyenv knows how to build micropython, too, should it ever come to that.

If you indeed found a deb for the right Python, use apt to install it,
and then use *that* Python to create your venv.

If you have the pyenv-virtualenv plugin, you can ask it to make the
virtualenv for you, if pyenv built the Python

1

rocksolid light 0.9.8
clearnet tor