Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197050

Re: ModuleNotFoundError for youtube_dl

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Tim Johnson <thjmmj15@gmail.com>
Newsgroups comp.lang.python
Subject Re: ModuleNotFoundError for youtube_dl
Date Mon, 9 Dec 2024 16:41:15 -0900
Lines 34
Message-ID <mailman.14.1733794880.2965.python-list@python.org> (permalink)
References <52495180-0498-4819-9baf-8e6a0717a26d@gmail.com> <0ef85f40-9617-4097-bc86-9dffd02ea15f@gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de rEu745s1o5O3Zs22M3AH2g9zhzrqgBhgtG6VmCZLk+2g==
Cancel-Lock sha1:v1nKVvqSVqvxv6mBCLKpBfm2Rt8= sha256:+jCgC4U7T2GRCRqFG6PZ+/P5BQWP6X+pPlY4CWNAZFA=
Return-Path <thjmmj15@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=m15eMN0/; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status OK 0.085
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'ubuntu': 0.09; 'import': 0.15; '8bit%:47': 0.16; 'appended': 0.16; 'refresh': 0.16; 'skip:/ 80': 0.16; 'skip:s 100': 0.16; 'skip:t 80': 0.16; 'solved.': 0.16; 'wrote:': 0.16; 'message-id:@gmail.com': 0.18; 'to:addr:python- list': 0.20; 'skip:_ 10': 0.22; 'code': 0.23; 'tim': 0.26; 'version.': 0.28; 'recently': 0.29; 'header:User-Agent:1': 0.30; 'received:192.168.1': 0.32; 'subject:for': 0.32; 'header:In-Reply- To:1': 0.34; 'received:google.com': 0.34; 'from:addr:gmail.com': 0.34; '8bit%:40': 0.35; 'following': 0.35; 'received:192.168': 0.37; '8bit%:14': 0.38; 'changes': 0.39; 'added': 0.39; 'appears': 0.40; 'should': 0.40; 'skip:o 10': 0.61; 'skip:* 20': 0.62; 'navigating': 0.69; 'skip:/ 30': 0.69; '8bit%:43': 0.70; 'content': 0.72; 'relevant': 0.73; '8bit%:31': 0.73; '*for': 0.84; 'subject:skip:M 10': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733794877; x=1734399677; darn=python.org; h=in-reply-to:content-language:references:to:from:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=lRSOS+GSQfJ9NKUH1EfUaMp/03TgcCNlVAaV/gEXl6c=; b=m15eMN0/Jl1tdfG/vj0ytCPN7/tKStThCKCZaPv3VrR3FrQOpnRkf2t7BJt2K4rQT+ Y63176tt7NZWVDH3wsEZsirpEXR3UrXE+Cvh1mG6JOFPMOhu9s0ZzXejTrfNArgSh8X6 mZ3RUnJO+/dScRrAphfQYRf7EQLx6my9b+HO/jZFPrs0VPpe17NvWVsP4YGWBqZuJ6R6 E3pSodY3i6Ll8PfuckKtGrJVqWtIMbkj7pIuHgd/ZBDhG3ilyDXmHP+Bh7yea27x9JXm or+1f6GxTbpxHPaLbP+mLpRlR9dC9bxp1DQzKs9YU+36zwS3bkecB4qnyJ88B4nvX/Xn FV0w==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733794877; x=1734399677; h=in-reply-to:content-language:references:to:from:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=lRSOS+GSQfJ9NKUH1EfUaMp/03TgcCNlVAaV/gEXl6c=; b=UmgaDLL2EgJTtd3pVwTdj9VpaA4N2xVYqBqGIL7kF6jPpJaYWA3zCE6oNXy7pPHumU U4dwhD6Ymj2G2zzCmU0hCmnUO10ba41kL+Hyvch41c/996/bqTteCaHW14TPDzrq/43d HPiAdSELev0sWGhqlIWrD4lw5dS/n5CjtDuh3fadpKIil1kkW+SGrYLmal0w4FX/kNYQ xnQPLdXAt9REMUTfLqq2zkcfjnIZiOFvaflTYr1K8tLEyOJaHfE3SxkM2WWwgWAABkVO TADSqx6bOPGMOdMpGpHvBfNGWk7nGla3U3CIkLJ4QzB1Y8TkelDPA69Y8Kq7RMgrStyL GflA==
X-Gm-Message-State AOJu0YzXZSdaIzARmtru3PzhUiw+6mDD9BTPKJaB6BSoYbFv95nJSg3g stfy1eacmJXyCidVPcWAUw6kAxxioMgiinshVTDoBvv6jRaot1+wQmkHZA/d
X-Gm-Gg ASbGncu6lq71e4a+jUM/rgp+upn1uFHonHYueaVEPg6B98Le9B90MIsGrL3MchDfYEg e6Rd7py0sqsIzJSQqSo5GvJVcL9RKWt/XQdRz5qzhoOBYaShX3Fw8aI4utmcGNRswt4j8ypmNFe +D8Xzv1hO4lw2/RXpYKYAxIqxrVw3u1MvQw1yqoyQSx9PIchzTZz7NjarzOIYU6dYX9QFLeRqbQ zYl9hv0yQp1DSMNCJ19PjTeOfDVsUAvKwSVhcRwn7tmYOKyAohIIb3mGdQGLew+U9gCMnh4NQ==
X-Google-Smtp-Source AGHT+IGPmLvOvPKBjRB7lwzLl75+nlyUcTyDTG/8wjA823GoP8NWK3zhW5ZKPs4tFm1uy6vc8q+HQA==
X-Received by 2002:a17:90b:4b44:b0:2ea:bf1c:1e3a with SMTP id 98e67ed59e1d1-2efcf16975bmr4957785a91.12.1733794876839; Mon, 09 Dec 2024 17:41:16 -0800 (PST)
User-Agent Mozilla Thunderbird
Content-Language en-US
In-Reply-To <52495180-0498-4819-9baf-8e6a0717a26d@gmail.com>
X-Content-Filtered-By Mailman/MimeDel 2.1.39
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 <0ef85f40-9617-4097-bc86-9dffd02ea15f@gmail.com>
X-Mailman-Original-References <52495180-0498-4819-9baf-8e6a0717a26d@gmail.com>
Xref csiph.com comp.lang.python:197050

Show key headers only | View raw


On 12/9/24 14:59, Tim Johnson wrote:
>
> Recently did a refresh of ubuntu 24.04
>
> With no code changes am now getting a *ModuleNotFoundError *for youtube_dl
>
> Relevant code is
>
> import sys
> sys.path.append("/home/tim/.local/share/pipx/venvs/youtube-dl/lib/python3.12/site-packages/youtube_dl")
>
> import youtube_dl '
>
> Navigating to 
> /home/tim/.local/share/pipx/venvs/youtube-dl/lib/python3.12/site-packages/youtube_dl,
>
> I see the following
>
> tim@beelink:~/.local/share/pipx/venvs/youtube-dl/lib/python3.12/site-packages/youtube_dl$ 
> ls
> aes.py    compat.py   extractor    jsinterp.py  options.py 
> __pycache__  swfinterp.py  utils.py    YoutubeDL.py
> cache.py  downloader  __init__.py  __main__.py  postprocessor 
> socks.py     update.py     version.
>
I should not have appended 'youtube_dl' to the path. I used the content 
from 
/home/tim/.local/share/pipx/shared/lib/python3.12/site-packages/pipx_shared.pth

("/home/tim/.local/share/pipx/shared/lib/python3.12/site-packages") and 
added that to /usr/lib/python3.12/sitecustomize.py as appended to sys.path

and it appears to be solved.

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Re: ModuleNotFoundError for youtube_dl Tim Johnson <thjmmj15@gmail.com> - 2024-12-09 16:41 -0900
  Re: ModuleNotFoundError for youtube_dl jkn <jkn+es@nicorp.co.uk> - 2024-12-10 22:35 +0000

csiph-web