vishnukraj / youtube-upload

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

No Upload on IPv6 #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
= Versions

OS: Raspbian GNU/Linux 7
youtube-upload: youtube-upload (0.7.3) stable
python: Python 2.7.3-4+deb7u1
python-gdata:  2.0.17+dfsg-1

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

/home/user/youtube-uploader/youtube_upload/youtube_upload.py --email="hidden" 
--password="hidden" \
                        --title="`myvideo"  \
                        --keywords="foo,bar,etc" \
                        --description="$(< /home/user/description.txt)" \
                        --category=Games \
                        --private /home/user/myvideo.mp4

On IPv4 it's working fine (thanks a lot by the way!), but on IPv6 it hangs  
directly after "Login to Youtube API: email='hidden', password='******'
"

Original issue reported on code.google.com by lom.pich...@googlemail.com on 7 May 2014 at 8:02

GoogleCodeExporter commented 9 years ago
Can you you do a control+c to see at where it gets stuck?

Original comment by tokland on 7 May 2014 at 9:15

GoogleCodeExporter commented 9 years ago
This is the output:

Login to Youtube API: email='hidden', password='******'
^CTraceback (most recent call last):
  File "/home/pichunter/youtube-uploader/youtube_upload/youtube_upload.py", line 519, in <module>
    sys.exit(catch_exceptions(EXIT_CODES, main, sys.argv[1:]))
  File "/home/pichunter/youtube-uploader/youtube_upload/youtube_upload.py", line 111, in catch_exceptions
    fun(*args, **kwargs)
  File "/home/pichunter/youtube-uploader/youtube_upload/youtube_upload.py", line 516, in main
    run_main(parser, options, args)
  File "/home/pichunter/youtube-uploader/youtube_upload/youtube_upload.py", line 412, in run_main
    captcha_response=options.captcha_response)
  File "/home/pichunter/youtube-uploader/youtube_upload/youtube_upload.py", line 192, in login
    self.service.ProgrammaticLogin(captcha_token, captcha_response)
  File "/usr/lib/python2.7/dist-packages/gdata/service.py", line 770, in ProgrammaticLogin
    headers={'Content-Type':'application/x-www-form-urlencoded'})
  File "/usr/lib/python2.7/dist-packages/atom/http.py", line 163, in request
    connection.endheaders()
  File "/usr/lib/python2.7/httplib.py", line 958, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 818, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 780, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 1161, in connect
    self.timeout, self.source_address)
  File "/usr/lib/python2.7/socket.py", line 562, in create_connection
    sock.connect(sa)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
KeyboardInterrupt

Original comment by lom.pich...@googlemail.com on 8 May 2014 at 6:09

GoogleCodeExporter commented 9 years ago
Now it works! 
Looks like my ISP hasn't routed IPv6 packets correctly... sorry for that.

Original comment by lom.pich...@googlemail.com on 9 May 2014 at 10:51

GoogleCodeExporter commented 9 years ago
ok, closing then, I had no clue what to check :)

Original comment by tokland on 9 May 2014 at 10:53