Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Python error when executing via crond #1840
Comments
|
Sorry for the problem and thanks for the report! You are right, that change introduced a bug. |
|
Thanks for the rapid feedback! I actually use Arch's built-in package manager (pacman). I tried setting youtube-dl up via pip but failed horribly when it told me something about unknown distributions and such. Thanks again! |
|
You may find it preferable to use the youtube-dl-git package on the ALUR. That way you can rebuild whenever a new fix is included. |
|
Fixed in youtube-dl 2013.11.28. You'll still get the warning (and messed-up filenames) though. Set the |
I think #1810/#1811 might have introduced an error? I get the following message with the current version (2013-11-25.3), executing a script via cron:
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2013.11.25.3', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 693, in main
_real_main(argv)
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 656, in _real_main
with YoutubeDL(ydl_opts) as ydl:
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 164, in init
u'Assuming --restrict-filenames since file system encoding '
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 301, in report_warning
self.to_stderr(warning_message)
File "/usr/lib/python3.3/site-packages/youtube_dl/YoutubeDL.py", line 219, in to_stderr
if self.params.get('logger'):
AttributeError: 'NoneType' object has no attribute 'get'
Here's the command:
nice -n 19 youtube-dl --playlist-end 20 -c -i --max-quality 22 -o "%(title)s.%(id)s.%(ext)s" https://www.youtube.com/user/username
uname -a:
Linux rpi 3.10.19-3-ARCH #1 PREEMPT Thu Nov 21 20:33:10 CST 2013 armv6l GNU/Linux
This only happens when using cron. Downgrading to version 2013-11-18 fixed it for me.