Closed benoit74 closed 8 months ago
Bingo, urllib3 dependency has been added to yt-dlp only 4 days ago: https://github.com/yt-dlp/yt-dlp/blame/master/requirements.txt
Luckily it seems they still support 1.29, so it is probably only a issue in the way we install / upgrade yt-dlp
Issue is in fact already solved in development version. Unfortunately there are other issues which are preventing this development version from being tested / released, I'm working on it with #185
I just started again canadian_prepper
recipe with the (fixed) development version, I will monitor it and if it succeeds, I will release a 2.2.0 version of the scrapper with current development status (and postpone pending issues to a 2.3.0).
I cancelled the task because it felt like it did not made any progress, but it was just encoding the video in fact (and it takes time obviously). New task is behaving correctly so I will close this issue (nothing had to be done aside releasing new codebase) and release 2.2.0 with currently fixed issues.
Just to be clear (not sure I understand the process here), you should test your changes locally on your machine. Zimfarm should not be used to test scraper code.
I ran scraper first on my machine and it started successfully. Since Youtube is a long running task and the change was minimal (just fixed a minor bug at scraper startup + rollback to Python 3.10), I assumed it was ok and that we can merge the change.
However since the changes in main
branch were pending since a long time and because the scraper was not working anymore on the Zimfarm anyway and because I wanted to make a release, I decided to start the dev
image in one recipe to let it run a bit longer than on my machine and be sure it was ok to release.
If the change had been more significant or if the scraper was ok in Zimfarm or if it was not yet the moment to make a release, I wouldn't have tested this on the Zimfarm, I would have selected a small Youtube playlist and ran it to completion locally.
I'm ok that "in general", we shouldn't test on the Zimfarm, but I consider there are always good reasons to make exception.
Is this process ok for you or not? I don't really mind it this is not ok for you and you do not want any test to be done on the Zimfarm, I can live with it. Even if it feels a bit weird to me since somehow this is exactly what the content team is doing all day long when they are setting up recipes with a trial and error process.
@rgaudin @kelson42 is my answer ok for you or should I change my way of working? (without further guidance, I will continue to proceed "as-is")
I'm ok that "in general", we shouldn't test on the Zimfarm, but I consider there are always good reasons to make exception.
My POV as well.
it feels a bit weird to me since somehow this is exactly what the content team is doing all day long when they are setting up recipes with a trial and error process
They are not testing the software. They are using released scrapers that are supposed to work and if it doesn't (given it's not a recipe error), they should open a ticket on the scraper's repo. zimit is different in that no one is able to predict the output of a particular scrape. There's no better (accessible) way to do it at the moment. zimit is an exception
Also, expectations towards content team and developers are different 😉
In canadian_prepper recipe, we just saw with @RavanJAltaie and @Popolechien that we keep getting an error about ssl ciphers.
See for instance last task where everything else is supposed setup properly.
STDERR:
Looks like this is an incompatibility of urllib3 libraries. I did not investigated any further yet but I'm afraid it might be linked to the continuous update of
yt-dlp
library which might have updatedurllib3
(there is nothing else which has been updated in this scraper for months) and might hence impact all youtube recipes.