from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

__all__ = ['DataFrameClient']

try:
    import pandas
    del pandas
except ImportError as err:
    from .client import InfluxDBClient

    class DataFrameClient(InfluxDBClient):
        def __init__(self, *a, **kw):
            raise ImportError("DataFrameClient requires Pandas "
                              "which couldn't be imported: %s" % err)
else:
    from ._dataframe_client import DataFrameClient

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

__all__ = ['DataFrameClient']

try:
    import pandas
    del pandas
except ImportError as err:
    from .client import InfluxDBClient

    class DataFrameClient(InfluxDBClient):
        err = err

        def __init__(self, *a, **kw):
            raise ImportError("DataFrameClient requires Pandas "
                              "which couldn't be imported: %s" % self.err)
else:
    from ._dataframe_client import DataFrameClient

Fix DataFrameClient import error on python3.5
Fix DataFrameClient import error on python3.5

  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  
  __all__ = ['DataFrameClient']
  
  try:
      import pandas
      del pandas
  except ImportError as err:
      from .client import InfluxDBClient
  
      class DataFrameClient(InfluxDBClient):
+         err = err
+ 
          def __init__(self, *a, **kw):
              raise ImportError("DataFrameClient requires Pandas "
-                               "which couldn't be imported: %s" % err)
+                               "which couldn't be imported: %s" % self.err)
  else:
      from ._dataframe_client import DataFrameClient
  
Fix DataFrameClient import error on python3.5
## Code Before:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

__all__ = ['DataFrameClient']

try:
    import pandas
    del pandas
except ImportError as err:
    from .client import InfluxDBClient

    class DataFrameClient(InfluxDBClient):
        def __init__(self, *a, **kw):
            raise ImportError("DataFrameClient requires Pandas "
                              "which couldn't be imported: %s" % err)
else:
    from ._dataframe_client import DataFrameClient

## Instruction:
Fix DataFrameClient import error on python3.5
## Code After:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

__all__ = ['DataFrameClient']

try:
    import pandas
    del pandas
except ImportError as err:
    from .client import InfluxDBClient

    class DataFrameClient(InfluxDBClient):
        err = err

        def __init__(self, *a, **kw):
            raise ImportError("DataFrameClient requires Pandas "
                              "which couldn't be imported: %s" % self.err)
else:
    from ._dataframe_client import DataFrameClient
