Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33097 - [youtube-dl] "-o my-outputtemplate" does not work with Python3

Attached to Project: Community Packages
Opened by P.H. (Vain) - Friday, 14 December 2012, 18:49 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 16 December 2012, 01:44 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The shebang line of youtube-dl is no longer changed to python2:

https://projects.archlinux.org/svntogit/community.git/commit/trunk/PKGBUILD?h=packages/youtube-dl&id=8b6a224a8bf8912074a1aa2010ab6e16684b0a7d

Sadly, the script doesn't work with python3:

Traceback (most recent call last):
File "/usr/lib/python3.3/runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.3/runpy.py", line 73, in _run_code
exec(code, run_globals)
File "/usr/bin/youtube-dl/__main__.py", line 17, in <module>
File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 596, in main
File "/usr/bin/youtube-dl/youtube_dl/__init__.py", line 523, in _real_main
AttributeError: 'str' object has no attribute 'decode'
This task depends upon

Closed by  Eric Belanger (Snowman)
Sunday, 16 December 2012, 01:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  I've reverted the package to use python2 until the port to python 3 is ironed out.
Comment by Lex Black (TrialnError) - Friday, 14 December 2012, 21:00 GMT
Quote from hp: youtube-dl is a small command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter (2.6, 2.7, or 3.3+), (...)


And I can say youtube-dl works for me
Comment by P.H. (Vain) - Friday, 14 December 2012, 21:24 GMT
Gah, well.

You're right -- kind of. It works, unless you're using the option "-o my-outputtemplate". It appears that only works with Python2.

I guess that's an upstream bug then... Sorry for the noise.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 15 December 2012, 16:16 GMT
Thanks for reporting, please report it upstream at https://github.com/rg3/youtube-dl/issues and include a link to the issue here.
(We could close it as "Upstream" too, but often we keep the bug report open and follow the issue until upstream has resolved it).
Comment by P.H. (Vain) - Saturday, 15 December 2012, 16:32 GMT
Ah, alright. :) Upstream bug report:

https://github.com/rg3/youtube-dl/issues/591
Comment by Alexander F. Rødseth (xyproto) - Saturday, 15 December 2012, 16:38 GMT
Thanks!

Loading...