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
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
types_map = {

View File

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

View File

@ -13,9 +13,6 @@ try:
from dateutil import parser
enabled = True
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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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