Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorfturner committed Jun 12, 2024
1 parent 5d77c5b commit 7895e65
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions dataprofiler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Package for dataprofiler."""
import snappy

from . import settings
from .data_readers.data import Data
from .dp_logging import get_logger, set_verbosity
Expand All @@ -20,22 +22,6 @@
from .validators.base_validators import Validator
from .version import __version__

try:
import snappy
except ImportError:
import warnings

warnings.warn(
"Snappy must be installed to use parquet/avro datasets."
"\n\n"
"For macOS use Homebrew:\n"
"\t`brew install snappy`"
"\n\n"
"For linux use apt-get:\n`"
"\tsudo apt-get -y install libsnappy-dev`\n",
ImportWarning,
)


def set_seed(seed=None):
# also check it's an integer
Expand Down

0 comments on commit 7895e65

Please sign in to comment.