Deutsch English Français Italiano |
<mailman.34.1735192000.2912.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico <rosuav@gmail.com> 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> Bytes: 6346 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