Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

English literature's performing flea. -- Sean O'Casey on P. G. Wodehouse


comp / comp.lang.python / Re: it's a shame... python error over error

SubjectAuthor
* it's a shame... python error over erroraotto1968
+* Re: it's a shame... python error over erroraotto1968
|`- Re: it's a shame... python error over erroraotto1968
+* Re: it's a shame... python error over errorBarry
|`* Re: it's a shame... python error over erroraotto1968
| `- Re: it's a shame... python error over errorMichael Torrie
+* Re: it's a shame... python error over errorPeter J. Holzer
|`* Re: it's a shame... python error over erroraotto1968
| +- Re: it's a shame... python error over errorChris Angelico
| `- Re: it's a shame... python error over errorMichael Torrie
+- Re: it's a shame... python error over errorMichael Torrie
+* Re: it's a shame... python error over erroraotto1968
|+- Re: it's a shame... python error over errorPeter J. Holzer
|+- Re: it's a shame... python error over errorGrant Edwards
|`- Re: it's a shame... python error over errorMichael Torrie
`* Re: it's a shame... python error over erroraotto1968
 `* Re: it's a shame... python error over erroraotto1968
  +* Re: it's a shame... python error over errorChris Angelico
  |`* Re: it's a shame... python error over erroraotto1968
  | +- Re: it's a shame... python error over errorChris Angelico
  | `* Re: it's a shame... python error over errorMichael Torrie
  |  `* Re: it's a shame... python error over erroraotto1968
  |   +- Re: it's a shame... python error over errorChris Angelico
  |   `- Re: it's a shame... python error over error (Posting On Python-List Prohibited)Lawrence D'Oliveiro
  +* Re: it's a shame... python error over errorMichael Torrie
  |+- Re: it's a shame... python error over erroraotto1968
  |`- Re: it's a shame... python error over erroraotto1968
  +- Re: it's a shame... python error over errorMichael Torrie
  +* Re: it's a shame... python error over errorChris Angelico
  |`- Re: it's a shame... python error over erroraotto1968
  `* Re: it's a shame... python error over errorMichael Torrie
   `- Re: it's a shame... python error over erroraotto1968

Pages:12
Subject: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 10:36 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: it's a shame... python error over error
Date: Fri, 13 Dec 2024 11:36:01 +0100
Organization: A noiseless patient Spider
Lines: 104
Message-ID: <vjh2mh$3bu1o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 13 Dec 2024 11:36:02 +0100 (CET)
Injection-Info: dont-email.me; posting-host="23d41c05675a617b44c2c1d1b1a1ed81";
logging-data="3536952"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tALFjDhD3F9GuLxDfd+E/+jol3nMEvo4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hE88TcrwRd0SWVJaN3t+uUblSwY=
Content-Language: en-US
View all headers

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".

-> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *static-build* by default.

-> example here is the "mono-build" with the following installation.

make[1]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird betreten
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
make[2]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird betreten
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
shared object file: No such file or directory
make[2]: Für das Ziel „install-exec-am“ ist nichts zu tun.
make[2]: Für das Ziel „install-data-am“ ist nichts zu tun.
make[2]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird verlassen
make[1]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ 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 => HOME/ext/x86_64-suse-linux-gnu/debug/lib64/libpython3.12d.so.1.0 (0x00007f9c5d374000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9c5d350000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f9c5d349000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f9c5d345000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9c5d1f9000)
libc.so.6 => /lib64/libc.so.6 (0x00007f9c5d002000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9c5dab4000)

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 10:44 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Fri, 13 Dec 2024 11:44:00 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <vjh35g$3bu1o$2@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Dec 2024 11:44:00 +0100 (CET)
Injection-Info: dont-email.me; posting-host="23d41c05675a617b44c2c1d1b1a1ed81";
logging-data="3536952"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0s47W/ZDHBDrrYRvTDAV9oBYL3PNHHno="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NBdWGLaMQyUAI922VSfis/dxWrg=
Content-Language: en-US
In-Reply-To: <vjh2mh$3bu1o$1@dont-email.me>
View all headers

On 13.12.24 11:36, aotto1968 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".
>
> -> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *static-build* by default.
>
> -> example here is the "mono-build" with the following installation.
>

1. The build is done with my user and the installation is done as root.
2. The setup proper find *my* python3 because my PATH etc is setup well.
3. root is an other environment and root does *not* have my environment.
4. root uses *my* python3 without *my* environment and is *not* able to find
*my* libpython3.12d.so.1.0
5. obviously the *python3* is *not* able to create the right environment from
the installation directory of the *python3* executable.

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 10:49 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Fri, 13 Dec 2024 11:49:11 +0100
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <vjh3f7$3bu1o$3@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me> <vjh35g$3bu1o$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 13 Dec 2024 11:49:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="23d41c05675a617b44c2c1d1b1a1ed81";
logging-data="3536952"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v7U/lhRHtN9olMEsQi/j5esIJtk/UUko="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:15Wr4hNXMjD4ZyZwPsyk2gIoYc8=
In-Reply-To: <vjh35g$3bu1o$2@dont-email.me>
Content-Language: en-US
View all headers

On 13.12.24 11:44, aotto1968 wrote:
> On 13.12.24 11:36, aotto1968 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".
>>
>> -> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *static-build* by
>> default.
>>
>> -> example here is the "mono-build" with the following installation.
>>
>
> 1. The build is done with my user and the installation is done as root.
> 2. The setup proper find *my* python3 because my PATH etc is setup well.
> 3. root is an other environment and root does *not* have my environment.
> 4. root uses *my* python3 without *my* environment and is *not* able to find
>    *my* libpython3.12d.so.1.0
> 5. obviously the *python3* is *not* able to create the right environment from
>   the installation directory of the *python3* executable.

even the `sudo -E make install` with "-E, --preserve-env" does help.

Subject: Re: it's a shame... python error over error
From: Barry
Newsgroups: comp.lang.python
Date: Fri, 13 Dec 2024 18:24 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: barry@barrys-emacs.org (Barry)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Fri, 13 Dec 2024 18:24:29 +0000
Lines: 28
Message-ID: <mailman.0.1734115968.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me>
<E8C75A2F-798A-4C99-93F9-1B8870C3AA8C@barrys-emacs.org>
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de 3qi5q7hoIl+aK0TMBabDnwV5P4q6EyYk/j61qA49dgGw==
Cancel-Lock: sha1:is3VDaQaARcbbSorAQuQ5XKntww= sha256:NrOEBFvrIgZmXdwohz/02/k0Br3mxIPSVomIP36kPco=
Return-Path: <barry@barrys-emacs.org>
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; 'debug': 0.07;
'subject:error': 0.07; 'cc:addr:python-list': 0.09; 'fedora':
0.09; 'from:addr:barry': 0.09; 'libraries:': 0.09;
'received:217.70': 0.09; 'received:217.70.178': 0.09;
'received:gandi.net': 0.09; 'received:mail.gandi.net': 0.09;
'subject:python': 0.10; 'cc:no real name:2**0': 0.14; 'barry':
0.16; 'found.': 0.16; 'from:addr:barrys-emacs.org': 0.16;
'message-id:@barrys-emacs.org': 0.16; 'python3': 0.16; 'skip:h
40': 0.16; 'wrote:': 0.16; 'cc:addr:python.org': 0.20; 'cannot':
0.25; 'cc:2**0': 0.25; 'object': 0.26; 'error': 0.29; 'dec': 0.31;
'python-list': 0.32; 'header:In-Reply-To:1': 0.34; 'directory':
0.37; 'example': 0.37; 'file': 0.38; 'setting': 0.39; 'shared':
0.39; 'file:': 0.40; 'try': 0.40; 'received:217': 0.67; 'skip:/
10': 0.69; 'subject:over': 0.84
In-Reply-To: <vjh2mh$3bu1o$1@dont-email.me>
X-Mailer: iPad Mail (22C152)
X-GND-Sasl: barry@barrys-emacs.org
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: <E8C75A2F-798A-4C99-93F9-1B8870C3AA8C@barrys-emacs.org>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
View all headers

> On 13 Dec 2024, at 15:54, aotto1968 via Python-list <python-list@python.org> wrote:
>
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file or directory

This is a debug build?

Try setting LD_LIBRARY_PATH to point at the folder that contains the .so.
Test with `ldd python3` which will show which .so libs python3 needs and if they are found.

This is what I see on Fedora 41 as an example of the output.

$ ldd /usr/bin/python3
linux-vdso.so.1 (0x0000ffffb8515000)
libpython3.13.so.1.0 => /lib64/libpython3.13.so.1.0 (0x0000ffffb7ea0000)
libc.so.6 => /lib64/libc.so.6 (0x0000ffffb7cd0000)
libm.so.6 => /lib64/libm.so.6 (0x0000ffffb7c20000)
/lib/ld-linux-aarch64.so.1 (0x0000ffffb84d0000)

Barry

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Fri, 13 Dec 2024 20:56 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Fri, 13 Dec 2024 21:56:54 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <vji72m$3ju1l$1@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me>
<E8C75A2F-798A-4C99-93F9-1B8870C3AA8C@barrys-emacs.org>
<mailman.0.1734115968.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 13 Dec 2024 21:56:55 +0100 (CET)
Injection-Info: dont-email.me; posting-host="23d41c05675a617b44c2c1d1b1a1ed81";
logging-data="3799093"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Zz6NhHFaMqr78uD5IjcN5Q0zCtUp/lNg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:15MikVOM5VZQuVTngtaeb4Zri5o=
In-Reply-To: <mailman.0.1734115968.2912.python-list@python.org>
Content-Language: en-US
View all headers

On 13.12.24 19:24, Barry wrote:
>
>
>> On 13 Dec 2024, at 15:54, aotto1968 via Python-list <python-list@python.org> wrote:
>>
>> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open shared object file: No such file or directory
>
> This is a debug build?
>
> Try setting LD_LIBRARY_PATH to point at the folder that contains the .so.
> Test with `ldd python3` which will show which .so libs python3 needs and if they are found.
>
> This is what I see on Fedora 41 as an example of the output.
>
> $ ldd /usr/bin/python3
> linux-vdso.so.1 (0x0000ffffb8515000)
> libpython3.13.so.1.0 => /lib64/libpython3.13.so.1.0 (0x0000ffffb7ea0000)
> libc.so.6 => /lib64/libc.so.6 (0x0000ffffb7cd0000)
> libm.so.6 => /lib64/libm.so.6 (0x0000ffffb7c20000)
> /lib/ld-linux-aarch64.so.1 (0x0000ffffb84d0000)
>
> Barry
>
>

the problem is *not* to setup an environment variable, the problem is that python is *not*
able to setup the *python* environment by it self.

Subject: Re: it's a shame... python error over error
From: Peter J. Holzer
Newsgroups: comp.lang.python
Date: Sat, 14 Dec 2024 09:56 UTC
References: 1 2
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: 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>
View all headers

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".
>
> -> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *static-build* by default.
>
> -> example here is the "mono-build" with the following installation.
>
> make[1]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird betreten
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
> 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 „HOME/src/mono.git/acceptance-tests“ 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 => HOME/ext/x86_64-suse-linux-gnu/debug/lib64/libpython3.12d.so.1.0 (0x00007f9c5d374000)
> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9c5d350000)
> libdl.so.2 => /lib64/libdl.so.2 (0x00007f9c5d349000)
> libutil.so.1 => /lib64/libutil.so.1 (0x00007f9c5d345000)
> libm.so.6 => /lib64/libm.so.6 (0x00007f9c5d1f9000)
> libc.so.6 => /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

--
_ | 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: it's a shame... python error over error
From: Michael Torrie
Newsgroups: comp.lang.python
Date: Sat, 14 Dec 2024 15:27 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: torriem@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Sat, 14 Dec 2024 08:27:29 -0700
Lines: 20
Message-ID: <mailman.2.1734190054.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me>
<E8C75A2F-798A-4C99-93F9-1B8870C3AA8C@barrys-emacs.org>
<mailman.0.1734115968.2912.python-list@python.org>
<vji72m$3ju1l$1@dont-email.me>
<5e184152-6b91-6c81-4df6-5c761e13c232@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de XkAPMN0p69VHO86rj7ABDwyooTy76N/7rtEscp+FzSsA==
Cancel-Lock: sha1:sjP9myCs3Rcwlbzu6hVYLkagdHI= sha256:tjw1Tp6pZYYppCGGT54zrhPrtKpXeTMOlEA2izULr48=
Return-Path: <torriem@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=A0VcH30Z;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.025
X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'influence': 0.07;
'subject:error': 0.07; 'python.': 0.08; '*not*': 0.09; 'received
:mail-pl1-x634.google.com': 0.09; 'subject:python': 0.10; '1:56':
0.16; 'paths': 0.16; 'python3': 0.16; 'reason.': 0.16;
'variable,': 0.16; 'wrote:': 0.16; 'problem': 0.16; 'python':
0.16; 'message-id:@gmail.com': 0.18; 'libraries': 0.19; 'pm,':
0.19; 'to:addr:python-list': 0.20; 'unable': 0.21; 'version':
0.23; 'seems': 0.26; 'again,': 0.26; "isn't": 0.27; 'bit': 0.27;
'environment': 0.29; 'header:User-Agent:1': 0.30; 'seem': 0.31;
'python-list': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'able': 0.34; 'package': 0.34;
'from:addr:gmail.com': 0.34; 'files': 0.36; 'received:192.168':
0.37; 'though': 0.37; 'way': 0.38; 'list': 0.39; 'use': 0.39;
'quite': 0.39; 'finding': 0.39; 'shared': 0.39; 'case.': 0.40;
'something': 0.40; 'in,': 0.60; 'search': 0.61; 'your': 0.64;
'process.': 0.65; 'right': 0.68; 'during': 0.69; 'manually': 0.69;
'skip:/ 10': 0.69; 'direct': 0.73; 'linking': 0.76; 'indicates':
0.84; 'itself.': 0.84; 'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1734190051; x=1734794851; darn=python.org;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=VlAGzBAgbiPiQw4U8THBrNGs02sW/Ssw0sUlQLb5raI=;
b=A0VcH30ZariKhLUXvI4YmI2NOakoGKe4y+CJpQT693qB7rfEafHEOsmZo88wrP5LxV
EntmGf8pjtZ9bu54hz2IdandCjBo6TSAeWPB+OPjFS0OthP7D8mJEBfSAvpz6U4DvTyN
Do5BYJPtT6HFJawbpWij4X+rxuzZUk31DwPou0LTE44bAbFDIxtbf80cBrb5fuoI8n0T
LcsyQlJ7m/8rf8fugceY73ZIbONJeqEiUQ4IxeiOkNzcOf2LT7S9ntkG86W3RvKBFXv2
2aURZHINmnpFYtV3APcbjcb2CKw+8q+YO/WM9quvzklXaJ9/vOlorcNUo61JhSktJFu5
wfxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1734190051; x=1734794851;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=VlAGzBAgbiPiQw4U8THBrNGs02sW/Ssw0sUlQLb5raI=;
b=qM6WMNgeEcSiFu4qDusM1lEVhiu1oHkJDMQsN5U1Gl9odL9mNr0gt2NVyhCpaaawT8
kvFTx2YTF0NCEtBjKaTprhwixpdz6WZuPCV69VSgRbF7l20CiMDcyaNtlWobHoNWrfj5
FmWp2GYuMR+C3EZS9oGXqW75dcZpLXLYBfXPDuzuR2RABGA2nuU+qqFIXHK+rstT6BJJ
n0Tz9yJm22+9heA/l5FRWRnrm79GwO8q5rAzOmB5odDmyy8mVczuMOq8Md34AKB0Kjmd
Xkf4ujTn0x1hVCf2akz+lIuVSH6Fcr03WklUdSBJBdUN53pvYJEANHdZm5DavDtcNahN
kdhQ==
X-Gm-Message-State: AOJu0YxCGitYql6dUPuLberVKdtvMtvhIXhgdqNq72joJtVuaW5mtktw
piYHqoaM3ziupZLPOHT1MMdEC8VWIAmANiDJUANjGRQKP92K+P0Fuqi+EjWYdmU=
X-Gm-Gg: ASbGnctJzmaFDXBoYt97gFIwtYWVSBMOEvhS6osM6RzPeXRqVZRtiovz3DXmp7N4dda
T5iOYBfbA7PVu06dkFus60r3rUCbtPHYfROQsjpieiPSH3FGEjFNHK1cqps2KV1E/MPZqCWrllw
SG7x8if6lLsVq9o+qjyG1mZHPOGN4mtKI4Pg9aZCidS63vR0tN1Iy6HOaNJzw9UeOZxODIJO79F
JFOCFhx48P/kpLoCnN3XIOBtEUBXSD7jPXKyt8eHZkTIUbhlPmCTETT0sWyHQ==
X-Google-Smtp-Source: AGHT+IFZ9k5Y1dLs8JdilpFJIB44N/eJgYS5jHd8yR2gH/0xYN6OdBgA7efyAVkwtmh17ucfJgLNLQ==
X-Received: by 2002:a17:903:234c:b0:215:431f:268b with SMTP id
d9443c01a7336-218929a177cmr34330955ad.1.1734190051491;
Sat, 14 Dec 2024 07:27:31 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <vji72m$3ju1l$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: <5e184152-6b91-6c81-4df6-5c761e13c232@gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<E8C75A2F-798A-4C99-93F9-1B8870C3AA8C@barrys-emacs.org>
<mailman.0.1734115968.2912.python-list@python.org>
<vji72m$3ju1l$1@dont-email.me>
View all headers

On 12/13/24 1:56 PM, aotto1968 via Python-list wrote:
> the problem is *not* to setup an environment variable, the problem is that python is *not*
> able to setup the *python* environment by it self.

You're mistaken in this case. Nothing you've posted indicates the
problem is in Python itself. Something isn't quite right with your
linker and the linker search paths. LD_LIBRARY_PATH is one way to force
the linker to use the correct search path.

Python has no direct influence over the linker search paths, other than
to list what shared libraries it is linked against, or to manually add
paths to the linker in /etc/ld.so.conf.d/ during package installation.
The ld.so linker is responsible for finding the files and linking them
in, not Python. In your case it seems unable to do so, for whatever
reason. Since your custom version of python3 does seem to link to the so
properly, it seems as though something isn't right in the environment of
the mono build process. Again, nothing to do with Python. The linker
isn't even getting to the bit where it links in libpython3.

Subject: Re: it's a shame... python error over error
From: Michael Torrie
Newsgroups: comp.lang.python
Date: Sat, 14 Dec 2024 15:30 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: torriem@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Sat, 14 Dec 2024 08:30:19 -0700
Lines: 17
Message-ID: <mailman.3.1734190224.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
<913f5f26-6a70-f91c-60df-f47e721fd70e@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de YaDRSSwFw8NGS2nn/afGFgegmCnTh97spMxV9gQ5TsMg==
Cancel-Lock: sha1:QRVvG3XmQRZwHcyeR/Xrou8RVd4= sha256:0ale8o9swywR2hGOP8wJ+KFoFCjM0qmhEV6hUpiTg3A=
Return-Path: <torriem@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=EXxJFGsm;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.007
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'scripts.': 0.07;
'subject:error': 0.07; 'tests': 0.07; "hasn't": 0.09;
'subject:python': 0.10; 'directory.': 0.16; 'expects': 0.16;
'holzer': 0.16; 'indeed': 0.16; 'invoke': 0.16; 'skip:h 40': 0.16;
'wrote:': 0.16; 'problem': 0.16; 'python': 0.16; 'message-
id:@gmail.com': 0.18; 'name.': 0.19; 'to:addr:python-list': 0.20;
'issue': 0.21; "i'd": 0.24; 'idea': 0.24; 'cannot': 0.25; 'error':
0.29; 'header:User-Agent:1': 0.30; 'am,': 0.31; 'python-list':
0.32; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'mean': 0.34; 'from:addr:gmail.com': 0.34; 'fix': 0.36; "it's":
0.37; 'directory': 0.37; 'received:192.168': 0.37; 'something':
0.40; 'try': 0.40; 'search': 0.61; 'his': 0.65; 'right': 0.68;
'acceptance': 0.69; 'choice': 0.76; 'indicates': 0.84;
'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1734190222; x=1734795022; darn=python.org;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=h7m1GIeHe+ndu/PZNnXyYCVS+yS2hOIxm0E5PHayHLo=;
b=EXxJFGsmnLlge2Ed8JU2y8F8aDLt/+5vDX1wIjtm/8KQP0eBqwBdO0BHUkDlBVFACK
gJGJWdK+fBjjFilhY9gIq7CwyqlgtV8cJmnEC7VMEBFjTZwy/Q2WTV8zPAMoA+6rNGsP
eI5T+Rvai7NPRWzbaRZ6CQ00ilgG7Zrt5WzrIgNQFdDZ278dHjgoQNu/WTriDBcKP7nl
5mupmMVc8BUxHje9BSsGKI8cD4JIqfVQwIqqGTPGuNIiOKwX24wNuHtXIZGg9oQBKOOC
YBNr1jf60ght9zXPNmkwewFExxnpuciKMmQhkPgE/dRNByCg0Y1VKVcmqLPuJXNe6APz
+LEg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1734190222; x=1734795022;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=h7m1GIeHe+ndu/PZNnXyYCVS+yS2hOIxm0E5PHayHLo=;
b=aRFlkWtarh9DiUZ/bSlxylnzVFh6uIOeM1UCujI0245kR3Df1q8W80wdA+8mnGubcm
8U2Fpq1IgdtPZHR+gwneVXrH704fmNcb8rfw2Q91HGjSg4JhlGSs+vMN6VWxCA20HLfF
ykQHdgO+i5qBmyr3S08p8UDMMmfLco/rD8r7FB32C4m8JQsJLd1AVAu9Xw9qxtGlV+uE
pwfw/cFjpcXYeY5hU80N9Kw//ymmZ7zIYBMr/UiHIIswXsJ2X5AKUX2XYGy3Ltrg0kXe
ftBG8ucOmEpwf9/YvdztoLcagMan7TDFI4cNF3gTXXAZa/jH619tealDL2t/rFbCUwQ9
9s2Q==
X-Gm-Message-State: AOJu0YxVuqPblJT26K5Dta9xHQAZpX/r2vpyiYLEY0EOk1dbC2Ckgd6B
/4fIObNIHlQYhqnXj996zGHUREEdq3HrQeYZZpydWCiYm5Gsay4dCNyhhb+Za7Q=
X-Gm-Gg: ASbGnctYKXLgaRx2v6i2mEoS5HiDxU6GHM/cDJXqdTFEEnz2syZNk7gsPJHyk6faXYh
qz/Pc1ZcE6U9rYocmuBJjN5qL1hzhaGTKPtkBFljlK+DR7YEgMu0B5RPYnI+/2biQUDMSsex4sP
7/pu5iG0vgmJx6pClD4Yw8CD0vev/WfvJw5qaST6LgIlXNK5sa28kfdiYnZXKsZnSXS3Aaw2iIq
SFl4NAIZXhPmfW25IK5MrbWJYqI5IIS2sdMRyu946AWnbQPUIfVegsZfY18WA==
X-Google-Smtp-Source: AGHT+IG9t5o4jKHvGHc5Cm0p8R/ZR5JaMB91+DzVOAolvjWsi1mBLDYbldEZsbymH8NSYbTIqK6k8A==
X-Received: by 2002:a17:90b:1c8b:b0:2ee:cbc9:d50b with SMTP id
98e67ed59e1d1-2f2901b2527mr3731769a91.4.1734190220527;
Sat, 14 Dec 2024 07:30:20 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <20241214095657.s3solqdmwulqqhvt@hjp.at>
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: <913f5f26-6a70-f91c-60df-f47e721fd70e@gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
View all headers

On 12/14/24 2:56 AM, Peter J. Holzer via Python-list wrote:
> 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.

Indeed something is not right with his ld.so search paths. The original
error report indicates the linker cannot even find the libpython so
file, so this cannot be a problem with Python since the linker hasn't
even found it. I don't see how he expects python to fix this
configuration issue magically for mono's build scripts.

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Sat, 14 Dec 2024 17:31 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Sat, 14 Dec 2024 18:31:22 +0100
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <vjkfda$3cjs$1@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
<mailman.1.1734170821.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 14 Dec 2024 18:31:23 +0100 (CET)
Injection-Info: dont-email.me; posting-host="ff4258e3736aeb46f8d99f1d49cf73b7";
logging-data="111228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Hp6l2BiKottOHAt+3YibPez+1ERR8SvM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZetM8atzQ9S73XbiRXlR7EZwq38=
In-Reply-To: <mailman.1.1734170821.2912.python-list@python.org>
Content-Language: en-US
View all headers

On 14.12.24 10:56, Peter J. Holzer wrote:
> 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".
>>
>> -> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *static-build* by default.
>>
>> -> example here is the "mono-build" with the following installation.
>>
>> make[1]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird betreten
>> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared
>> 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 „HOME/src/mono.git/acceptance-tests“ 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 => HOME/ext/x86_64-suse-linux-gnu/debug/lib64/libpython3.12d.so.1.0 (0x00007f9c5d374000)
>> libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9c5d350000)
>> libdl.so.2 => /lib64/libdl.so.2 (0x00007f9c5d349000)
>> libutil.so.1 => /lib64/libutil.so.1 (0x00007f9c5d345000)
>> libm.so.6 => /lib64/libm.so.6 (0x00007f9c5d1f9000)
>> libc.so.6 => /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
>

The CORE problem is that python3 works well in *my* environment but the
installation is done as root and root does not use *my* environment.

the mono build search for a working python3 and find *my*
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3
The build is fine but after switch to root for installation
> sudo make install
the root user call *my* python3 and fail.

Subject: Re: it's a shame... python error over error
From: Chris Angelico
Newsgroups: comp.lang.python
Date: Sat, 14 Dec 2024 19:12 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Sun, 15 Dec 2024 06:12:33 +1100
Lines: 10
Message-ID: <mailman.4.1734203567.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
<mailman.1.1734170821.2912.python-list@python.org>
<vjkfda$3cjs$1@dont-email.me>
<CAPTjJmos18QqD4cjefj2Uxj+VujkqK6Q2DWeAj_3rKvRNPPpRg@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de Frg/GAkAKNQifN7YJv7TdAQea1egQscDBjp9V7D2T2kw==
Cancel-Lock: sha1:KGzjQWds++gIVYFE7xLqXQhTeUg= sha256:lxPsaUXNM/w6GAgGg98hVDDcU+udxtNo+7tsKhm4qIA=
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=MRjk4lzL;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.07;
'sun,': 0.07; 'cc:addr:python-list': 0.09; 'subject:python': 0.10;
'cc:no real name:2**0': 0.14; 'problem.': 0.15; '*my*': 0.16;
'chrisa': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'over,': 0.16; 'python3': 0.16; 'wrote:': 0.16;
'problem': 0.16; 'python': 0.16; 'cc:addr:python.org': 0.20;
'problem,': 0.22; 'cc:2**0': 0.25; 'done': 0.28; 'environment':
0.29; 'dec': 0.31; 'message-id:@mail.gmail.com': 0.31; 'python-
list': 0.32; 'but': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'core': 0.34; 'from:addr:gmail.com':
0.34; "it's": 0.37; 'use': 0.39; 'your': 0.64; 'well': 0.65;
'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1734203565; x=1734808365; 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=UJpP5N6HHnNQbLNOtAzWgXbnJgVcRb2TcrVBrj/HJLA=;
b=MRjk4lzL8uA9JXk5x8doXugCBq15FYjcj6mJhTpDK3lV5t6TebzbAjO/mE3JyixXrG
es/2fWZpQVTGJQKeuCZH4952Bj1S2pbGhJ5sxkF5TUKBNjihAw5djnqM0xbk5pGu6e6A
rmO5GpLAY4VG89F+JaOaqrfGIYEkNjPlafyiP8m5QvAIb3DnR1n17B1GA6JyM2UBb6Va
O2fHiowl4BZgSHH7IPhKSxlWThBDoh3tjPgXzvQdnD4bF0mYCBjjWNbV3ByPuk5WA1EK
WfO7ERmf/ovjlstKIwD64NOM+6DsqsZjaQrbOvMD2X1NPzNCLaEBve1VXwVN3cEP+2h6
rsuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1734203565; x=1734808365;
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=UJpP5N6HHnNQbLNOtAzWgXbnJgVcRb2TcrVBrj/HJLA=;
b=Qvw3/zB9UYCmNuX1tzIXHXSspDorcQU1OApbW6DUZuXmZOgB+z59atR8mjmu9x9t+n
hwUAzbW3qVZ4AIoe/qJ4r9511gVkN8fkiOMALPuanmP/ErkhiQXEjpTY+RKHMIKxZPjs
IvJerhQCgMEEB/A5iCg8El8GItSrjMZgYGCBTSUSlEPWMpIodk0SMmxRTQPiRiB3KsqX
skoGTRfXtYV5G5aBEdpbgbBbq2ZGx2sITL7S5byZ+2OcvNRz/8wocXBkJNWD9cBIbl67
EbgjXLbRVhohH92hGxC1swW0ipoA5EJLrAsqqtfjr8AKUQpBL10ta0g7cgfCLLQeKggF
RI/Q==
X-Gm-Message-State: AOJu0Yx5+pgUBxFiQYf2OMAaSdUlzdc7M9Bc/Qj8uHhd+GKe/oo99YH7
lriUsl0KT80NayxY7+WDN7RheeEgVt6UUqPpxZvVPf/Wlk1aNhGfvwTq09itgjThGk9GHxJLTi8
vOYG2kVN7GbahmFAi6giMAoX8Cak9eA==
X-Gm-Gg: ASbGncuDvhzCCUjp75PfqsgekpouxksOA2eTlgwpaHp7jjzRJsXwj6dDN0lKlMRpb3l
CGtbw1D5eGBgdO68RC0P2F0ZyAfEzOYyRQuXsZmOTDUE=
X-Google-Smtp-Source: AGHT+IE0EOnIVtNFALpqp8p8S8g5tJCsIb+rVBoMQXQBQNfLiN3UXa6Le7fpBVWO+kMo6V0Wc0RW+oEuT5I2BAaTzBM=
X-Received: by 2002:a05:651c:1990:b0:302:4a61:8bd3 with SMTP id
38308e7fff4ca-302545206f8mr19405171fa.7.1734203564432; Sat, 14 Dec 2024
11:12:44 -0800 (PST)
In-Reply-To: <vjkfda$3cjs$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: <CAPTjJmos18QqD4cjefj2Uxj+VujkqK6Q2DWeAj_3rKvRNPPpRg@mail.gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
<mailman.1.1734170821.2912.python-list@python.org>
<vjkfda$3cjs$1@dont-email.me>
View all headers

On Sun, 15 Dec 2024 at 06:05, aotto1968 via Python-list
<python-list@python.org> wrote:
> The CORE problem is that python3 works well in *my* environment but the
> installation is done as root and root does not use *my* environment.
>

So, it's an environment problem, NOT a Python problem. You messed up
your installation. Start over, rebuild.

ChrisA

Subject: Re: it's a shame... python error over error
From: Michael Torrie
Newsgroups: comp.lang.python
Date: Sun, 15 Dec 2024 05:21 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: torriem@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Sat, 14 Dec 2024 22:21:20 -0700
Lines: 12
Message-ID: <mailman.6.1734240084.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
<mailman.1.1734170821.2912.python-list@python.org>
<vjkfda$3cjs$1@dont-email.me>
<ae6ff1fd-efbf-50b5-704d-3655828130d6@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de BggiA9HIH5pkLeoasyCbQALnjf94RIA5UlErWH9aNI6A==
Cancel-Lock: sha1:Sq2nuBBzCu1U5BgFQPFpaHNGM+E= sha256:mPf7DAdU76RMNqIaXfRMOGU7DUPy0sUPPk58eGKwJ9Y=
Return-Path: <torriem@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=h+YoSeGD;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.013
X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:error': 0.07;
'fail.': 0.09; 'python3.': 0.09; 'subject:python': 0.10; '*my*':
0.16; 'python3': 0.16; 'skip:h 40': 0.16; 'sudo': 0.16; 'wrote:':
0.16; 'problem': 0.16; 'python': 0.16; 'message-id:@gmail.com':
0.18; 'to:addr:python-list': 0.20; 'install': 0.23; 'done': 0.28;
'environment': 0.29; 'header:User-Agent:1': 0.30; 'am,': 0.31;
'python-list': 0.32; 'but': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'core': 0.34; 'from:addr:gmail.com':
0.34; 'running': 0.35; 'fine': 0.35; 'received:192.168': 0.37;
'use': 0.39; "that's": 0.39; 'developers': 0.39; 'something':
0.40; 'search': 0.61; 'your': 0.64; 'well': 0.65; 'subject:over':
0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1734240082; x=1734844882; darn=python.org;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=gYByIXW1QyYGy1j9LwdHrGq90O8N1vLN17rYAWFnuIM=;
b=h+YoSeGDgSpR7SGMPIXip5U7RsgjK/5+ubqBJqwnHs43CCakT5rSVgPFEgMg/C4D+L
crahVWJLqqABNzevNT8FZjgEI8KqusVcGYtqsAnWSyx4L8o0S8wDHpxczRO7akLZJGVt
i4w93B+lkQEvLA1YPUzV6jPATRrF0YnEIr/DFPUss4I5K5MhxKmM9UCPbjcNC4zMA3jj
F+dSfMImpz2N60exCmRpj9YhbLAv4ay1zS2bKNUR1rRRHQ7xQLe+6rCmQ4Q3MQfDQuRP
7IuhZcontTRwIatxeHpIVif9Z2Flspz7lCselWv9dPnUQBPEPpxWMFa8kGn23dZmqGUQ
OvEA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1734240082; x=1734844882;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=gYByIXW1QyYGy1j9LwdHrGq90O8N1vLN17rYAWFnuIM=;
b=Kvwo5bEC7Bz78qkiNk+rziAyTeE4lmRYpwyvhPwS8c2TGG4fbz8uKwdrqoc3EV5G+U
NWZUjxime2DdVBAWAt3VKvQl/pSnAIfAw4Paj5jeDWtwZEuiIFXximOf7ugtN80wz0de
fptvZWuc6tDUdZEZTsRb2pQK0Kgtq6Su4s5xUKLJ0LnOMszvAU3fn+p6NJ+szhMxQajs
GJsPNoVeGnQQR3MtMdaf6cugRo57qSI/rU34gGuGkI1j7IdmGIKJJpsVd9fFB2YWpcOs
7WyEsBQQfOvTvLUfPEN26mS7IErLT5Tk2xcIc6RnuUTOV5tAdE65RVBXLGruh6Embte6
odaQ==
X-Gm-Message-State: AOJu0YyNOcDuaMouqdZqbZokOKqN6FLpuDHoQ6oz20f//wqefPAq74tX
Asw5CyCSoyOX731PYEQ3spOQCGtOZU07rHI2eBFGdvuYTwQPk7qBv3dm1T4C/ak=
X-Gm-Gg: ASbGncuMluwyf4yHwVjPacj9Q53t2U7ZFMnAFvlUZCz/G5Rhs+EpQoHcQC74D1/gPpC
IzZ8w4TLcjHpkvQJDrwAlQ1l2YlHMFa8bYoWkYxJBENoUsilS0THVuJEc2rRVhBILufaemshTLy
LWgOjjlMqO0/6MGs+o9DvHRW6P1iqsmhrcFNxNHEBTG7XCw7zcP1dniVkj50HTUqm59Wume5gSH
jc2Qysb1Ie8F3HhfdSQmpUXVLHg1lld6dmQ1LEKc3TLSn+1LE3IshWynnLgug==
X-Google-Smtp-Source: AGHT+IG7/yQAOMvqTr35Crw4IYh7q1JLvQiGb35ssCq8LN9fZ5zA4n0SzVMWOWeZnJuciX3asSGKqg==
X-Received: by 2002:a17:90a:d410:b0:2ee:d397:1fef with SMTP id
98e67ed59e1d1-2f2901a948dmr4410008a91.6.1734240082330;
Sat, 14 Dec 2024 21:21:22 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <vjkfda$3cjs$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: <ae6ff1fd-efbf-50b5-704d-3655828130d6@gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<20241214095657.s3solqdmwulqqhvt@hjp.at>
<mailman.1.1734170821.2912.python-list@python.org>
<vjkfda$3cjs$1@dont-email.me>
View all headers

On 12/14/24 10:31 AM, aotto1968 via Python-list wrote:
> The CORE problem is that python3 works well in *my* environment but the
> installation is done as root and root does not use *my* environment.
>
> the mono build search for a working python3 and find *my*
> > HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3
> The build is fine but after switch to root for installation
> > sudo make install
> the root user call *my* python3 and fail.

mono build is failing even before you get to running your python3.
That's not something python developers can fix.

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Mon, 16 Dec 2024 07:08 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Mon, 16 Dec 2024 08:08:46 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <vjojlu$118vp$1@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 16 Dec 2024 08:08:46 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f4129ddcd4c5bd301f1422d40f1bb6a5";
logging-data="1090553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195qD+7udNPjE9YbNSvXJSVovTKd3ja2Tk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZmsHCWv1ItSP1dqu7WKPgqVgU0o=
Content-Language: en-US
In-Reply-To: <vjh2mh$3bu1o$1@dont-email.me>
View all headers

On 13.12.24 11:36, aotto1968 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".
>
> -> I think after ~30 years *python* should be able to handle a shared-library proper __or__ switch to a *static-build* by default.
>
> -> example here is the "mono-build" with the following installation.
>
> make[1]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird betreten
> HOME/ext/x86_64-suse-linux-gnu/debug/bin/python3: error while loading shared libraries: libpython3.12d.so.1.0: cannot open
> shared object file: No such file or directory
> make[2]: Für das Ziel „install-exec-am“ ist nichts zu tun.
> make[2]: Für das Ziel „install-data-am“ ist nichts zu tun.
> make[2]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ wird verlassen
> make[1]: Verzeichnis „HOME/src/mono.git/acceptance-tests“ 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 => HOME/ext/x86_64-suse-linux-gnu/debug/lib64/libpython3.12d.so.1.0 (0x00007f9c5d374000)
>         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9c5d350000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x00007f9c5d349000)
>         libutil.so.1 => /lib64/libutil.so.1 (0x00007f9c5d345000)
>         libm.so.6 => /lib64/libm.so.6 (0x00007f9c5d1f9000)
>         libc.so.6 => /lib64/libc.so.6 (0x00007f9c5d002000)
>         /lib64/ld-linux-x86-64.so.2 (0x00007f9c5dab4000)
>

If I read the answers I come to the conclusion that the "supporters" at python doesn't ever understand the problem.

Subject: Re: it's a shame... python error over error
From: Peter J. Holzer
Newsgroups: comp.lang.python
Date: Mon, 16 Dec 2024 15:30 UTC
References: 1 2 3
Attachments: signature.asc (application/pgp-signature)
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: hjp-python@hjp.at (Peter J. Holzer)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Mon, 16 Dec 2024 16:30:53 +0100
Lines: 55
Message-ID: <mailman.8.1734363061.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vjojlu$118vp$1@dont-email.me>
<20241216153053.abrlik3xykiq6tqe@hjp.at>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="77uwacozsxv7kufg"
X-Trace: news.uni-berlin.de I5252C4IQcyb/+iiFsDqMw2vo0+jNJK+UnenBEi72U5g==
Cancel-Lock: sha1:+pSjR2ttuiM3xxrsAPiHSk6DHlw= sha256:Uk51pfOjLJi/1R3I2Jo9pJFX7aX5EaW2Pj1miDVE34Q=
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; 'subject:error': 0.07; '"python"':
0.09; 'apparently': 0.09; 'content-type:application/pgp-
signature': 0.09; 'enough.': 0.09; 'filename:fname piece:asc':
0.09; 'filename:fname piece:signature': 0.09;
'filename:fname:signature.asc': 0.09; 'subject:python': 0.10;
'problem.': 0.15; '"creative': 0.16; '11:36,': 0.16; '__/': 0.16;
'challenge!"': 0.16; 'conclusion': 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; 'python".': 0.16; 'reality.':
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; 'uses': 0.19;
'to:addr:python-list': 0.20; 'language': 0.21; 'sense': 0.28;
'error': 0.29; "doesn't": 0.32; 'answers': 0.32; 'python-list':
0.32; 'but': 0.32; 'header:In-Reply-To:1': 0.34; '"the': 0.35;
'support.': 0.35; "it's": 0.37; 'way': 0.38; 'read': 0.38;
'quite': 0.39; 'paid': 0.61; 'come': 0.62; 'ever': 0.63;
'explained': 0.64; 'tool': 0.65; 'touch': 0.65; 'well': 0.65;
'received:userid': 0.66; 'discussing': 0.69; 'received:at': 0.84;
'subject:over': 0.84; 'supporters': 0.84
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <vjojlu$118vp$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: <20241216153053.abrlik3xykiq6tqe@hjp.at>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vjojlu$118vp$1@dont-email.me>
View all headers

On 2024-12-16 08:08:46 +0100, aotto1968 via Python-list wrote:
> On 13.12.24 11:36, aotto1968 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".
[...]
>
> If I read the answers I come to the conclusion that the "supporters" at python

We are not "the supporters at python". None of us is paid for doing
support. Most of us are just users of Python discussing the language and
helping each other when we can (some of us are also contributors to
Python).

> doesn't ever understand the problem.

Quite possibly, but in that case you haven't explained it well enough.

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: it's a shame... python error over error
From: Grant Edwards
Newsgroups: comp.lang.python
Date: Mon, 16 Dec 2024 19:06 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: grant.b.edwards@gmail.com (Grant Edwards)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Mon, 16 Dec 2024 14:06:56 -0500 (EST)
Lines: 11
Message-ID: <mailman.9.1734376017.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vjojlu$118vp$1@dont-email.me>
<4YBqDw3rJFznVFv@mail.python.org>
X-Trace: news.uni-berlin.de trbPH+BXHRR52FsumiPHSAIv2bn+Qc+26sRTbtQpaVfw==
Cancel-Lock: sha1:dEvEhi8Pa4Z/auBR8yq+P8+Zf6I= sha256:Tmdfk25YMYBvmpTnAuGEkBpaPe/XMXe4f+QlNEa7tzE=
Return-Path: <grant.b.edwards@gmail.com>
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.082
X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'subject:error': 0.07;
'subject:python': 0.10; 'problem.': 0.15; 'conclusion': 0.16;
'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards':
0.16; 'wrote:': 0.16; 'python': 0.16; 'grant': 0.17; 'to:addr
:python-list': 0.20; 'header:User-Agent:1': 0.30; "doesn't": 0.32;
'answers': 0.32; 'python-list': 0.32; 'from:addr:gmail.com': 0.34;
'definitely': 0.35; 'request': 0.35; 'read': 0.38; 'should': 0.40;
'come': 0.62; 'ever': 0.63; 'your': 0.64; 'manager': 0.68;
'message-id:invalid': 0.69; 'money': 0.71; 'demand': 0.75;
'subject:over': 0.84
User-Agent: slrn/1.0.3 (Linux)
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: <4YBqDw3rJFznVFv@mail.python.org>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vjojlu$118vp$1@dont-email.me>
View all headers

On 2024-12-16, aotto1968 via Python-list <python-list@python.org> wrote:

> If I read the answers I come to the conclusion that the "supporters"
> at python doesn't ever understand the problem.

You should definitely demand to speak to the manager and request your
money back.

--
Grant

Subject: Re: it's a shame... python error over error
From: Michael Torrie
Newsgroups: comp.lang.python
Date: Wed, 18 Dec 2024 04:30 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: torriem@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Tue, 17 Dec 2024 21:30:06 -0700
Lines: 9
Message-ID: <mailman.12.1734496211.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vjojlu$118vp$1@dont-email.me>
<a3e7faef-bddb-49aa-588f-3d7e546c734b@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de RIY4149VknAetqiFbXbITgfClT3UTF8dE47oSncw7tKQ==
Cancel-Lock: sha1:vq8RwXuZnl/WplrUyDKy9YY+HmY= sha256:lPei7I5aTXB8YVKpZOX1WQogHZIWauxTO577yIrdVpo=
Return-Path: <torriem@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=NbmjKg3u;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.071
X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'subject:error': 0.07;
'linux': 0.09; 'subject:python': 0.10; 'problem.': 0.15;
'conclusion': 0.16; 'wrote:': 0.16; 'problem': 0.16; 'python':
0.16; 'message-id:@gmail.com': 0.18; 'to:addr:python-list': 0.20;
"i've": 0.22; 'way.': 0.22; 'header:User-Agent:1': 0.30; 'seem':
0.31; 'am,': 0.31; "doesn't": 0.32; 'answers': 0.32; 'python-
list': 0.32; 'path': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.34;
'people': 0.36; 'could': 0.37; 'received:192.168': 0.37; 'read':
0.38; 'done.': 0.40; 'try': 0.40; 'sorry': 0.60; 'best': 0.61;
'search': 0.61; 'gave': 0.61; 'seen': 0.62; 'come': 0.62; 'ever':
0.63; 'feel': 0.63; 'years': 0.65; 'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1734496208; x=1735101008; darn=python.org;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=4o1/0hFLxhNwkZ/U7/3scZSFlQTziMxvN6m8XpCNdIg=;
b=NbmjKg3uiE8bgUrnDcbAwWeBpMmxxNsmPqMt707GgSvIdZCZtUGX7yoaMLJ70EJ4rT
Y2gB6ywMu/jrDz3PgZK2O04Q1dEZBxRQRUhKoZHQ9gYRN2Agrmf6Ty5t+Obv3gz+ZaT8
mLFPSh7GaMv7vOdUoCoW/6YYFoZiTpRbVEyEnsr382LvCFwnm8vb7Yw1UxdhqAeloRj1
fJBk+1QfZNYx2L1M+DG7TefvXFrjEB4J8uWYhKZiIq5aO2pxSk2Dd//FYdRUFIEF96wm
Jv52xIZLEmyPe+0XneSDE86UoykYcH7vo6kd4PKm4AO8Hs58Yp7eJ65JoT/0fPLyyIaD
fBmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1734496208; x=1735101008;
h=content-transfer-encoding:in-reply-to:from:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=4o1/0hFLxhNwkZ/U7/3scZSFlQTziMxvN6m8XpCNdIg=;
b=oupTqBGWJi4BIfOJqGjknKwtbln0JA90bzIkDam+SH6CqizDGmTyqU7DogP4M5Z8Vb
+5ywGo12zHHSszMO6WxZWEVPJy/Cx35OmSKiQGRfT1cmNf6iMcQjJRdcLRhpvCmnBIt8
aaTxjZFpptQlF7iIQLanPDNHZC0nbFK4KIlAo2GzNBmfXR7Yg7L0kQJNyXyAncQ2aNYi
LKsLdKZbvRBktWnU6PY1JBZUervA69T9bgHG1VZs20yPBQlLVT41cJYVTQin3QB1y6/t
QrRw2nN7lKlFgUA8O1SYXxGFqkPK9QjqCW/JimjUHlzf7BI6ARtlMHFgpgXRkpLr1WZy
+wcw==
X-Gm-Message-State: AOJu0YyoB5htslyOfNjMvK3ze0NAx3ztPGeEnbNUfoKi7wMgDseaq3cf
0TxLKw7T3vHnUx95MVj5MXSYEDoomuV1HJ3CV1KciH62VttRzdAfaldhtqMErz8=
X-Gm-Gg: ASbGncuRezdPNPd1bzuwAZ0PskHT03qlQiDk9V8K47mGWwU86KXNovZhxAMpArQ0V32
0Q8gZhmpgV8zWxnRSZCWI9SLmu/kga1yfjG1KrTTEL82osmeD+lttmWw2AQ+HXkzSsuXTEjMFm6
6d51uJYQ0wRKASxH+RmJzaKcQWDjuT7L+8o3d2GAYTzh6HnZlFElv5kC1Zs2tJ7bFkM4tZjffjB
uaJ4TvbieAYM5G4WIQxsfYtVjBDWQn7ySqpOYtM07MGbFQbEFlzPRRfQ1zkhA==
X-Google-Smtp-Source: AGHT+IHoPrt+JYC2JrtTjwrdTKeoCkPz9/7fUs4umyP9YWHkItdTPwNDbh/koV6CEEoTTn0uPHwbxA==
X-Received: by 2002:a17:903:182:b0:215:a3fd:61f9 with SMTP id
d9443c01a7336-218d72559b0mr7164365ad.15.1734496208562;
Tue, 17 Dec 2024 20:30:08 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <vjojlu$118vp$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: <a3e7faef-bddb-49aa-588f-3d7e546c734b@gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vjojlu$118vp$1@dont-email.me>
View all headers

On 12/16/24 12:08 AM, aotto1968 via Python-list wrote:
> If I read the answers I come to the conclusion that the "supporters" at python doesn't ever understand the problem.

Sorry you feel that way. Various people gave the best advice they could
based on what you had provided. You were given some good advice and
even a few very specific things to try to determine the root problem
which you don't seem to have done. I've used linux for 30 years and
I've never seen a relative path used for a linker search path. What
provided this path to the linker?

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Wed, 25 Dec 2024 11:05 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Wed, 25 Dec 2024 12:05:18 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vkgote$2c59o$1@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 Dec 2024 12:05:19 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3f44fc8d1107e15115facf858d84d1fd";
logging-data="2495800"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MCeu4mSOPT62pgpeEqY27f33yEyWYZUs="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:bjllbXNU6w9VgySb1QwHZSaRbZE=
Content-Language: en-US
In-Reply-To: <vjh2mh$3bu1o$1@dont-email.me>
View all headers

I get angry…

next python error…

1) The OpenSUSE command "cnf" checks if a special package feature is installed.
2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3
project directory and never changed the OpenSUSE installation.
3) "cnf" seems to use "Python" internally, but is **not** able to configure the *Python* environment to use only "OpenSUSE"'s
own "Python" and "Sqlite3" software.
4) Now the "cnf" fails with "Python" which apparently tries to use **my** SQLite3.

> what a shame.

> cnf jmc
Traceback (most recent call last):
File "/usr/bin/cnf", line 9, in <module>
import scout
File "/usr/lib/python3.6/site-packages/scout/__init__.py", line 10, in <module>
import sqlite3
File "/usr/lib64/python3.6/sqlite3/__init__.py", line 23, in <module>
from sqlite3.dbapi2 import *
File "/usr/lib64/python3.6/sqlite3/dbapi2.py", line 27, in <module>
from _sqlite3 import *
ImportError: /usr/lib64/python3.6/lib-dynload/_sqlite3.cpython-36m-x86_64-linux-gnu.so: undefined symbol: sqlite3_trace

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Wed, 25 Dec 2024 11:20 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Wed, 25 Dec 2024 12:20:52 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <vkgpqk$2c59o$2@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 Dec 2024 12:20:52 +0100 (CET)
Injection-Info: dont-email.me; posting-host="3f44fc8d1107e15115facf858d84d1fd";
logging-data="2495800"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2rk4Kl31vT+mzCqB9/b+bbT6aoHAaBgM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9qNZOSyiBskuecgd+vAG+GqVI0c=
Content-Language: en-US
In-Reply-To: <vkgote$2c59o$1@dont-email.me>
View all headers

On 25.12.24 12:05, aotto1968 wrote:
> I get angry…
>
> next python error…
>
> 1) The OpenSUSE command "cnf" checks if a special package feature is installed.
> 2) I recently compiled **my** SQLite3 library specifically tailored to **my** requirement and installed it in **my** SQLite3
> project directory and never changed the OpenSUSE installation.
> 3) "cnf" seems to use "Python" internally, but is **not** able to configure the *Python* environment to use only "OpenSUSE"'s
> own "Python" and "Sqlite3" software.
> 4) Now the "cnf" fails with "Python" which apparently tries to use **my** SQLite3.
>
> > what a shame.
>
>
> > cnf jmc
> Traceback (most recent call last):
>   File "/usr/bin/cnf", line 9, in <module>
>     import scout
>   File "/usr/lib/python3.6/site-packages/scout/__init__.py", line 10, in <module>
>     import sqlite3
>   File "/usr/lib64/python3.6/sqlite3/__init__.py", line 23, in <module>
>     from sqlite3.dbapi2 import *
>   File "/usr/lib64/python3.6/sqlite3/dbapi2.py", line 27, in <module>
>     from _sqlite3 import *
> ImportError: /usr/lib64/python3.6/lib-dynload/_sqlite3.cpython-36m-x86_64-linux-gnu.so: undefined symbol: sqlite3_trace
>

It is not only an *usage* error it is also an *security* error because:

1) "cnf" is using OS python

> head /usr/bin/cnf
#!/usr/bin/python3

import gettext
import os
....

2) os "root" python
> ls -al /usr/bin/python3
lrwxrwxrwx 1 root root 9 2. Dez 13:16 /usr/bin/python3 -> python3.6
> ls -al /usr/bin/python3.6
-rwxr-xr-x 2 root root 10560 2. Dez 13:16 /usr/bin/python3.6

3) using **my** local non-root library
> ls -al NHI1_EXT/lib64/libsqlite3.so.0
lrwxrwxrwx 1 dev1usr users 19 23. Dez 22:09 NHI1_EXT/lib64/libsqlite3.so.0 -> libsqlite3.so.0.8.6
> ls -al NHI1_EXT/lib64/libsqlite3.so.0.8.6
-rwxr-xr-x 1 dev1usr users 3851872 23. Dez 22:09 NHI1_EXT/lib64/libsqlite3.so.0.8.6

Subject: Re: it's a shame... python error over error
From: Chris Angelico
Newsgroups: comp.lang.python
Date: Wed, 25 Dec 2024 22:55 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Thu, 26 Dec 2024 09:55:30 +1100
Lines: 18
Message-ID: <mailman.31.1735167344.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de WsX3tGfv6bignSqd31kdaQ6QFZmarYS+EWSdsSBvL2Lg==
Cancel-Lock: sha1:POYqblD/YBcXnP4eizTGNHzkLaM= sha256:4oIH3rKAVbEVPhSMtbdHuyIVXphlRaeisxIcwOqmqK8=
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=WzzntPj2;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'absolute': 0.05;
'subject:error': 0.07; 'python.': 0.08; 'attempts': 0.09; 'cc:addr
:python-list': 0.09; 'fault': 0.09; 'yes.': 0.09;
'subject:python': 0.10; 'cc:no real name:2**0': 0.14; 'chrisa':
0.16; 'confusion': 0.16; 'dll': 0.16; 'feature.': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'root.': 0.16; 'wrote:': 0.16; 'python': 0.16; 'thu,': 0.19;
'cc:addr:python.org': 0.20; 'version': 0.23; 'installed': 0.23;
'cc:2**0': 0.25; 'library': 0.26; "isn't": 0.27; 'local': 0.27;
'error': 0.29; 'dec': 0.31; 'message-id:@mail.gmail.com': 0.31;
'python-list': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.34; 'using':
0.37; 'means': 0.38; "that's": 0.39; 'here': 0.63; 'your': 0.64;
'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1735167342; x=1735772142; 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=iZkOOms6HjVOHuvuBGOzyNTYUCCXXz5quyuaVYIP4gU=;
b=WzzntPj2H+6serpoTuCFYqMv6IoM/KahLKt/Ybq7gACOzydwJFS+08/uPR5lbehboT
37eM8ewMdYP8OhlRRh3yEEDuSeAIIAaK6Hod8wswmdmvk3xKfmthMCx3UiwrMFnO7U7s
xFeJ9SL5mb+uu1URyyAROWeH439ZgNxZdLDtLB37yak7gEUyhwFyamr4S3w0iYu2E5XS
NI4nP0ElCMfxK2azH7xmSQ3dgPzrhrb24UpK77iVo5JKmUD1RBwMqeG80/gxKGp+NumU
dLAQ73D/ZLqigZm6mWpA/1LUckKdehUDZ5InVQVj12+JKeBpk/EkVCRu7yLIw6SEDN10
29hg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735167342; x=1735772142;
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=iZkOOms6HjVOHuvuBGOzyNTYUCCXXz5quyuaVYIP4gU=;
b=aLd9aL8kILam8VMhQbJuHO/ouv1C2iecdWtuH/WngudULg0TzZAiq0a5gGu//FkSyM
1uuGL6X136YPcgHEy7ptZxA+WR2vNVrtFF5WFqJWRxP5dgxViv3z7oyQulnspoL3HqJ5
g+ltlO8UyDuTzWFTeRbYOkJTBaBq+HAd1aFrsvzNCj5iKbUvFYKNOtPGJ6k4WG14UVu2
lK90ogJU175+ae/G84oYY6wtxkYeVbWhK1YYKFKQYY9PtsCfgedXZTc8JuQQNkcMXPZo
NOGEHlbGagvSwpBY0DIbkiw2IAtRdnsMG0j/2wFXxN3J2fsblw2pjz4bCLc404mVub0u
c6CA==
X-Gm-Message-State: AOJu0YxEwcUM1o0xYeOmf//kaig5z+axE2XOCMDJNBlr9nG7+xgPiptb
qOsCDx/DGVHELAxJAj7qVXnNxzX9UPsj15Ws41D+m8/ax9/De7Os/Wndeg4OZY78oOJ7cZ9K0n1
fG2LRRl5MtJ0NnamxaSKq9X9uAYw=
X-Gm-Gg: ASbGncvaPfMzDU9Z9n118/rt6MsyL8UisrhtZzPcjUPSMsBcA8cV0RV0mnYCxeMhLap
pOmBTwU6rcJt+ZaHhYP9vcQ6JABSqv/Ay2M4NkiH3R14=
X-Google-Smtp-Source: AGHT+IHAauebuoEx1dG4VxdytNkLL1R5v4eWKzVi886cVp9z1h5XNAcTLz62Z0cGBIkn8bPpUu71hXQG3WvnOB6wxuo=
X-Received: by 2002:a05:6512:159d:b0:540:2fd2:6b85 with SMTP id
2adb3069b0e04-542294509efmr6417558e87.13.1735167341967; Wed, 25 Dec 2024
14:55:41 -0800 (PST)
In-Reply-To: <vkgpqk$2c59o$2@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: <CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vkgote$2c59o$1@dont-email.me> <vkgpqk$2c59o$2@dont-email.me>
View all headers

On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
<python-list@python.org> wrote:
> It is not only an *usage* error it is also an *security* error because:
>
> 1) "cnf" is using OS python
> 2) os "root" python
> 3) using **my** local non-root library

Yes. And YOU were the one who installed a new root Python. This is a
feature. You have the power to update Python on your system.

You managed to make a build of Python that attempts to link to a DLL
using a relative path. That's a fault of the build that means it won't
work as root. I don't understand the confusion here; isn't the
solution here to build a new version with an absolute path, and update
your installation?

ChrisA

Subject: Re: it's a shame... python error over error
From: Michael Torrie
Newsgroups: comp.lang.python
Date: Thu, 26 Dec 2024 03:55 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: torriem@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Wed, 25 Dec 2024 20:55:47 -0700
Lines: 21
Message-ID: <mailman.32.1735185351.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 7UyrtqggOElRH7wRMhkAtAs7epJaP3894qEbHGYjXFuQ==
Cancel-Lock: sha1:yPwVrgv6SBLmqLr/f4RrGyC9T6c= sha256:MmnbYb0/sfxWSfdUkXtgNVdnOujPE2R12ErqK7Q1Lyk=
Return-Path: <torriem@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=jMVN543h;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'issue.': 0.05; "python's":
0.05; 'subject:error': 0.07; 'ticket': 0.07; 'python.': 0.08;
'angelico': 0.09; 'developers.': 0.09; 'fail.': 0.09; 'fault':
0.09; 'subject:python': 0.10; 'import': 0.15; 'paths': 0.16;
'wrote:': 0.16; 'python': 0.16; 'instead': 0.17; 'message-
id:@gmail.com': 0.18; 'figure': 0.19; 'pm,': 0.19; 'thu,': 0.19;
'to:addr:python-list': 0.20; "what's": 0.22; 'version': 0.23;
'command': 0.23; 'run': 0.23; 'library': 0.26; 'local': 0.27;
'chris': 0.28; 'think': 0.29; 'error': 0.29; 'header:User-
Agent:1': 0.30; 'dec': 0.31; 'assume': 0.32; 'happening': 0.32;
'python-list': 0.32; 'but': 0.32; 'there': 0.33; 'header:In-Reply-
To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com':
0.34; 'trying': 0.35; 'one.': 0.35; 'necessarily': 0.37; 'using':
0.37; "it's": 0.37; 'could': 0.37; 'received:192.168': 0.37;
'means': 0.38; 'use': 0.39; 'want': 0.40; 'try': 0.40; 'search':
0.61; 'security': 0.64; 'picked': 0.64; 'his': 0.65; 'per': 0.68;
'skip:/ 10': 0.69; 'local,': 0.84; 'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1735185349; x=1735790149; darn=python.org;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id:from
:to:cc:subject:date:message-id:reply-to;
bh=lsrb827rWrjvLPTliodD6Brt8+x1T777AlyiwjfQwuY=;
b=jMVN543hpN3TYoEvVhn6rTIgX789okwCoeTUqk6DkMTTAuiWhhnHwFBFNPMfycH3Vm
DLdxR8QIt8Yb3/2S4lzjyXR26zAPpXI1k3JqvI2WIZ7+Qb+48eD0aW0E+9ZoQLQCk5Jm
vg9Auj0qj3Q+MH3WJZjh64GkD50dfNMLMgSxJIT3F7cAnywIl3GOoMZqAbmTGgtmnDWM
oBC582XkoWH/wOnrhBCNKOey0uIivwIaixDQXG71VSgnbxIDBKOh0+CkSEUisvvnbzRk
ziBDUJnJG7hyqfwhPlh5dNv91wZnMx0aQ/Ih4FW7oPVvz9nzF4nURDHG2j8yC45rPQXV
dTBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735185349; x=1735790149;
h=content-transfer-encoding:in-reply-to:from:content-language
:references:to:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=lsrb827rWrjvLPTliodD6Brt8+x1T777AlyiwjfQwuY=;
b=p9CZdLIG59LYsHKizrdCZR4ReHSqI3ssWnFs1FbmCVJiVRD+pxA8jf9+UNNCm/etnN
UawEbycZ3VDoy2ssLUcbqa1HlpCksh84+cwJtk67VEGxWRyPMcL9dfPQyo1E2Bz0Ws+w
9W8PuS6FSA/EAdVCpBF6xndN14tFoY3IgvqTGz0eq5U4xO1+f5vJ2AzhwVfmzwNQ82ij
DONyktSfy3lUtIllu6F7yu7yR1KXgAtm5GgScZnzDN5n7PiJFc3bEBlzarqEzKCPWkMa
QbXmNCf20eCSovTrg5yeOsMpLtTLu8Y5wkHYwM/aUdx60s2GYazgKg5+QlJ5cidgtm+9
mg5w==
X-Gm-Message-State: AOJu0Yw9puxQk9mCpyHE0JFiwHfCabAxaj8KcCeCqoA+Ckf+UrfkkHs6
BdN8g8iETaFGI4pGJgq8qo3qlnajlftmH2j6Aovx2mjbO7t7P1JUwGkOx2Mw
X-Gm-Gg: ASbGncvdfqUI6BlVOUkj12Ph7n0u/BQNvWwrMCOC5dNzAECDDIrsgl5PqffqCGRcYHH
uVhlNKNN0D0bff6VsfKCcHX4sjLIYQt1zqjcsFyt9iYpwxvjSNfzoydwnCXQNTfZsT/0mDAMcYK
VLe02gKNQ8TO7crA/h7kXkVOpvnOCOjaDTKefENslReyC5cqWURt/n3tElqhpcD4gk+RXVbivov
Xh67kY5OnR98zcmJWBdFamYoBwKQEehBouiZInpot7oEaxm+YLwQjYr2FoSiw==
X-Google-Smtp-Source: AGHT+IETA6KYERI+xapQTRaTw4PHddKx0ZSRZUNFD/fh/Wz1WDiEbWyt+f5vABpaDT45qJIMRo1drw==
X-Received: by 2002:a05:6a00:6f4b:b0:726:380a:282f with SMTP id
d2e1a72fcca58-72abdd3c245mr12331570b3a.2.1735185349381;
Wed, 25 Dec 2024 19:55:49 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@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: <938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
View all headers

On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
> On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
> <python-list@python.org> wrote:
>> It is not only an *usage* error it is also an *security* error because:
>>
>> 1) "cnf" is using OS python
>> 2) os "root" python
>> 3) using **my** local non-root library

I think he means the cnf is using the "root" OS python in /usr/bin, but
/usr/bin/python3 is trying to import his local build of sqlite3, which
cause it to fail. I assume he would like cnf to not try to import his
local sqlite3, and instead use the normal system one. If this is the
case, then somehow his local, non-root sqlite3 library is being picked
up by the system version of python.

Aotto might want to run the "env" command and see if there are any
search paths that have to do with Python. I can see how this could be a
security issue. If you can figure out what's happening you might want to
open a ticket with the OpenSUSE developers. This is Python related, but
it's not necessarily python's fault per se.

Subject: Re: it's a shame... python error over error
From: Michael Torrie
Newsgroups: comp.lang.python
Date: Thu, 26 Dec 2024 03:57 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: torriem@gmail.com (Michael Torrie)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Wed, 25 Dec 2024 20:57:26 -0700
Lines: 7
Message-ID: <mailman.33.1735185450.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
<d9e63382-a020-4c7c-4d67-f5b21cd051e1@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de GnTi3fi3MsLOwe/AJbFUpg9ZTFaat/pAn/MpFEjqKhpg==
Cancel-Lock: sha1:TtMTLaSX5PRaTTqVde/v+NhnK/Y= sha256:SYsKU50jKvtS9eWObg030Q5of4IYc/q4FPwevQEh6YI=
Return-Path: <torriem@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=aR/jpE62;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.023
X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; "python's": 0.05;
'explicitly': 0.07; 'subject:error': 0.07; 'fault': 0.09;
'subject:python': 0.10; 'received:mail-pj1-x1033.google.com':
0.16; 'wrote:': 0.16; 'python': 0.16; 'message-id:@gmail.com':
0.18; 'pm,': 0.19; 'to:addr:python-list': 0.20; 'library': 0.26;
'header:User-Agent:1': 0.30; 'but': 0.32; 'unless': 0.32; 'header
:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.34; 'necessarily': 0.37; "it's": 0.37;
'received:192.168': 0.37; 'way': 0.38; 'use': 0.39; 'michael':
0.60; "there's": 0.61; 'your': 0.64; 'per': 0.68; 'subject:over':
0.84; 'activate': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1735185448; x=1735790248; darn=python.org;
h=content-transfer-encoding:in-reply-to:references:to:from
:content-language:subject:user-agent:mime-version:date:message-id
:from:to:cc:subject:date:message-id:reply-to;
bh=voDYE5+q3q759bMnbPywEA+aOc6NP+Eh2PNr9cVoc3Q=;
b=aR/jpE62Te7v4P/ul/K76QFzsJqMbtgXbRyJJY3VapIf/WSvgEYTefYSfpIG5d9x6H
N1lOOthl372/htU08Wo+KLOdsHexJhiFNnOWPLiSXyPnhoHfbeKynr4GJbmWE3J5az23
z5vYYEjosNw7+5hKOAb0qumYZ0DM7cww64FfwKEUN6mrw+0GZsnPStRMva1UEkoUM4cq
8kN10XPZjujn9W4rbzh/NnGCa7coYSVXnsqmIiPp7B6vewcAR2hplSYcVIWIMC82fSYF
NV3bqDoJKRJClf6DENNZA3adxZTaJDNNBkEwsyqqqGVw/LRXzze9E8sR4G2WYWsEdrq7
0swQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735185448; x=1735790248;
h=content-transfer-encoding:in-reply-to:references:to:from
:content-language:subject:user-agent:mime-version:date:message-id
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=voDYE5+q3q759bMnbPywEA+aOc6NP+Eh2PNr9cVoc3Q=;
b=wppohk2fpdm1SZUw5K9yKLixM0/XBgqA3DlJbRrsSap5M/5ITwkybPONtw5/UGkFan
680E3hDYDUCQYLA3vl7IuGJzejA13z+cB2A6VIztlthXnpxQkWMcn8zR/hPZ5EhJfgcy
INiv2pRdLheu1AvgvvIx5/0b0uMqu9Jjsb1D+zJNCmqDnDJ1p/mP4jdLAdVAWXmv/qwV
uy8NqB3gPH2+sEo0WaQNmSeTvPvvmeDMO6KO+TgcYXhxu37sH4mrk6PGBgO/s0uKJN76
VSEtTMDCxYELKllBexUktyC2K4VoM4bWZNc0sq6yk5Z43aDnEMR7b+nXtFYah/b+o1cM
4kyg==
X-Gm-Message-State: AOJu0YyaFDA7+k+/4zKQiNZksdTAVNIY6YhLGvM6dCFftXolrEYXZFCQ
GmX3Y/nH2OebAxR2XPBx/+RML6Z4INHuc73tFQ7dogunPTEvhLAk1Y9Zho+Y
X-Gm-Gg: ASbGncv+Vnos+mbB+zz5IdJTFYRtahbXxwm5B7t0wzHJOyvvEYE7hv2FiGFkXSZXkoT
+4OENmZ6SYzgs8L4BADs85mLBztEAPmVwS/nL5gNITpLO+V+j0b2xTQPXYmJ7bapxIqM/YnsSb6
AK1+6KH+HVtVtzmSwbp7oz5Iss6/dVQlhoNj0eDHqYty/7qC3KTMbAth0QdovPCZw29+GR5LxID
MXKfQ2PgqnaCCLVFsbjPDgnWBlGv1Ng8Rj/tDQl8GZAfCgxMPZn3D93wntq4g==
X-Google-Smtp-Source: AGHT+IF5Sk54TDxMlfgIERk2TuceoDyvkMK7xJ3dx90Cv7HWYiJ6GpBd2q6+oG0w45O8Et00v/CqRQ==
X-Received: by 2002:a17:902:f644:b0:215:94ef:6071 with SMTP id
d9443c01a7336-219e6f2707amr110395485ad.14.1735185447809;
Wed, 25 Dec 2024 19:57:27 -0800 (PST)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
Content-Language: en-US
In-Reply-To: <938ad572-1a5c-6395-5b16-0373eb0373e0@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: <d9e63382-a020-4c7c-4d67-f5b21cd051e1@gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
View all headers

On 12/25/24 8:55 PM, Michael Torrie wrote:
> This is Python related, but
> it's not necessarily python's fault per se.

It's also a good reminder to use venv. Then there's no way of
activating your custom python with its custom sqlite3 library unless you
explicitly activate the venv.

Subject: Re: it's a shame... python error over error
From: Chris Angelico
Newsgroups: comp.lang.python
Date: Thu, 26 Dec 2024 05:46 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: rosuav@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Thu, 26 Dec 2024 16:46:26 +1100
Lines: 24
Message-ID: <mailman.34.1735192000.2912.python-list@python.org>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
<CAPTjJmofJ2KmJVewwtdaviX_YvjtzJ5uADfnJe0BTZc=L1aDew@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de ORp6R4DD+/LXgCo+EDx3PwUHuZrh5UeKMv4XXnWewRgA==
Cancel-Lock: sha1:yezTZhc6k/pksDZwK/yw0CRj3ss= sha256:kvraydIUkQ1CyyBXr4Xkpy3DjzUWupBwpkPCqUfBCTo=
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=OxDE9RST;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.002
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'absolute': 0.05;
'libraries.': 0.07; 'subject:error': 0.07; 'python.': 0.08;
'angelico': 0.09; 'cc:addr:python-list': 0.09; 'fail.': 0.09;
'subject:python': 0.10; 'cc:no real name:2**0': 0.14; 'import':
0.15; 'chrisa': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris
angelico': 0.16; 'paths': 0.16; 'right.': 0.16; 'wrote:': 0.16;
'python': 0.16; 'instead': 0.17; 'pm,': 0.19; 'thu,': 0.19;
'cc:addr:python.org': 0.20; 'version': 0.23; 'cc:2**0': 0.25;
'library': 0.26; 'local': 0.27; 'chris': 0.28; 'think': 0.29;
'error': 0.29; 'dec': 0.31; 'message-id:@mail.gmail.com': 0.31;
'assume': 0.32; 'python-list': 0.32; 'but': 0.32; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.34; 'trying': 0.35; 'one.': 0.35;
'built': 0.36; 'using': 0.37; 'way': 0.38; 'means': 0.38; 'use':
0.39; "that's": 0.39; 'happen': 0.40; 'try': 0.40; 'michael':
0.60; 'picked': 0.64; 'his': 0.65; 'exactly': 0.68; 'skip:/ 10':
0.69; 'local,': 0.84; 'subject:over': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1735191998; x=1735796798; 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=b3k9cfytrZ5prOCJYbnvOUXrK+29EOovKCug8T2+fY4=;
b=OxDE9RST1ZUhAVKqun5Xwntwnt/LqGo7S3saUkpQ0EWfRmDUYPO6zsGaxDHFqioExh
IX2HQTscQJTRUe3bbD2b3Rvmqk4JzZoKI/f1o9q8+RqDeCSK7ClnEB7ysGrGokRNZ14j
p12PfKgf7ojVmv8FCUUOTLXI/Lu5AOkNwDA1ljAIt7rcXV8Is5tiieAEOqVqtQHcQ2Kv
mqUot6ufpWKNmOhse9hhUd2oVFSqAqejsryOCLpBiPKuySEaqNi5yVSSwpgto2h8BkP7
vvQEHTj0Doxd5Vp+GsD9kwclHcGlI+luzh6yZXyK9pVkDh12wN8Yxj9AkSS66dY73VwJ
iOPA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735191998; x=1735796798;
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=b3k9cfytrZ5prOCJYbnvOUXrK+29EOovKCug8T2+fY4=;
b=LCwcTK4wst1/RCYNUDt3Z/IKSTx62eu+DDrOjGLc4xyd+fHtn7UqMwKHQigUNpxYf+
QZpJBoOxTKTJxg5rE9j5m69+MWvQcEE2hqobLRqHQe6D8peljp88pHSkiQF0H1GEVdDc
RtUkLidJuR77X1wjmguOpkHqHeZ9b2YTLUG9y35JSP/lSJQDFxKccfVZEG4wE3JyxIFz
O8/bxtC3K5o/VHwHwXzI6eNhroMKf9k2UMQyssYKIgobOP/gLHUW1B0lw9TxV8sbBx7n
TN36oawBgMgHBUtV7YJS8VHG3InosHt+6KldP/39CC6qQMqeutRJ6/jnqZGVq1s9A1H3
uQ7g==
X-Gm-Message-State: AOJu0YylG/9NgdIdPxMHeGaz/bDDrPL0gFTeiUmAkxHbZphsS42lzFSs
U84ame1/FB0qXDo+i4pOivH9hfKDIhVMZmtAMzmJxgrInoX1T9ZQJyzApSAlVnqeT7CbjAH566V
5aKvx8To+PoIar7eL0Uf2dtRk+lE=
X-Gm-Gg: ASbGnctcrpP22wTJyNooxaybUlEO2QWmvLfHyliPb2gKKh/715hPPzZtXBgwm/c3SW4
+FYLMZ75RCzbABAxSbNpnbI3+AMcRYHxWR6W84u5tIIc=
X-Google-Smtp-Source: AGHT+IE4RIgp1YThIU3/lFfB1gUlVuDU/O/en++FdaazmBrz/79RfgF4Nc+3I7TXQgeLa8/AQF3XaZcNAqvpvMHnGao=
X-Received: by 2002:a05:6512:33cf:b0:53e:3a01:cf3c with SMTP id
2adb3069b0e04-5422952542amr6070994e87.5.1735191997682; Wed, 25 Dec 2024
21:46:37 -0800 (PST)
In-Reply-To: <938ad572-1a5c-6395-5b16-0373eb0373e0@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: <CAPTjJmofJ2KmJVewwtdaviX_YvjtzJ5uADfnJe0BTZc=L1aDew@mail.gmail.com>
X-Mailman-Original-References: <vjh2mh$3bu1o$1@dont-email.me>
<vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
View all headers

On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
<python-list@python.org> wrote:
>
> On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
> > On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
> > <python-list@python.org> wrote:
> >> It is not only an *usage* error it is also an *security* error because:
> >>
> >> 1) "cnf" is using OS python
> >> 2) os "root" python
> >> 3) using **my** local non-root library
>
> I think he means the cnf is using the "root" OS python in /usr/bin, but
> /usr/bin/python3 is trying to import his local build of sqlite3, which
> cause it to fail. I assume he would like cnf to not try to import his
> local sqlite3, and instead use the normal system one. If this is the
> case, then somehow his local, non-root sqlite3 library is being picked
> up by the system version of python.

Right. That's exactly what would happen if he'd built Python using
absolute paths to libraries, which is the normal way to do it. And so
the solution is to rebuild Python using absolute paths to libraries.

ChrisA

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Thu, 26 Dec 2024 07:34 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Thu, 26 Dec 2024 08:34:43 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <vkj0uj$2s8i6$1@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<mailman.31.1735167344.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 Dec 2024 08:34:43 +0100 (CET)
Injection-Info: dont-email.me; posting-host="adb80c7b783dba9739a09c1d45053a5a";
logging-data="3023430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/e3WqqK7DZ8O7s9KGKhqotuLzxQ6W2/5k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:b9QQq+V5hd5IGHyneI7/hu0jRcI=
In-Reply-To: <mailman.31.1735167344.2912.python-list@python.org>
Content-Language: en-US
View all headers

On 25.12.24 23:55, Chris Angelico wrote:
> On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
> <python-list@python.org> wrote:
>> It is not only an *usage* error it is also an *security* error because:
>>
>> 1) "cnf" is using OS python
>> 2) os "root" python
>> 3) using **my** local non-root library
>
> Yes. And YOU were the one who installed a new root Python. This is a
> feature. You have the power to update Python on your system.
>
> You managed to make a build of Python that attempts to link to a DLL
> using a relative path. That's a fault of the build that means it won't
> work as root. I don't understand the confusion here; isn't the
> solution here to build a new version with an absolute path, and update
> your installation?
>
> ChrisA

sorry you don't understand the problem…

> You managed to make a build of Python that attempts to link to a DLL

I never touch the OpenSUSE python. the OpenSUSE python try to use my
sqalite3.

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Thu, 26 Dec 2024 07:35 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Thu, 26 Dec 2024 08:35:59 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <vkj10v$2s8i6$2@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
<CAPTjJmofJ2KmJVewwtdaviX_YvjtzJ5uADfnJe0BTZc=L1aDew@mail.gmail.com>
<mailman.34.1735192000.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 Dec 2024 08:35:59 +0100 (CET)
Injection-Info: dont-email.me; posting-host="adb80c7b783dba9739a09c1d45053a5a";
logging-data="3023430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+kyXZ6DOJ+UviiLHfSgLJphpXTv44VCc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ukjYzBTnEbHGHxKWe6ftPfPvVxs=
Content-Language: en-US
In-Reply-To: <mailman.34.1735192000.2912.python-list@python.org>
View all headers

On 26.12.24 06:46, Chris Angelico wrote:
> On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
> <python-list@python.org> wrote:
>>
>> On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
>>> On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
>>> <python-list@python.org> wrote:
>>>> It is not only an *usage* error it is also an *security* error because:
>>>>
>>>> 1) "cnf" is using OS python
>>>> 2) os "root" python
>>>> 3) using **my** local non-root library
>>
>> I think he means the cnf is using the "root" OS python in /usr/bin, but
>> /usr/bin/python3 is trying to import his local build of sqlite3, which
>> cause it to fail. I assume he would like cnf to not try to import his
>> local sqlite3, and instead use the normal system one. If this is the
>> case, then somehow his local, non-root sqlite3 library is being picked
>> up by the system version of python.
>
> Right. That's exactly what would happen if he'd built Python using
> absolute paths to libraries, which is the normal way to do it. And so
> the solution is to rebuild Python using absolute paths to libraries.
>
> ChrisA

next I don't change the OpenSUSE python and the OpenSUSE python is using *my*
sqlite3.

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Thu, 26 Dec 2024 07:42 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Thu, 26 Dec 2024 08:42:08 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vkj1cg$2s8i6$3@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
<mailman.32.1735185351.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 26 Dec 2024 08:42:09 +0100 (CET)
Injection-Info: dont-email.me; posting-host="adb80c7b783dba9739a09c1d45053a5a";
logging-data="3023430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iKJsZRFlIrRtxj6eqN1weWY3e3sVmL1M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:omst0VFnkA8DvgSuKk/f0LbfmsY=
Content-Language: en-US
In-Reply-To: <mailman.32.1735185351.2912.python-list@python.org>
View all headers

On 26.12.24 04:55, Michael Torrie wrote:
> On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
>> On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
>> <python-list@python.org> wrote:
>>> It is not only an *usage* error it is also an *security* error because:
>>>
>>> 1) "cnf" is using OS python
>>> 2) os "root" python
>>> 3) using **my** local non-root library
>
> I think he means the cnf is using the "root" OS python in /usr/bin, but
> /usr/bin/python3 is trying to import his local build of sqlite3, which
> cause it to fail. I assume he would like cnf to not try to import his
> local sqlite3, and instead use the normal system one. If this is the
> case, then somehow his local, non-root sqlite3 library is being picked
> up by the system version of python.
>
> Aotto might want to run the "env" command and see if there are any
> search paths that have to do with Python. I can see how this could be a
> security issue. If you can figure out what's happening you might want to
> open a ticket with the OpenSUSE developers. This is Python related, but
> it's not necessarily python's fault per se.

Yes I using with *my* user *my* environment but never touch the *root*
environment at all.

the *root* python try to use *my* sqlite3 because *my* environment
fit to *my* needs.

/* just a reminder */

sqlite3 have a "special" (worse) setup that a change to the configuration
also change the "api" ( a sqlite_function disappear or arrive ).
If a tool like python using an extension that is linked to sqlite3 that extension
will likely FAIL is I get an OTHER sqlite3 which is NOT the one the extension
was build with.

Subject: Re: it's a shame... python error over error
From: aotto1968
Newsgroups: comp.lang.python
Organization: A noiseless patient Spider
Date: Thu, 26 Dec 2024 07:47 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: aotto1968@t-online.de (aotto1968)
Newsgroups: comp.lang.python
Subject: Re: it's a shame... python error over error
Date: Thu, 26 Dec 2024 08:47:52 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <vkj1n8$2s8i6$4@dont-email.me>
References: <vjh2mh$3bu1o$1@dont-email.me> <vkgote$2c59o$1@dont-email.me>
<vkgpqk$2c59o$2@dont-email.me>
<CAPTjJmq_tUSnxgSxbKTZ7gfWHG3qf9VKWki7-ehYfhpsvObpvA@mail.gmail.com>
<938ad572-1a5c-6395-5b16-0373eb0373e0@gmail.com>
<mailman.32.1735185351.2912.python-list@python.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 26 Dec 2024 08:47:53 +0100 (CET)
Injection-Info: dont-email.me; posting-host="adb80c7b783dba9739a09c1d45053a5a";
logging-data="3023430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19M+b9DiNihroey9LDpKRKKhnWg/XFUr7s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:5bf58Hd6C8byXEl6T88wBo18nyc=
In-Reply-To: <mailman.32.1735185351.2912.python-list@python.org>
Content-Language: en-US
View all headers

On 26.12.24 04:55, Michael Torrie wrote:
> On 12/25/24 3:55 PM, Chris Angelico via Python-list wrote:
>> On Thu, 26 Dec 2024 at 09:27, aotto1968 via Python-list
>> <python-list@python.org> wrote:
>>> It is not only an *usage* error it is also an *security* error because:
>>>
>>> 1) "cnf" is using OS python
>>> 2) os "root" python
>>> 3) using **my** local non-root library
>
> I think he means the cnf is using the "root" OS python in /usr/bin, but
> /usr/bin/python3 is trying to import his local build of sqlite3, which
> cause it to fail. I assume he would like cnf to not try to import his
> local sqlite3, and instead use the normal system one. If this is the
> case, then somehow his local, non-root sqlite3 library is being picked
> up by the system version of python.
>
> Aotto might want to run the "env" command and see if there are any
> search paths that have to do with Python. I can see how this could be a
> security issue. If you can figure out what's happening you might want to
> open a ticket with the OpenSUSE developers. This is Python related, but
> it's not necessarily python's fault per se.

You don't understand the problem if you think "/usr/bin/env" will solve the
problem → this will make it more worse.

A "personal" python will use a "personal" configuration and probably is *not*
build with sqlite3 support at all.

a *root* tool should never ever use/call a non *root* (personal) setup.

Pages:12

rocksolid light 0.9.8
clearnet tor