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

Parameter outtmpl is bytes , but should be a unicode string. Put from __future__ import unicode_literals at the top of your code f ile or consider switching to Python 3.x. #12438

Closed
Jfeng3 opened this issue Mar 13, 2017 · 1 comment

Comments

@Jfeng3
Copy link

@Jfeng3 Jfeng3 commented Mar 13, 2017

Just made a web app using youtube-dl python package
the app run perfectly on local mac os machine
when I deploy to aws elasticbeanstalk, ( which is linux machine ) . it gave the error

Parameter outtmpl is bytes , but should be a unicode string. Put  from __future__ import unicode_literals  at the top of your code file or consider switching to Python 3.x.

Any clue how to resolve this

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 13, 2017

It's not an error but a warning in the first place. Did you even read the the text?! It clearly states that outtmpl must be unicode string not bytestring.

@dstftw dstftw closed this Mar 13, 2017
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.