I am trying to install a program called metaBIT. I was able to add it to my PATH. But when I execute:
metaBIT -h
It errors and gives me this:
Traceback (most recent call last):
File "/Users/twpierson/edirect/metaBIT", line 12, in <module>
import pysam
File "//anaconda/lib/python2.7/site-packages/pysam/__init__.py", line 5, in <module>
from pysam.libchtslib import *
ImportError: dlopen(//anaconda/lib/python2.7/site- packages/pysam/libchtslib.so, 2): Library not loaded: libcurl.4.dylib
Referenced from: //anaconda/lib/python2.7/site-packages/pysam/libchtslib.so
Reason: Incompatible library version: libchtslib.so requires version 9.0.0 or later, but libcurl.4.dylib provides version 7.0.0
I have tried every available suggestion on this error using google search.
I attempted to uninstall and reinstall pysam.
pip uninstall pysamp
pip install pysam
I still get the same error. Please help!
I would recommend installing the
MacPorts
orHomebrew
version ofcURL
:This will install the latest version of
cURL
(7.52.1 at this time) using MacPorts in/opt/local/bin/curl
. MacPorts should do all the linking needed to use this latest version of cURL with macOS/OS X. After installing you can check thelibcurl.4.dylib
version by: