Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #197050 > unrolled thread
| Started by | Tim Johnson <thjmmj15@gmail.com> |
|---|---|
| First post | 2024-12-09 16:41 -0900 |
| Last post | 2024-12-10 22:35 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Tim Johnson <thjmmj15@gmail.com> |
|---|---|
| Date | 2024-12-09 16:41 -0900 |
| Subject | Re: ModuleNotFoundError for youtube_dl |
| Message-ID | <mailman.14.1733794880.2965.python-list@python.org> |
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.
[toc] | [next] | [standalone]
| From | jkn <jkn+es@nicorp.co.uk> |
|---|---|
| Date | 2024-12-10 22:35 +0000 |
| Message-ID | <vjafna$15c08$1@dont-email.me> |
| In reply to | #197050 |
On 10/12/2024 01:41, Tim Johnson wrote:
>
> 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.
FWIW I think youtube_dl has largely been supplanted by the (maintained)
'yt-dlp' these days
J^n
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web