Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Stupidity, like virtue, is its own reward" -- William E. Davidsen


devel / comp.lang.python / Re: Request for assistance (hopefully not OT)

SubjectAuthor
o Re: Request for assistance (hopefully not OT)Chris Angelico

1
Re: Request for assistance (hopefully not OT)

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

  copy mid

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

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: Request for assistance (hopefully not OT)
Date: Tue, 17 May 2022 22:48:54 +1000
Lines: 107
Message-ID: <mailman.433.1652791747.20749.python-list@python.org>
References: <CAPpdf5-PftpedhnoonsJ_VsRec-WgZN-1HNP0QjTi7+gO=sbew@mail.gmail.com>
<CAPTjJmoo4XVpu5d9r=STzzr3HX=at0rD6j3rw9Zh79KPk7OCoQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de X0MmSAxvZhwCd8VM8O7vwQwiVNWQfkwj/gy4Qr2lMJMQ==
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=SKCCmy+2;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '3.7': 0.03; 'yet.': 0.04;
'2022': 0.05; '3.8': 0.05; 'kernel': 0.05; 'exit': 0.07; 'space,':
0.07; '(python': 0.09; 'debian': 0.09; 'depend': 0.09; 'linux':
0.09; 'pip.': 0.09; 'problem?': 0.09; 'python"': 0.09;
'subject:not': 0.09; 'uninstall': 0.09; '3.9': 0.16; 'chrisa':
0.16; 'directories': 0.16; 'executable': 0.16; 'found,': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'generally,': 0.16; 'matplotlib,': 0.16; 'numpy,': 0.16;
'o1bigtenor': 0.16; 'scipy,': 0.16; 'subject:assistance': 0.16;
'though:': 0.16; 'warning:': 0.16; 'wrote:': 0.16; 'python': 0.16;
'applications': 0.17; "can't": 0.17; 'figure': 0.19; 'libraries':
0.19; 'tue,': 0.19; 'to:addr:python-list': 0.20; 'issue': 0.21;
'version': 0.23; 'install': 0.23; 'installed': 0.23; 'run': 0.23;
'depends': 0.25; 'space': 0.26; 'else': 0.27; 'done': 0.28;
'thinking': 0.28; 'error': 0.29; 'packages': 0.31; 'deleted':
0.32; 'encountered': 0.32; 'to:name:python': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'skip:2 10': 0.32; 'but': 0.32;
'subject:for': 0.33; 'there': 0.33; 'script': 0.33; 'mean': 0.34;
'package': 0.34; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'trying': 0.35; 'definitely': 0.35;
'following': 0.35; 'from:addr:gmail.com': 0.35; 'request': 0.35;
'files': 0.36; 'errors': 0.36; 'system,': 0.36; 'using': 0.37;
"it's": 0.37; 'received:209.85': 0.37; 'directory': 0.37; 'file':
0.38; 'could': 0.38; 'put': 0.38; 'received:209': 0.39; 'safe':
0.39; 'setting': 0.39; 'subject:Request': 0.39; 'use': 0.39;
'on.': 0.39; 'exact': 0.40; 'program.': 0.40; 'something': 0.40;
'try': 0.40; 'should': 0.40; 'miss': 0.62; 'great': 0.63; 'copy':
0.63; 'your': 0.64; 'independent': 0.65; 'parts': 0.65; 'look':
0.65; 'prevent': 0.67; 'time,': 0.67; 'right': 0.68; 'adds': 0.69;
'discussing': 0.69; 'etc,': 0.69; 'manually': 0.69; 'skip:/ 10':
0.69; 'depending': 0.70; 'older': 0.70; 'free': 0.72; 'need,':
0.76; 'restore': 0.76; 'returned': 0.81; 'largest': 0.84; 'rid':
0.84; 'dependent': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=LbQJYmMkECpDzc7BsCo+MKheTpTRWzbnthLWfoQWD5A=;
b=SKCCmy+2/XCQ2+vRx8I95weE8saB6ZS+N1W3+w/qKA43/11yQaUqitWrR7JJQnsIdB
r2TpGZ6SkMhg+Bf5x0tEY7U1Ju1s5ftFa4r1Wn8Dcup0oiLZnjyOaphH3JvNQLF/1WAH
rzZH/Kmd+kCsRdv06LWy0NrKmyHvBMWOqyFhFWqEXLcJk27hdH03KSSUhEhJkmTWURuz
jntDIUG90rrX6eQqJwUti/f8PCUKb+ecKFc6hq5zlIJK9mobR9QBm+7XJ+D0ojrcF0sF
qRwrw4oqI9lKUbyGqv/XklsR5HylI+UjlObtQXnNEGVa5dK88cqn2rjKPBGMsy9QeDZQ
Va3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=LbQJYmMkECpDzc7BsCo+MKheTpTRWzbnthLWfoQWD5A=;
b=m0iOviJqNtVsp1TsanwYpDOB6bs74W+2QnrD+KHjatu9ceLHWkD13LONDLzd8jWYDv
/pFEthpUr3qpaLXghbDeNyGCSThQ3ue88cDrlGWGo3z3wkZOpT+VfH9zmfvrR/A3Kkwd
hbQtVVA67qrubPbUltEAv5De4lrF8xMCClHcsUsQ4T7eIdRbA5FrpDKH9xFWjW62k0o5
WOZpgCDVLBf+d4UsuZr4kpmiob7+Ru1KYjSpZ/DQ+s/1k4hwQ/J4EDBpzgvedKctdmzn
dPGqN7rEvp8gpGMXDsJvuasBcxGq9CPfMa8W4YuunqQ3hMed+sj6Ay5pZFGRI+K7/lGw
rsaQ==
X-Gm-Message-State: AOAM533BTYsG04uSrDn3Zgao3z3TZW72xKbp6N8b/cg2NdyFJD99Opc6
r59umd+ncH6fjJZpJ0DQ+EneBUC4Y37wL/8QBwNGKRFL
X-Google-Smtp-Source: ABdhPJzaEvogHf/uFxIsw7U+0go8CjapPPoR04au62TxV+NTi9ncgBqjAc0dHht05g8nfehG3Mx0vJlz6bbBxmmlsM0=
X-Received: by 2002:adf:f106:0:b0:20d:20a:96e8 with SMTP id
r6-20020adff106000000b0020d020a96e8mr12182961wro.495.1652791745512; Tue, 17
May 2022 05:49:05 -0700 (PDT)
In-Reply-To: <CAPpdf5-PftpedhnoonsJ_VsRec-WgZN-1HNP0QjTi7+gO=sbew@mail.gmail.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: <CAPTjJmoo4XVpu5d9r=STzzr3HX=at0rD6j3rw9Zh79KPk7OCoQ@mail.gmail.com>
X-Mailman-Original-References: <CAPpdf5-PftpedhnoonsJ_VsRec-WgZN-1HNP0QjTi7+gO=sbew@mail.gmail.com>
 by: Chris Angelico - Tue, 17 May 2022 12:48 UTC

On Tue, 17 May 2022 at 21:22, o1bigtenor <o1bigtenor@gmail.com> wrote:
>
> Greetings
>
> I was having space issues in my /usr directory so I deleted some
> programs thinking that the space taken was more an issue than having
> older versions of the program.
>
> So one of the programs I deleted (using rm -r) was python3.9.
> Python3.10 was already installed so I thought (naively!!!) that things
> should continue working.
> (Python 3.6, 3.7 and 3.8 were also part of this cleanup.)

Did you install Python 3.9 using apt? If so, you should definitely
have removed it using apt - if for no reason than to find out if
something's depending on it.

Generally, Linux systems have just one "system Python" that other
applications depend on. Any other installed version is completely
independent.

> So now I have problems.
>
> Following is the system barf that I get when I run '# apt upgrade'.
>
> What can I do to correct this self-inflicted problem?
>
> (running on debian testing 5.17

I presume 5.17 is the Linux kernel version? Depending on how
up-to-date your Debian Testing is, that should theoretically mean that
the system Python is 3.10, which would imply that it should have been
safe to remove 3.9... but only if you had done it with apt.

> Setting up python2.7-minimal (2.7.18-13.1) ...
> Could not find platform independent libraries <prefix>
> Could not find platform dependent libraries <exec_prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> /usr/bin/python2.7: can't open file
> '/usr/lib/python2.7/py_compile.py': [Errno 2] No such file or
> directory

Did you also use rm to get rid of Python 2.7?

> dpkg: error processing package python2.7-minimal (--configure):
> installed python2.7-minimal package post-installation script
> subprocess returned error exit status 2
> Setting up python3.9-minimal (3.9.12-1) ...
> update-binfmts: warning: /usr/share/binfmts/python3.9: no executable
> /usr/bin/python3.9 found, but continuing anyway as you request
> /var/lib/dpkg/info/python3.9-minimal.postinst: 51: /usr/bin/python3.9: not found
> dpkg: error processing package python3.9-minimal (--configure):
> installed python3.9-minimal package post-installation script
> subprocess returned error exit status 127
> dpkg: dependency problems prevent configuration of python3.9:
> python3.9 depends on python3.9-minimal (= 3.9.12-1); however:
> Package python3.9-minimal is not configured yet.
>
> dpkg: error processing package python3.9 (--configure):
> dependency problems - leaving unconfigured
> dpkg: dependency problems prevent configuration of python2.7:
> python2.7 depends on python2.7-minimal (= 2.7.18-13.1); however:
> Package python2.7-minimal is not configured yet.
>
> dpkg: error processing package python2.7 (--configure):
> dependency problems - leaving unconfigured
> dpkg: dependency problems prevent configuration of python3.9-dev:
> python3.9-dev depends on python3.9 (= 3.9.12-1); however:
> Package python3.9 is not configured yet.
>
> dpkg: error processing package python3.9-dev (--configure):
> dependency problems - leaving unconfigured
> . . .
> Errors were encountered while processing:
> python2.7-minimal
> python3.9-minimal
> python3.9
> python2.7
> python3.9-dev

So, yeah, you're definitely going to need to reinstate some parts of
Python to get this going.

If you can figure out which exact Python versions you need, it might
be possible to restore them manually. Download the packages from
packages.debian.org, then try to manually install them with dpkg, and
if that fails, unpack them and put the files into the right places.

It's going to be a pain. A lot of pain. And next time, use apt to
uninstall what apt installed :)

Something else to consider, though: It might not be Python that's
taking up all the space. On my system, /usr is dominated by /usr/lib
and /usr/local/lib, and while it might look like the pythonx.y
directories there are the large part, it's actually not Python itself
that's so big: it's other libraries, installed using either apt or
pip. So when you're trying to free up space, look to see whether you
have packages installed into every version of Python you have; the
largest directories in my python3.9/site-packages are scipy, plotly,
numpy, pandas, speech_recognition, matplotlib, and Cython - all great
tools, but if you have a copy for 3.9, a copy for 3.10, a copy for
3.11, etc, it adds up fast.

"Ten minutes with a hacksaw will save you thirty with a shovel"
-- Miss Pauling, discussing the art of uninstalling.... something

ChrisA

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor