wintermute123 / youtube-upload

Automatically exported from code.google.com/p/youtube-upload
0 stars 0 forks source link

Maybe script doesn't correctly parse/encode non-Alphanumeric chars? [similar to Issue #109] #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
= Versions

youtube-upload: 0.7.2
python: 2.7.3
python-gdata: 2.0.17+dfsg-1

= Describe the steps (including the command you run) that will reproduce
the problem?

I don't put the password option in, so it prompts me (which is good). I have 
non-alphanumeric chars in my email password. I have previously logged into the 
account and posted videos using the browser. Below is the error message I 
receive. I have tried the default method, as well and the api upload, and the 
error message is the same.

#locale charmap returns UTF-8

Any assistance/guidance is appreciated.

<error_msg>

youtube-upload --api-upload --email="myEmail@gmail.com" --title="videoTitle" 
--category="Music"  myVideo.avi 
Password for account <myEmail@gmail.com>: 
Login to Youtube API: email='myEmail@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'

</error_msg>

Original issue reported on code.google.com by moss.chr...@gmail.com on 13 Jun 2013 at 5:46

GoogleCodeExporter commented 8 years ago
It's fixed in the repo. Put a description for now.

Original comment by tokland on 13 Jun 2013 at 7:30

GoogleCodeExporter commented 8 years ago

Original comment by tokland on 13 May 2014 at 8:32