Deutsch   English   Français   Italiano  
<mailman.66.1730479505.4695.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: dieter.maurer@online.de
Newsgroups: comp.lang.python
Subject: Re: Correct module for site customization of path
Date: Fri, 1 Nov 2024 17:32:04 +0100
Lines: 20
Message-ID: <mailman.66.1730479505.4695.python-list@python.org>
References: <adfac553-cac7-4441-b70a-9197723279d8@gmail.com>
 <26405.644.968594.532579@ixdm.fritz.box>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de mmwdiJndjAd99Sl6BwqSjQJ9fMdA7mi8+0cVErC54Qjg==
Cancel-Lock: sha1:pKb7jdsyPcQ8xtSZkI6AfAk9a6E= sha256:yQtAEZDT2WhZLNAXjWo5pvivOG0KS14FBQxjj6WdYa0=
Return-Path: <dieter.maurer@online.de>
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=online.de header.i=dieter.maurer@online.de
 header.b=ivAHh4XH; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.004
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'looks': 0.02; 'modules':
 0.07; 'received:212.227': 0.07; 'subject:module': 0.07; 'cc:addr
 :python-list': 0.09; 'modules.': 0.09; 'received:212.227.126':
 0.09; 'skip:` 10': 0.09; 'import': 0.15; 'python': 0.16;
 'cc:addr:python.org': 0.20; 'ran': 0.22; 'install': 0.23;
 'received:de': 0.23; 'cc:2**0': 0.25; 'normally': 0.26;
 'version.': 0.28; 'error': 0.29; 'module': 0.31;
 'received:kundenserver.de': 0.32; 'received:mout.kundenserver.de':
 0.32; 'subject:for': 0.32; 'path': 0.33; 'script': 0.33; 'header
 :In-Reply-To:1': 0.34; 'files': 0.36; '...': 0.37;
 'received:192.168': 0.37; 'put': 0.38; 'use': 0.39; 'appears':
 0.40; 'tell': 0.60; 'look': 0.65; 'subject:site': 0.70; '(you':
 0.76; 'upgrades': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=online.de;
 s=s42582890; t=1730479502; x=1731084302; i=dieter.maurer@online.de;
 bh=m7HRpzrccSNW18JUpRdJ6upZwVquDM6vbYUfGBVwPFM=;
 h=X-UI-Sender-Class:MIME-Version:Content-Type:
 Content-Transfer-Encoding:Message-ID:Date:From:To:Cc:Subject:
 In-Reply-To:References:cc:content-transfer-encoding:content-type:
 date:from:message-id:mime-version:reply-to:subject:to;
 b=ivAHh4XHja2DZ7myLVFHdHvMh4ao9a3zk7DkP873v3O+1p506I3UKEB/4OfW2RX0
 bS4fztdkuVATNjrBNpg3jlC3qQIjfEW/3smfAULuqAywgdg9Pgz2LWl24DWV4sL2T
 gPZ0MF3s27CPx8DUsqoSfYZRTKbcXICCmq2wvm4wnjkROUcVPBhXGVGdf8G+r1Tvm
 SFDAZFzxwLDVmoMqYoSZkHXKaay9xsJC3b7OXdbaSE08CjTQ8vzbt2GZs50jP88Wq
 2PkNqNEyfCNKMSXSIyVcdzrHikoCPXiE6DXvCPvBYMSYVkSxxGbbf/2ay+E6N44tp
 KTg8L/yFKn5uQgWepQ==
X-UI-Sender-Class: 6003b46c-3fee-4677-9b8b-2b628d989298
In-Reply-To: <adfac553-cac7-4441-b70a-9197723279d8@gmail.com>
X-Mailer: VM 8.0.12-devo-585 under 21.4 (patch 24) "Standard C" XEmacs Lucid
 (x86_64-linux-gnu)
X-Provags-ID: V03:K1:8flfCLIPvmLCaa9h7590yn15ZUQL1E+BHa30lBHpnPrgveVY1tc
 fmcI42iV7hGWqUvW+QZ60MTt5YQVArhryUGdZSgFUVjRQ5rOO1B3zXxhRtdjAjQtMUlxoNQ
 csPCDHbtQcct7WFqAAem/McEYMpkWoSwVSXJHr2P3aSaKpZPRhLBbYiso47g0HHlmXW6Y0G
 QYTjTkJ+TW8k6Rryw9UIg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:qsU0TImTiWc=;qIF+jqb8w3QRdKs8oqXxYrw62Zb
 VgScTGhNCtobzXR3fof6XmV7QufLuV9OveuzfWXfGtxLdfRfCvNjLac5uEOpXzNe4WUVYDTOr
 sS0ui0eGc+Lrs06krdxZVBrt9wU0P0r3B228fnEELHVm9hJg2VHP/McLDAeiF4E4w7ZEN7Le0
 rlX96OELZZcKJsdCnsLfdQN8E1354mrfYu7JVUk0AbIJSYB1kNbl2XYQvdn65TXna015CPj9L
 URgqYzIWIXqGstTqG8FfXEsJL4swHGfNUHvjJGNTBZ/AS35u8FmdsrbvPf4wLB0YBdg7cKgV7
 Po+8zeq+34FecSrzFIcw/kkUArsWN1ZLauecYenknxKBqXdpIMgdgDbq2sS6v8PuvpqrNhLyT
 r5l766TTeulRaKNR1YcaDjebTRnEpIwgnPPnt+lQDBUnGZceqE0q4l2VyjbE0ja3Ae36ZdBJh
 4HNFReE/xrUPP3RtWZJrONC9lxdqJ45v9nTvppQZUIjVz0R/nFqMNmaKzAhJa4l/6TjLDDqro
 GwGu4JrgAkKVCaTPiJzwxaX1+1LndZnDJ+/pg+BNlu25Yqr4qWloD2XuJXkFE7gNbdFUGpJQh
 ouPvyDWIdFl+fgYJJQdcw+kZb06iSJxG2OuWCl7qKNr2iXbNOe4r0mOjXCr0EC+sSr4+h0vNX
 NSpjWAB68l7qbv3BSeGjY92oxq2ybNw518rZFS9S/zUlg8caYe2vFlK32Vl9JMAKIQpFFweWJ
 mJ8F+NEygylLjVY/Q+SaUh2Cm8fZ+DF/g==
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: <26405.644.968594.532579@ixdm.fritz.box>
X-Mailman-Original-References: <adfac553-cac7-4441-b70a-9197723279d8@gmail.com>
Bytes: 5497

> ...
>After the recent upgrades I had to install youtube_dl with pipx for the
>new python version.
>When I ran the script which imported youtube_dl, I got an import error
>as it appears the path to the module
>was not in sys.path....

I see at several options:

 * install `youtoube_dl` where Python looks for it
   (you can print `sys.path` to find out all the places
   normally checked for importable modules)

 * put a (symbolic) link to `youtoube_dl` at a place
   where Python looks for modules

 * use Pythons' `.pth' feature to tell Python additional
   places where to look for modules.
   You can place `.pth` files where Python looks for modules
   to be imported