Merge pull request #569 from EverythingMe/fix/remove_warnings

Remove import warnings from query runners
This commit is contained in:
Arik Fraimovich 2015-09-20 12:39:46 +03:00
commit 00f4ec16f8
9 changed files with 0 additions and 23 deletions

View File

@ -23,9 +23,6 @@ try:
enabled = True enabled = True
except ImportError: except ImportError:
logger.warning("Missing dependencies. Please install google-api-python-client and oauth2client.")
logger.warning("You can use pip: pip install google-api-python-client oauth2client")
enabled = False enabled = False
types_map = { types_map = {

View File

@ -1,15 +1,11 @@
import datetime
import json import json
import logging import logging
import sys import sys
import urllib import urllib
from redash.query_runner import * from redash.query_runner import *
from redash import models
import requests import requests
import dateutil
from dateutil.parser import parse
try: try:
import http.client as http_client import http.client as http_client

View File

@ -13,9 +13,6 @@ try:
from dateutil import parser from dateutil import parser
enabled = True enabled = True
except ImportError: except ImportError:
logger.warning("Missing dependencies. Please install gspread, dateutil and oauth2client.")
logger.warning("You can use pip: pip install gspread dateutil oauth2client")
enabled = False enabled = False

View File

@ -11,8 +11,6 @@ try:
from pyhive import hive from pyhive import hive
enabled = True enabled = True
except ImportError, e: except ImportError, e:
logger.warning("Missing dependencies. Please install pyhive.")
logger.warning("You can use pip: pip install pyhive")
enabled = False enabled = False
COLUMN_NAME = 0 COLUMN_NAME = 0

View File

@ -12,8 +12,6 @@ try:
from impala.error import DatabaseError, RPCError from impala.error import DatabaseError, RPCError
enabled = True enabled = True
except ImportError, e: except ImportError, e:
logger.warning("Missing dependencies. Please install impyla.")
logger.warning("You can use pip: pip install impyla")
enabled = False enabled = False
COLUMN_NAME = 0 COLUMN_NAME = 0

View File

@ -11,8 +11,6 @@ try:
enabled = True enabled = True
except ImportError: except ImportError:
logger.warning("Missing dependencies. Please install influxdb.")
logger.warning("You can use pip: pip install influxdb")
enabled = False enabled = False
def _transform_result(results): def _transform_result(results):

View File

@ -2,7 +2,6 @@ import json
import datetime import datetime
import logging import logging
import re import re
import time
from dateutil.parser import parse from dateutil.parser import parse
from redash.utils import JSONEncoder from redash.utils import JSONEncoder
@ -17,8 +16,6 @@ try:
enabled = True enabled = True
except ImportError: except ImportError:
logger.warning("Missing dependencies. Please install pymongo.")
logger.warning("You can use pip: pip install pymongo")
enabled = False enabled = False

View File

@ -11,8 +11,6 @@ try:
enabled = True enabled = True
except ImportError: except ImportError:
logger.warning("Missing dependencies. Please install PyHive.")
logger.warning("You can use pip: pip install pyhive")
enabled = False enabled = False
PRESTO_TYPES_MAPPING = { PRESTO_TYPES_MAPPING = {

View File

@ -1,8 +1,6 @@
import sys
import datetime import datetime
import json import json
import logging import logging
import weakref
from redash.query_runner import * from redash.query_runner import *
from redash import models from redash import models