diff options
author | Prashanth Pai <ppai@redhat.com> | 2015-06-17 13:02:04 +0530 |
---|---|---|
committer | Prashanth Pai <ppai@redhat.com> | 2015-06-17 13:05:35 +0530 |
commit | 904ca8ff630cb81fbd35ba337de12643376e058e (patch) | |
tree | 4903343baee6387c0cbe960c295a70ac9a8c163e /gluster/exceptions.py | |
parent | 1943dcd4c9ad652013592653b087350560b7a778 (diff) |
Raise Exception if ctypes.CDLL() cannot load .so
Usually, this failure happens in source installs of glusterfs.
find_library() is able to find the .so file but ctypes.CDLL()
cannot load it!
Refer: http://bugs.python.org/issue18502
With this change, users are advised to modify LD_LIBRARY_PATH
when exception is raised
Also, passed the LD_LIBRARY_PATH env variable to tox environment
so that unit tests and functional tests can run.
Change-Id: Iffc5633088b3886739a8534692db88db7c3d02b7
Signed-off-by: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'gluster/exceptions.py')
0 files changed, 0 insertions, 0 deletions