youtube-dl-2021.12.17-1

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

youtube-dl-2021.12.17-1

Postby muddI » Wed Jan 12, 2022 3:46 pm

Hi
after updating youtube-dl from 2021.06.06-1 to 2021.12.17-1 I get the following error
(trying downloading any video throws same error)

$ youtube-dl --version
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 33, in <module>
sys.exit(load_entry_point('youtube-dl==2021.12.17', 'console_scripts', 'youtube-dl')())
File "/usr/bin/youtube-dl", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: youtube-dl


downgrading solves the prob
$ youtube-dl --version
2021.06.06


greets
muddI
 
Posts: 20
Joined: Wed Aug 11, 2021 9:13 am

Re: youtube-dl-2021.12.17-1

Postby graysky » Wed Jan 12, 2022 4:59 pm

That project has issues and I am unsure about upstream support. Use yl-dlp instead.
graysky
Developer
 
Posts: 1876
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: youtube-dl-2021.12.17-1

Postby muddI » Wed Jan 12, 2022 5:50 pm

ah ok, thanks, this one is "new" in the repo, missed that ;)

But:

$yt-dlp

Traceback (most recent call last):
File "/usr/bin/yt-dlp", line 33, in <module>
sys.exit(load_entry_point('yt-dlp==2021.12.27', 'console_scripts', 'yt-dlp')())
File "/usr/bin/yt-dlp", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.9/importlib/metadata.py", line 524, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.9/importlib/metadata.py", line 187, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: yt-dlp

Looks not that different ;)
muddI
 
Posts: 20
Joined: Wed Aug 11, 2021 9:13 am

Re: youtube-dl-2021.12.17-1

Postby ufo6000 » Wed Jan 12, 2022 6:02 pm

$this->bbcode_second_pass_quote('', '
')/usr/lib/python3.9


3.9 is not up-to-date.
Did you perform a partial upgrade ?
Make a full pacman update and test again, please post your output afterwards:

$this->bbcode_second_pass_code('', '
$ pacman -Q python
python 3.10.1-2
')
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm

Re: youtube-dl-2021.12.17-1

Postby muddI » Wed Jan 12, 2022 6:37 pm

A partial update? Can't tell you.

But just for my understanding.
Shouldn't pacman inform me if there is a version mismatch?

anyway, updated python, now:

$pacman -Q python
python 3.10.1-2

And:

$ yt-dlp (v 2021.12.27-1)

Traceback (most recent call last):
File "/usr/bin/yt-dlp", line 33, in <module>
sys.exit(load_entry_point('yt-dlp==2021.12.27', 'console_scripts', 'yt-dlp')())
File "/usr/bin/yt-dlp", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/yt_dlp/__init__.py", line 16, in <module>
from .options import (
File "/usr/lib/python3.10/site-packages/yt_dlp/options.py", line 8, in <module>
from .compat import (
File "/usr/lib/python3.10/site-packages/yt_dlp/compat.py", line 5, in <module>
import ctypes
File "/usr/lib/python3.10/ctypes/__init__.py", line 8, in <module>
from _ctypes import Union, Structure, Array
ImportError: libffi.so.8: cannot open shared object file: No such file or directory

And also:

$ youtube-dl (v 2021.06.06-1)

Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 33, in <module>
sys.exit(load_entry_point('youtube-dl==2021.6.6', 'console_scripts', 'youtube-dl')())
File "/usr/bin/youtube-dl", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 919, in distribution
return Distribution.from_name(distribution_name)
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 518, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for youtube-dl

So now, neither one works.

Switched back to python 3.9.6-1 and youtube-dl 2021.06.06-1. This combination works for me.
muddI
 
Posts: 20
Joined: Wed Aug 11, 2021 9:13 am

Re: youtube-dl-2021.12.17-1

Postby muddI » Wed Jan 12, 2022 7:15 pm

Ok, got it. Thanks!
muddI
 
Posts: 20
Joined: Wed Aug 11, 2021 9:13 am

Re: youtube-dl-2021.12.17-1

Postby andiling » Fri Jan 14, 2022 8:28 pm

For me, both are working (yt-dlp and youtube-dl).
It seems indeed you're haveing some update issues (e.g. with libffi), try some other mirror or reinstalling packages.
andiling
 
Posts: 74
Joined: Sun Mar 06, 2016 8:34 pm

Re: youtube-dl-2021.12.17-1

Postby muddI » Sat Jan 15, 2022 2:08 pm

Yes, libffi was one that I had to upgrade.
But sadly, that broke my self compiled ffmpeg/mpv i.e.
Maybe archlinux is not the right distro for me, but thats my prob.
muddI
 
Posts: 20
Joined: Wed Aug 11, 2021 9:13 am

Re: youtube-dl-2021.12.17-1

Postby ufo6000 » Sun Jan 16, 2022 6:06 pm

$this->bbcode_second_pass_quote('', 'A') partial update? Can't tell you.


have a look at https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported - this explains more the topic in arch, "Partial upgrades are unsupported".

I saw you self compiled some more stuff, so I wonder how you solve dependency conflicts.
I don't know if other distro's could do this better.
ufo6000
 
Posts: 117
Joined: Fri Jan 22, 2016 7:54 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 16 guests