Socket error when connect to Google Big Query in my local PC -


it working fine me run following steps in past 2 days connect big query in pycharm in pc

step 1:gcloud auth application-default login   step 2 :then connect bg in pycharm in local pc. 

however, when used same method try today: below error occurs:

since behind "great wall" in china, can use vpn login in google cloud, not sure if caused vpn or have setting of google'account ? however, tried "service-account-key", happen same issue log:

traceback (most recent call last):   file "c:/users/emma/pycharmprojects/gcp/init.py", line 134, in <module>     explicit()   file "c:/users/emma/pycharmprojects/gcp/init.py", line 54, in explicit     dataset in bigquery_client.list_datasets():   file "c:\python27\lib\site-packages\google\cloud\iterator.py", line 218, in _items_iter     page in self._page_iter(increment=false):   file "c:\python27\lib\site-packages\google\cloud\iterator.py", line 247, in _page_iter     page = self._next_page()   file "c:\python27\lib\site-packages\google\cloud\iterator.py", line 347, in _next_page     response = self._get_next_page_response()   file "c:\python27\lib\site-packages\google\cloud\iterator.py", line 396, in _get_next_page_response     query_params=params)   file "c:\python27\lib\site-packages\google\cloud\_http.py", line 299, in api_request     headers=headers, target_object=_target_object)   file "c:\python27\lib\site-packages\google\cloud\_http.py", line 193, in _make_request     return self._do_request(method, url, headers, data, target_object)   file "c:\python27\lib\site-packages\google\cloud\_http.py", line 223, in _do_request     body=data)   file "c:\python27\lib\site-packages\google_auth_httplib2.py", line 187, in request     self._request, method, uri, request_headers)   file "c:\python27\lib\site-packages\google\auth\credentials.py", line 121, in before_request     self.refresh(request)   file "c:\python27\lib\site-packages\google\oauth2\service_account.py", line 310, in refresh     request, self._token_uri, assertion)   file "c:\python27\lib\site-packages\google\oauth2\_client.py", line 143, in jwt_grant     response_data = _token_endpoint_request(request, token_uri, body)   file "c:\python27\lib\site-packages\google\oauth2\_client.py", line 104, in _token_endpoint_request     method='post', url=token_uri, headers=headers, body=body)   file "c:\python27\lib\site-packages\google_auth_httplib2.py", line 116, in __call__     url, method=method, body=body, headers=headers, **kwargs)   file "c:\python27\lib\site-packages\httplib2\__init__.py", line 1609, in request     (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)   file "c:\python27\lib\site-packages\httplib2\__init__.py", line 1351, in _request     (response, content) = self._conn_request(conn, request_uri, method, body, headers)   file "c:\python27\lib\site-packages\httplib2\__init__.py", line 1272, in _conn_request     conn.connect()   file "c:\python27\lib\site-packages\httplib2\__init__.py", line 1075, in connect     raise socket.error, msg socket.error: [errno 10060]  

i update python-cloud library, works fine now. hope keep time :(


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -