Deutsch   English   Français   Italiano  
<mailman.1.1734170821.2912.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: "Peter J. Holzer" <hjp-python@hjp.at>
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Sat, 14 Dec 2024 10:56:57 +0100
Lines: 86
Message-ID: <mailman.1.1734170821.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me>
 <20241214095657.s3solqdmwulqqhvt@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="q73yrbdvrspxcspr"
X-Trace: news.uni-berlin.de pD/Cj0hfgNkp1lDjR0FJeQ2Wqk3xjD/2V+8UOJdU5h2Q==
Cancel-Lock: sha1:jcYCqpG6b8MLr3sTKbGjfqKSjOI= sha256:meieCz7yo9n6QG/64Yfzl9GTYxtYwGceGk/qcA8oS+A=
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; 'content-
 type:multipart/signed': 0.05; '(to': 0.07; 'subject:error': 0.07;
 'tests': 0.07; '"python"': 0.09; 'apparently': 0.09; 'content-
 type:application/pgp-signature': 0.09; 'filename:fname piece:asc':
 0.09; 'filename:fname piece:signature': 0.09;
 'filename:fname:signature.asc': 0.09; 'libraries:': 0.09;
 'subject:python': 0.10; '"creative': 0.16; '__/': 0.16;
 'challenge!"': 0.16; 'default.': 0.16; 'directory.': 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; 'invoke': 0.16; 'reality.': 0.16; 'skip:h 40': 0.16;
 'stross,': 0.16; 'url-ip:212.17.106.129/32': 0.16; 'url-
 ip:212.17.106/24': 0.16; 'url-ip:212.17/16': 0.16; 'url:hjp':
 0.16; '|_|_)': 0.16; 'wrote:': 0.16; 'python': 0.16; 'instead':
 0.17; 'uses': 0.19; 'it?': 0.19; 'name.': 0.19; 'to:addr:python-
 list': 0.20; "i'd": 0.24; 'idea': 0.24; 'cannot': 0.25; 'object':
 0.26; 'sense': 0.28; 'think': 0.29; 'error': 0.29; 'python-list':
 0.32; 'but': 0.32; 'header:In-Reply-To:1': 0.34; 'able': 0.34;
 'mean': 0.34; 'running': 0.35; 'trying': 0.35; 'following': 0.35;
 "it's": 0.37; 'directory': 0.37; 'example': 0.37; 'file': 0.38;
 'way': 0.38; 'use': 0.39; 'handle': 0.39; 'shared': 0.39; 'file:':
 0.40; 'try': 0.40; 'should': 0.40; 'here': 0.63; 'tool': 0.65;
 'touch': 0.65; 'years': 0.65; 'received:userid': 0.66; 'that,':
 0.68; 'acceptance': 0.69; 'skip:/ 10': 0.69; 'skip:* 10': 0.73;
 'choice': 0.76; 'received:at': 0.84; 'subject:over': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <vjh2mh$3bu1o$1@dont-email.me>
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: <20241214095657.s3solqdmwulqqhvt@hjp.at>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
Bytes: 7319


--q73yrbdvrspxcspr
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2024-12-13 11:36:01 +0100, aotto1968 via Python-list wrote:
> it's a shame...
> almost every tool I touch that uses "python" in some way has some
> configuration error because apparently a __private__ python installation
> __isn't__ properly "understood".
>=20
> -> I think after ~30 years *python* should be able to handle a shared-lib=
rary proper __or__ switch to a *static-build* by default.
>=20
> -> example here is the "mono-build" with the following installation.
>=20
> make[1]: Verzeichnis =E2=80=9EHOME/src/mono.git/acceptance-tests=E2=80=9C=
 wird betreten
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading sha=
red
> libraries: libpython3.12d.so.1.0: cannot open shared object file: No such
> file or directory

What is HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3 and why is
HOME/src/mono.git/acceptance-tests trying to use it?

[...]
> make[1]: Verzeichnis =E2=80=9EHOME/src/mono.git/acceptance-tests=E2=80=9C=
 wird verlassen
> [debug]dev1usr@linux02:~/src/mono.git> ldd HOME/ext/x86_64-suse-linux-gnu=
/debug/bin/python3
>         linux-vdso.so.1 (0x00007ffd18e9a000)
>         libpython3.12d.so.1.0 =3D> HOME/ext/x86_64-suse-linux-gnu/debug/l=
ib64/libpython3.12d.so.1.0 (0x00007f9c5d374000)
>         libpthread.so.0 =3D> /lib64/libpthread.so.0 (0x00007f9c5d350000)
>         libdl.so.2 =3D> /lib64/libdl.so.2 (0x00007f9c5d349000)
>         libutil.so.1 =3D> /lib64/libutil.so.1 (0x00007f9c5d345000)
>         libm.so.6 =3D> /lib64/libm.so.6 (0x00007f9c5d1f9000)
>         libc.so.6 =3D> /lib64/libc.so.6 (0x00007f9c5d002000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007f9c5dab4000)

So HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3 does find
HOME/ext/x86_64-suse-linux-gnu/debug/lib64/libpython3.12d.so.1.0 if you
invoke it from the shell (to confirm that, try actually invoking it
instead of running ldd on it), but not when it's called from whatever
make is doing in the acceptance-tests directory.

So it might be because it's in a different directory ("HOME/ext/..." is
a relative path. That will not work in a different directory. Also
"HOME" is a strange choice for a directory name. Did you mean $HOME?) or
because the acceptance tests set up their own environment.

I'd test the first idea first. Cd into
HOME/src/mono.git/acceptance-tests and try to invoke
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3 there.

        hp

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

--q73yrbdvrspxcspr
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmddVmMACgkQ8g5IURL+
KF01EhAAh1P7PRabv8pDWVNowLB5xxy9J7esqHcdMaleIa0TBNN2DnsVaVBLPAkH
FOOm8gLQzC82Ia810NmUlM2QcK7OmnpMg62SrDX6+y1+nNLACdwSEFqyP7g/bCJQ
w0eogtIhu2ZDDz8/rdMBIPSI+P/JNQuxJuDUFcLDzw6LJe3Fn63FqJQ/euV2YyKx
mcnrMbwI7mw4FEcmE9luOmmnBrjjGwFJjA857IKvWnAAMGuyjm3WF1S3wp+bE+gI
0HEhya13T4M67KTZpUuRjDzUh8KGYhwtALv38B7+8dHEmBgQhQlrA4iX0gYni0fb
IMNG84w6qMrsfg2nz2usatdDh0KNmaphZTiPR9oxjMQwD9FKSHLpyQVpPfPQislj
Ck0UbM3fdInYqAOvnVxgixI3AEwJb98xLacGCV0NvRyAEaYPL3qNIW8ryg9w5rT7
pycznGiMACFVFMIsYxluCcBx8HS7aBYtjvHksXkKUSq20vlC/McJEAZW5cXxvBZ0
mpcqzTrmY5+aPRHmipzXPRsNAF6Bnp+N/90FjQknF8FsR5kQyrM1z+Xd3jUKJLUg
6I2M2UwRLhiMYhqFWPy5pq46AmkT/wbgosWhag5J9ECyZsXENxeK8JCeIyn6BlDL
ZTWxMOzkWvLk02lwNHDcP975LdGfOjrVESdnaFncnHCZhekNtfc=
=nPgR
-----END PGP SIGNATURE-----

--q73yrbdvrspxcspr--