badershs / youtube-upload

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

A connection attempt failed because the connected party did not properly respond after a period of time #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions

youtube-upload:0.7.3
python:2.6.6
python-gdata:2.0.18

When I follow the description to run the youtube_upload.py under command line, 
I encountered the error below:

Traceback (most recent call last):
  File "C:\wamp\www\upload_youtube.py", line 512, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
  File "C:\wamp\www\upload_youtube.py", line 111, in catch_exceptions
    fun(*args, **kwargs)
  File "C:\wamp\www\upload_youtube.py", line 510, in main
    run_main(parser, options, args)
  File "C:\wamp\www\upload_youtube.py", line 450, in run_main
    url = upload_video(youtube, options, video_path, len(args), index)
  File "C:\wamp\www\upload_youtube.py", line 361, in upload_video
    entry = youtube.upload_video(*args, **kwargs)
  File "C:\wamp\www\upload_youtube.py", line 203, in upload_video
    video_entry = self._create_video_entry(*args, **kwargs)
  File "C:\wamp\www\upload_youtube.py", line 264, in _create_video_entry
    self.categories = self.get_categories()
  File "C:\wamp\www\upload_youtube.py", line 298, in get_categories
    xmldata = str(urllib.urlopen(cls.CATEGORIES_SCHEME).read())
  File "C:\Python26\lib\urllib.py", line 86, in urlopen
    return opener.open(url)
  File "C:\Python26\lib\urllib.py", line 207, in open
    return getattr(self, name)(url)
  File "C:\Python26\lib\urllib.py", line 346, in open_http
    h.endheaders()
  File "C:\Python26\lib\httplib.py", line 908, in endheaders
    self._send_output()
  File "C:\Python26\lib\httplib.py", line 780, in _send_output
    self.send(msg)
  File "C:\Python26\lib\httplib.py", line 739, in send
    self.connect()
  File "C:\Python26\lib\httplib.py", line 720, in connect
    self.timeout)
  File "C:\Python26\lib\socket.py", line 561, in create_connection
    raise error, msg
IOError: [Errno socket error] [Errno 10060] A connection attempt failed because
the connected party did not properly respond after a period of time, or 
established connection failed because connected host has failed to respond

Is anyone knows this?

Thanks in advance!

Original issue reported on code.google.com by ga46...@gmail.com on 4 Dec 2013 at 5:52

GoogleCodeExporter commented 9 years ago
This works?

$ curl http://gdata.youtube.com/schemas/2007/categories.cat

Original comment by tokland on 7 Dec 2013 at 9:38

GoogleCodeExporter commented 9 years ago
I have the problem what can I do

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 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'}

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

GoogleCodeExporter commented 9 years ago
I want to selected Youtube Channel.
What Can I do?

Original comment by mustafa....@gmail.com on 13 Dec 2013 at 3:51

GoogleCodeExporter commented 9 years ago
> NoLinkedYouTubeAccount

You have to link yout youtube account. Use the browser to do that (try to 
upload a video normally first)

OP, no feedbakc?

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

GoogleCodeExporter commented 9 years ago

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