Better err message when libevwrapper is not found

This commit is contained in:
Tyler Hobbs
2014-03-11 19:08:26 -05:00
parent e5b751333c
commit ff7a05abec
2 changed files with 11 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ Other
-----
* Don't ignore column names when parsing typestrings. This is needed for
user-defined type support. (github issue #90)
* Better error message when libevwrapper is not found
1.0.2
=====

View File

@@ -14,7 +14,16 @@ from cassandra.connection import (Connection, ResponseWaiter, ConnectionShutdown
MAX_STREAM_PER_CONNECTION)
from cassandra.decoder import RegisterMessage
from cassandra.marshal import int32_unpack
import cassandra.io.libevwrapper as libev
try:
import cassandra.io.libevwrapper as libev
except ImportError:
raise ImportError(
"The C extension needed to use libev was not found. This "
"probably means that you didn't have the required build dependencies "
"when installing the driver. See "
"http://datastax.github.io/python-driver/installation.html#c-extensions "
"for instructions on installing build dependencies and building "
"the C extension.")
try:
from cStringIO import StringIO