@@ -29,8 +29,7 @@ def _check_google_client_version():
29
29
30
30
if (StrictVersion (_BIGQUERY_CLIENT_VERSION ) <
31
31
StrictVersion (bigquery_client_minimum_version )):
32
- raise ImportError ('pandas requires google-cloud-bigquery >= {0} '
33
- 'for Google BigQuery support, '
32
+ raise ImportError ('pandas-gbq requires google-cloud-bigquery >= {0}, '
34
33
'current version {1}'
35
34
.format (bigquery_client_minimum_version ,
36
35
_BIGQUERY_CLIENT_VERSION ))
@@ -42,22 +41,19 @@ def _test_google_api_imports():
42
41
from google_auth_oauthlib .flow import InstalledAppFlow # noqa
43
42
except ImportError as ex :
44
43
raise ImportError (
45
- 'pandas requires google-auth-oauthlib for Google BigQuery '
46
- 'support: {0}' .format (ex ))
44
+ 'pandas-gbq requires google-auth-oauthlib: {0}' .format (ex ))
47
45
48
46
try :
49
47
import google .auth # noqa
50
48
except ImportError as ex :
51
49
raise ImportError (
52
- "pandas requires google-auth for Google BigQuery support: "
53
- "{0}" .format (ex ))
50
+ "pandas-gbq requires google-auth: {0}" .format (ex ))
54
51
55
52
try :
56
53
from google .cloud import bigquery # noqa
57
54
except ImportError as ex :
58
55
raise ImportError (
59
- "pandas requires google-cloud-python for Google BigQuery support: "
60
- "{0}" .format (ex ))
56
+ "pandas-gbq requires google-cloud-bigquery: {0}" .format (ex ))
61
57
62
58
_check_google_client_version ()
63
59
0 commit comments