AttributeError: 'NoneType' object has no attribute 'decode'
Closed this issue · 4 comments
GoogleCodeExporter commented
= Versions
youtube-upload: 0.7.2
python: 2.7.4
python-gdata: 2.0.17
= Describe the steps (including the command you run) that will reproduce
the problem?
Simply trying to upload for the first time. This is the error I get (I edited
the account name and video properties).
user@server [~]# youtube-upload --email=thisisatest@gmail.com --password=******
--title="test" --category=Gaming --keywords="some, keywords" this_is_a_test.mp4
Login to Youtube API: email='thisisatest@gmail.com', password='***********'
Traceback (most recent call last):
File "/usr/local/bin/youtube-upload", line 512, in <module>
sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
File "/usr/local/bin/youtube-upload", line 111, in catch_exceptions
fun(*args, **kwargs)
File "/usr/local/bin/youtube-upload", line 509, in main
run_main(parser, options, args)
File "/usr/local/bin/youtube-upload", line 444, in run_main
url = upload_video(youtube, options, video_path, len(args), index)
File "/usr/local/bin/youtube-upload", line 337, in upload_video
description = to_utf8(options.description).decode("string-escape")
AttributeError: 'NoneType' object has no attribute 'decode'
user@server [~]#
Original issue reported on code.google.com by helo...@gmail.com
on 13 Apr 2013 at 7:30
- Merged into: #101
GoogleCodeExporter commented
Argg, I just fixed it. I figured I was missing something since the "NoneType"
error meant something was equal to None.
I was missing the --description part in the command. After adding it,
everything worked. The resulting command line looked like this:
user@server [~]# youtube-upload --email=thisisatest@gmail.com --password=******
--title="test" --category=Gaming --keywords="some, keywords"
--description="This is a test" this_is_a_test.mp4
Login to Youtube API: email='thisisatest@gmail.com', password='***********'
Install pycurl to upload the video using HTTP
Start upload using basic gdata API: this_is_a_test.mp4
https://www.youtube.com/watch?v=*********
Sorry for the trouble.
Original comment by helo...@gmail.com
on 13 Apr 2013 at 7:42
GoogleCodeExporter commented
no problem, in fact it was a bug, it was fixed in issue101.
Original comment by tokland
on 13 Apr 2013 at 7:49
- Changed state: Duplicate
GoogleCodeExporter commented
Issue 113 has been merged into this issue.
Original comment by tokland
on 13 Jun 2013 at 7:30
GoogleCodeExporter commented
Original comment by tokland
on 13 May 2014 at 8:32