New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yt-dlp-git AUR package fails to install: test_search_nextjs_data FAILED #9823
Comments
Are you trying to install This failing test has nothing to do with Python 3.12; it was an oversight on our part. See #9763 You can make this change to the AUR PKGBUILD so that the tests pass: diff --git a/PKGBUILD b/PKGBUILD
index face841..5cc2eb3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -47,7 +47,7 @@ build() {
check() {
cd "${pkgname%-git}"
- pytest -v -m "not download"
+ pytest -v -Werror -m "not download"
}
package() { |
Thanks for the reply @bashonly, I'm pulling down the AUR from git & running "makepkg" within the directory as I usually do, it's a simple as that. Due to a prior FULL system update that day, python was upgraded, & a number of other AUR app's stopped working as a result. So assumed the usual, which I know I shouldn't do. I'm not manually running any pytest, unless that's being done via the PKGBUILD file itself (which it is, as I write this); I've made the change as directed within the file, & the compile has worked successfully:
Apologies, my coding skills are very much baseline, however I really do appreciate your response :) Thanks for all the help! |
All good. This will be resolved when #9765 is merged, which will be shortly before the next stable release of yt-dlp. Then this manual intervention in the PKGBUILD will no longer be necessary |
Good to know, thanks again! |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
United Kingdom
Provide a description that is worded well enough to be understood
I've UPGRADED my Arch system, python 3.12.3 has been installed... hmm, this is the second application that has stopped working(ProtonVPN). Look forward to the rest...
FAILED LINE:
test/test_InfoExtractor.py::TestInfoExtractor::test_search_nextjs_data FAILED [ 1%]
======================================================= FAILURES =======================================================
______________________________________ TestInfoExtractor.test_search_nextjs_data _______________________________________
self = <test.test_InfoExtractor.TestInfoExtractor testMethod=test_search_nextjs_data>
E AssertionError: DeprecationWarning not raised
test/test_InfoExtractor.py:1915: AssertionError
------------------------------------------------- Captured stderr call -------------------------------------------------
WARNING: [Dummy] unable to extract next.js data; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
=================================================== warnings summary ===================================================
test/test_InfoExtractor.py::TestInfoExtractor::test_search_nextjs_data
/home/traibr/aur-package/yt-dlp-git/src/yt-dlp/test/test_InfoExtractor.py:1916: DeprecationWarning: using
default='{}'
is deprecated, usedefault={}
insteadself.assertEqual(self.ie._search_nextjs_data('', None, default='{}'), {})
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: