IOError: [Errno 93] could not open alignment file `https://...`: Protocol not supported
1
1
Entering edit mode
5.3 years ago
jfreidin1 ▴ 10

I have pysam code that works fine with pyenv-virtualenv on OSX but fails with miniconda2 on Centos:

IOError: [Errno 93] could not open alignment file `https://...`: Protocol not supported

After reading a lot of stuff I tried conda install libcurl (which worked), and then in pysam/, python setup.py install. It still complains:

Support for HTTPS and other SSL-based URLs requires routines from the libcurl
library <http://curl.haxx.se/libcurl/>.  Building HTSlib with libcurl enabled
requires libcurl development files to be installed on the build machine; you
may need to ensure a package such as libcurl4-{gnutls,nss,openssl}-dev (on
Debian or Ubuntu Linux) or libcurl-devel (on RPM-based Linux distributions
or Cygwin) is installed.

I don't seem to be able to find a libcurl-devel package for conda and I don't have root access to install it. Any suggestions?

software error • 1.6k views
ADD COMMENT
0
Entering edit mode

Try fetching pysam with conda as well before digging deeper into this and see if it solves the issue.

ADD REPLY
0
Entering edit mode

The first thing I tried:

conda install -y matplotlib pysam scikit-bio==0.4.2 pyensembl

That installed pysam==0.15.0 and worked fine for local bam files, but failed when I tried to open an https URL. I've attempted a few workarounds, including pip install -U pysam (0.15.1), uninstalling pysam from both conda and pip, and cloning the pysam repo and running python setup.py install (0.15.2). They all behave exactly the same way. If I could satisfy the libcurl-devel prerequisite I think I would be all set but I can't figure out how to do that without root access. I've also tried with and without HTSLIB_CONFIGURE_OPTIONS=--enable-plugins. I'm not entirely sure which one I should be using.

I'm running 0.15.2 built locally on OSX so I may need to build pysam locally anyway. It works on OSX because libcurl is present. Usually I can figure stuff like this out, but I'm completely stumped.

ADD REPLY
0
Entering edit mode
5.3 years ago
jfreidin1 ▴ 10

Cloud Platform folks installed libcurl-devel for me. That worked.

ADD COMMENT

Login before adding your answer.

Traffic: 2708 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6