Errors in httplib.py when processing google_upload.py in a shell
script
Super Bisquit
superbisquit at gmail.com
Sun Aug 14 03:19:32 UTC 2011
tima# sh pr*
Traceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 99, in upload
server.request('POST', upload_uri, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1154, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 4] Non-recoverable failure in name resolution
project-uploads.sh: 7: Syntax error: "&&" unexpected
tima# sh p2.sh
Traceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 99, in upload
server.request('POST', upload_uri, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1154, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 4] Non-recoverable failure in name resolution
Traceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 99, in upload
server.request('POST', upload_uri, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1154, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 4] Non-recoverable failure in name resolution
Traceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 99, in upload
server.request('POST', upload_uri, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1154, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 4] Non-recoverable failure in name resolution
Traceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 99, in upload
server.request('POST', upload_uri, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1154, in connect
^Cself.timeout, self.source_address)
Traceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 99, in upload
server.request('POST', upload_uri, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 955, in request
self._send_request(method, url, body, headers)
File "/usr/local/lib/python2.7/httplib.py", line 989, in _send_request
self.endheaders(body)
File "/usr/local/lib/python2.7/httplib.py", line 951, in endheaders
self._send_output(message_body)
File "/usr/local/lib/python2.7/httplib.py", line 811, in _send_output
self.send(msg)
File "/usr/local/lib/python2.7/httplib.py", line 773, in send
self.connect()
File "/usr/local/lib/python2.7/httplib.py", line 1154, in connect
self.timeout, self.source_address)
File "/usr/local/lib/python2.7/socket.py", line 553, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 4] Non-recoverable failure in name resolution
^CTraceback (most recent call last):
File "googlecode_upload.py", line 51, in <module>
import httplib
File "/usr/local/lib/python2.7/httplib.py", line 73, in <module>
from urlparse import urlsplit
File "/usr/local/lib/python2.7/urlparse.py", line 110, in <module>
from collections import namedtuple
File "/usr/local/lib/python2.7/collections.py", line 16, in <module>
from thread import get_ident as _get_ident
KeyboardInterrupt
^CTraceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
^CTraceback (most recent call last):
File "googlecode_upload.py", line 51, in <module>
import httplib
File "/usr/local/lib/python2.7/httplib.py", line 1133, in <module>
import ssl
File "/usr/local/lib/python2.7/ssl.py", line 56, in <module>
"""
KeyboardInterrupt
^CTraceback (most recent call last):
File "googlecode_upload.py", line 248, in <module>
sys.exit(main())
File "googlecode_upload.py", line 236, in main
options.user, options.password)
File "googlecode_upload.py", line 187, in upload_find_auth
summary, labels)
File "googlecode_upload.py", line 87, in upload
^Ccontent_type, body = encode_upload_request(form_fields, file)
^C
tima#
tima#
I'm only interested as to why the FreeBSD python libraries failed.
More information about the freebsd-python
mailing list