Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #147: Party-bug in the Aloha protocol.


comp / comp.lang.python / Re: Terminal Emulator (Posting On Python-List Prohibited)

SubjectAuthor
* Re: Terminal Emulator (Posting On Python-List Prohibited)Peter J. Holzer
`- Re: Terminal Emulator (Posting On Python-List Prohibited)Gordinator

1
Subject: Re: Terminal Emulator (Posting On Python-List Prohibited)
From: Peter J. Holzer
Newsgroups: comp.lang.python
Date: Mon, 20 May 2024 09:58 UTC
References: 1 2 3 4 5
Attachments: signature.asc (application/pgp-signature)
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-python@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: Terminal Emulator (Posting On Python-List Prohibited)
Date: Mon, 20 May 2024 11:58:59 +0200
Lines: 96
Message-ID: <mailman.40.1716199148.2909.python-list@python.org>
References: <20240518151913.w5qqsw67gndy57ry@hjp.at>
<0A01893C-85EC-4B50-BCDB-BCA5133C6536@barrys-emacs.org>
<CANc-5Uysn3FPqJn0wRBLXJuoO=6mH6hmEYAtKBkZgYUiQZpg6A@mail.gmail.com>
<ac8bec20-ae1c-4344-9a41-2b860d606540@roelschroeven.net>
<20240520095859.zu5oijf7pusksknp@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="qp3b4lp4gnlnrmel"
X-Trace: news.uni-berlin.de XW8JrwF4+8iwNRZqfTpEMQt69H8Fy1emzIaeLWcg6wOQ==
Cancel-Lock: sha1:anU64XqYGamxZidUtiaHPhWycsE= sha256:j8x24VjNnMPd48XnTDNhWCwdx+sLt+eIkBufzh6xH4k=
Return-Path: <hjp-python@hjp.at>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'content-
type:multipart/signed': 0.05; 'error:': 0.05; 'pep': 0.07;
'telling': 0.07; 'content-type:application/pgp-signature': 0.09;
'debian': 0.09; 'fedora': 0.09; 'filename:fname piece:asc': 0.09;
'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'pip.': 0.09; 'roel': 0.09;
'schroeven': 0.09; 'subject:Python': 0.12; '"creative': 0.16;
'+0200,': 0.16; '--user': 0.16; '668': 0.16; '__/': 0.16;
'challenge!"': 0.16; 'easiest': 0.16; 'from:addr:hjp-python':
0.16; 'from:addr:hjp.at': 0.16; 'from:name:peter j. holzer': 0.16;
'hjp@hjp.at': 0.16; 'holzer': 0.16; 'indeed': 0.16; 'installed.':
0.16; 'montanaro': 0.16; 'os,': 0.16; 'python3': 0.16; 'reality.':
0.16; 'root.': 0.16; 'schreef': 0.16; 'skip:~ 30': 0.16;
'stross,': 0.16; 'sudo': 0.16; 'url-ip:212.17.106/24': 0.16; 'url-
ip:212.17/16': 0.16; 'url:hjp': 0.16; 'useful.': 0.16; '|_|_)':
0.16; 'wrote:': 0.16; 'python': 0.16; 'installing': 0.19; 'to:addr
:python-list': 0.20; 'maybe': 0.22; 'install': 0.23; 'installed':
0.23; 'run': 0.23; 'tried': 0.26; 'bit': 0.27; 'output': 0.28;
'sense': 0.28; 'environment': 0.29; 'packages': 0.31; 'python-
list': 0.32; 'but': 0.32; 'same': 0.34; "didn't": 0.34; 'package':
0.34; 'header:In-Reply-To:1': 0.34; 'trying': 0.35; 'work,': 0.36;
'using': 0.37; "it's": 0.37; 'could': 0.38; 'this,': 0.39; 'use':
0.39; 'block': 0.39; 'try': 0.40; 'received:212': 0.62; 'your':
0.64; 'wish': 0.66; 'received:userid': 0.66; 'exactly': 0.68;
'skip:/ 30': 0.69; 'url-ip:212/8': 0.69; 'contact': 0.70; 'you.':
0.71; 'note:': 0.71; 'risk': 0.71; 'virtual': 0.71;
'subject:List': 0.71; 'manage': 0.73; 'breaking': 0.78; 'admit':
0.84; 'install.': 0.84; 'provider.': 0.84; 'received:at': 0.84;
'subject:Posting': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <ac8bec20-ae1c-4344-9a41-2b860d606540@roelschroeven.net>
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: <20240520095859.zu5oijf7pusksknp@hjp.at>
X-Mailman-Original-References: <20240518151913.w5qqsw67gndy57ry@hjp.at>
<0A01893C-85EC-4B50-BCDB-BCA5133C6536@barrys-emacs.org>
<CANc-5Uysn3FPqJn0wRBLXJuoO=6mH6hmEYAtKBkZgYUiQZpg6A@mail.gmail.com>
<ac8bec20-ae1c-4344-9a41-2b860d606540@roelschroeven.net>
View all headers

On 2024-05-20 00:26:03 +0200, Roel Schroeven via Python-list wrote:
> Skip Montanaro via Python-list schreef op 20/05/2024 om 0:08:
> > > Modern debian (ubuntu) and fedora block users installing using pip.
> >
> > Even if you're telling it to install in ~/.local? I could see not allowing
> > to run it as root.
>
> I assumed pip install --user would work, but no. I tried it (on Debian 12
> (bookworm)):
>
> > $ pip install --user docopt
> > error: externally-managed-environment
> >
> > × This environment is externally managed
> > ╰─> To install Python packages system-wide, try apt install
> >     python3-xyz, where xyz is the package you are trying to
> >     install.
> >
> >     If you wish to install a non-Debian-packaged Python package,
> >     create a virtual environment using python3 -m venv path/to/venv.
> >     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
> >     sure you have python3-full installed.
> >
> >     If you wish to install a non-Debian packaged Python application,
> >     it may be easiest to use pipx install xyz, which will manage a
> >     virtual environment for you. Make sure you have pipx installed.
> >
> >     See /usr/share/doc/python3.11/README.venv for more information.
> >
> > note: If you believe this is a mistake, please contact your Python
> > installation or OS distribution provider. You can override this, at the
> > risk of breaking your Python installation or OS, by passing
> > --break-system-packages.
> > hint: See PEP 668 for the detailed specification.
>
> Exactly the same output for sudo pip install.

This message (quoted in all its glory) is too long to be useful. The
important bit is at the end:

> > You can override this, at the risk of breaking your Python
> > installation or OS, by passing --break-system-packages.

(I admit I didn't see this the first time I got this message)

python3 -m pip install --user --break-system-packages <packagename>
does indeed install into ~/.local/lib/python3.XX/site-packages.

This inconvenient, but otoh I have accidentally installed packages into
~/.local in the past, so maybe it's good to make that more explicit.

hp

--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"

Attachments: signature.asc (application/pgp-signature)
Subject: Re: Terminal Emulator (Posting On Python-List Prohibited)
From: Gordinator
Newsgroups: comp.lang.python
Organization: usenet-news.net
Date: Mon, 20 May 2024 18:43 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!border-1.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.netnews.com!s1-3.netnews.com!peer01.iad!feed-me.highwinds-media.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx03.ams4.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Terminal Emulator (Posting On Python-List Prohibited)
Newsgroups: comp.lang.python
References: <20240518151913.w5qqsw67gndy57ry@hjp.at>
<0A01893C-85EC-4B50-BCDB-BCA5133C6536@barrys-emacs.org>
<CANc-5Uysn3FPqJn0wRBLXJuoO=6mH6hmEYAtKBkZgYUiQZpg6A@mail.gmail.com>
<ac8bec20-ae1c-4344-9a41-2b860d606540@roelschroeven.net>
<20240520095859.zu5oijf7pusksknp@hjp.at>
<mailman.40.1716199148.2909.python-list@python.org>
Content-Language: en-US
From: gordinator@gordinator.org (Gordinator)
In-Reply-To: <mailman.40.1716199148.2909.python-list@python.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 60
Message-ID: <1RM2O.83519$qrU9.62506@fx03.ams4>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Mon, 20 May 2024 18:43:09 UTC
Organization: usenet-news.net
Date: Mon, 20 May 2024 19:43:08 +0100
X-Received-Bytes: 3630
X-Original-Bytes: 3441
View all headers

On 20/05/2024 10:58, Peter J. Holzer wrote:
> On 2024-05-20 00:26:03 +0200, Roel Schroeven via Python-list wrote:
>> Skip Montanaro via Python-list schreef op 20/05/2024 om 0:08:
>>>> Modern debian (ubuntu) and fedora block users installing using pip.
>>>
>>> Even if you're telling it to install in ~/.local? I could see not allowing
>>> to run it as root.
>>
>> I assumed pip install --user would work, but no. I tried it (on Debian 12
>> (bookworm)):
>>
>>> $ pip install --user docopt
>>> error: externally-managed-environment
>>>
>>> × This environment is externally managed
>>> ╰─> To install Python packages system-wide, try apt install
>>>     python3-xyz, where xyz is the package you are trying to
>>>     install.
>>>
>>>     If you wish to install a non-Debian-packaged Python package,
>>>     create a virtual environment using python3 -m venv path/to/venv.
>>>     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
>>>     sure you have python3-full installed.
>>>
>>>     If you wish to install a non-Debian packaged Python application,
>>>     it may be easiest to use pipx install xyz, which will manage a
>>>     virtual environment for you. Make sure you have pipx installed.
>>>
>>>     See /usr/share/doc/python3.11/README.venv for more information.
>>>
>>> note: If you believe this is a mistake, please contact your Python
>>> installation or OS distribution provider. You can override this, at the
>>> risk of breaking your Python installation or OS, by passing
>>> --break-system-packages.
>>> hint: See PEP 668 for the detailed specification.
>>
>> Exactly the same output for sudo pip install.
>
> This message (quoted in all its glory) is too long to be useful. The
> important bit is at the end:
>
>>> You can override this, at the risk of breaking your Python
>>> installation or OS, by passing --break-system-packages.
>
> (I admit I didn't see this the first time I got this message)
>
> python3 -m pip install --user --break-system-packages <packagename>
> does indeed install into ~/.local/lib/python3.XX/site-packages.
>
> This inconvenient, but otoh I have accidentally installed packages into
> ~/.local in the past, so maybe it's good to make that more explicit.
>
> hp
>

Perhaps an alias like so:

$ alias 'pip install'='pip install --user --break-system-packages'

Would work here? Someone please advise if that is a good idea.

1

rocksolid light 0.9.8
clearnet tor