wintermute123 / youtube-upload

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

I have this problem what can i do #129

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I heave this problem what can i do

  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 359, in upload_video
    data = youtube.get_upload_form_data(*args, **kwargs)
  File "/usr/local/bin/youtube-upload", line 193, in get_upload_form_data
    post_url, token = self.service.GetFormUploadToken(entry)
  File "/usr/lib/python2.7/dist-packages/gdata/youtube/service.py", line 721, in GetFormUploadToken
    raise YouTubeError(e.args[0])
gdata.youtube.service.YouTubeError: {'status': 401, 'body': 
'<HTML>\n<HEAD>\n<TITLE>NoLinkedYouTubeAccount</TITLE>\n</HEAD>\n<BODY 
BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>NoLinkedYouTubeAccount</H1>\n<H2>Error 
401</H2>\n</BODY>\n</HTML>\n', 'reason': 'NoLinkedYouTubeAccount'}

by 

sudo youtube-upload /home/pi/youtube-upload1/youtube_upload/youtube_upload.py 
--email="user" --password="pw" --title="60" --description="NRG" 
--category="Games" --keywords="EnergyGames" --private cd /media/usbstick/60.mkv

Original issue reported on code.google.com by Visarii...@gmail.com on 7 Dec 2013 at 11:34

GoogleCodeExporter commented 8 years ago
The error says: NoLinkedYouTubeAccount.

Login with that account and try to upload a video manually first

Original comment by tokland on 7 Dec 2013 at 1:28

GoogleCodeExporter commented 8 years ago
sry I'm a beginner in the field.
how do I do that

I start the upload with the command

sudo youtube-upload / home/pi/youtube-upload1/youtube_upload/youtube_upload.py 
- email = "user" - password = "pw" - title = "60" - description = "NRG" - 
category = "Games" - keywords = "Energy Games" - private cd / 
media/usbstick/60.mkv

Original comment by Visarii...@gmail.com on 7 Dec 2013 at 2:06

GoogleCodeExporter commented 8 years ago
Just try to upload a video using the browser first through the web page.

Original comment by tokland on 7 Dec 2013 at 2:08

GoogleCodeExporter commented 8 years ago
Just try to upload a video using the browser first through the web page.

Original comment by tokland on 7 Dec 2013 at 2:08

GoogleCodeExporter commented 8 years ago
with ssh?

how does it work

Original comment by Visarii...@gmail.com on 7 Dec 2013 at 2:11

GoogleCodeExporter commented 8 years ago
no, no, just go to www.youtube.com and upload a video as a normal user. Then 
try the script.

Original comment by tokland on 7 Dec 2013 at 5:01

GoogleCodeExporter commented 8 years ago
with remote desctop
or how does that work over ssh
sry my english is very bad

thx for help

Original comment by Visarii...@gmail.com on 7 Dec 2013 at 6:45

GoogleCodeExporter commented 8 years ago

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