python2.7/dist-packages/requests/packages/urllib3/util/connection.py", line 77, in create_connection sock.bind(source_address) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) TypeError: getsockaddrarg: AF_INET address must be tuple, not str...
File "c:\Python38\lib\site-packages\docker\transport\unixconn.py", line 33, in connect sock.connect(self.unix_socket) TypeError: connect(): AF_INET address must be tuple, not str moti-malkacommentedJan 2, 2022 Any idea? i have same issue ...
也可以是AF_INET(对于IPV4协议的TCP和 UDP),至于type参数,SOCK_STREAM(流套接字)或者 SOCK_DGRAM...
"""try:# IP address: family must be specified for IPv6 at leastip = ip_address(host) host = str(ip) sock = socket.socket( socket.AF_INET6ifip.version ==6elsesocket.AF_INET)exceptValueError:# Hostname, may becomeAF_INETor AF_INET6sock = socket.socket() sock.setsockopt(socket.SOL_...
family, socktype, proto, name, address = result[0]iffamily == AF_INET:iflen(sockaddr) !=2:raiseerror("IPv4 sockaddr must be 2 tuple")eliffamily ==AF_INET6: address = address[:2] + sockaddr[2:] self.ares.getnameinfo(waiter, address, flags) ...
def __init__(self, addr: Union[str, tuple, socket.socket]): """ Args: addr: can be /var/run/usbmuxd or (localhost, 27015) """ self._sock = None if isinstance(addr, socket.socket): self._sock = addr return if isinstance(addr, str): if not os.path.exists(addr): raise MuxEr...
Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} python / cpython Public Notifications You must be signed in to change notification settings Fork 30.7k ...
Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} cg123 / vllm Public forked from vllm-project/vllm Notifications You must be signed in to change notification settings Fork 0 Star ...
family, _socktype, _proto, _name, address = result[0]iffamily == AF_INET:iflen(sockaddr) !=2:raiseerror("IPv4 sockaddr must be 2 tuple")eliffamily == AF_INET6: address = address[:2] + sockaddr[2:] self.ares.getnameinfo(waiter, address, flags) ...
# 需要導入模塊: import socket [as 別名]# 或者: from socket importAF_UNIX[as 別名]def_make_gevent_unix_socket(self, socket_file):# the socket file must not exist prior to bind()ifos.path.exists(socket_file):# avoid nuking regular files and symbolic links (could be a mistype or securit...