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

"-o my-output-template" does not work with Python3 #591

Closed
vain opened this issue Dec 15, 2012 · 2 comments
Closed

"-o my-output-template" does not work with Python3 #591

vain opened this issue Dec 15, 2012 · 2 comments

Comments

@vain
Copy link

@vain vain commented Dec 15, 2012

When running youtube-dl with Python3, the parameter "-o" is broken:

$ youtube-dl -o my-output-template 'https://www.youtube.com/watch?v=whatever'
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'

With Python2, it's fine.

Running youtube-dl on Arch Linux (Python 3.3.0). Let me know if you need further information.

Thanks!

@xyproto
Copy link

@xyproto xyproto commented Dec 15, 2012

Corresponding Arch Linux bug report: https://bugs.archlinux.org/task/33097

@phihag phihag closed this in 5cb9c31 Dec 15, 2012
@phihag
Copy link
Contributor

@phihag phihag commented Dec 15, 2012

I believe this has been fixed in git, and will be in the next release. Thanks for reporting! Unfortunately, we just enabled basic Python 3 support at all, and are still in the process of fixing quite a lot of bugs.

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
3 participants
You can’t perform that action at this time.