it's a shame... python error over error
Chris Angelico
rosuav at gmail.com
Thu Dec 26 00:46:26 EST 2024
On Thu, 26 Dec 2024 at 14:57, Michael Torrie via Python-list
<python-list at 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 at 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
More information about the Python-list
mailing list