Skip to content
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

error when running without stderr (and/or stdout)? #1861

Closed
rpodgorny opened this issue Nov 30, 2013 · 1 comment
Closed

error when running without stderr (and/or stdout)? #1861

rpodgorny opened this issue Nov 30, 2013 · 1 comment

Comments

@rpodgorny
Copy link

@rpodgorny rpodgorny commented Nov 30, 2013

hi!

i'm running youtube-dl from cron but recently, it started to fail.

Traceback (most recent call last):
File "/bin/youtube-dl", line 9, in
load_entry_point('youtube-dl==2013.11.26', 'console_scripts', 'youtube-dl')()
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 694, in main
_real_main(argv)
File "/usr/lib/python3.3/site-packages/youtube_dl/init.py", line 657, 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'

...when run from terminal, everything works fine.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 30, 2013

Duplicate of #1840. Update to youtube-dl 2013.11.28 or newer. You may also want to set the LC_ALL environment variable to something sensible (like en_US.UTF-8). This will fix this error, and you will get way better filenames.

@phihag phihag closed this Nov 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.