GithubHelp home page GithubHelp logo

Comments (7)

ghuls avatar ghuls commented on June 24, 2024

Does the command line version of curl work for you?

curl -O "https://data.broadinstitute.org/compbio1/PhyloCSFtracks/hg19/latest/PhyloCSF+0.bw"

from pybigwig.

dpryan79 avatar dpryan79 commented on June 24, 2024

@hussius As @ghuls mentioned, if you can get curl on the command line to work then pyBigWig should work too.

I should note that I've been meaning to have open() default to ignoring SSL certificate issues, since I don't expect regular end users (e.g., all the deepTools users) to have to deal with that.

from pybigwig.

hussius avatar hussius commented on June 24, 2024

It does work for me on the command line.

130-229-4-255-dhcp:~ mikaelhuss$ curl -O "https://data.broadinstitute.org/compbio1/PhyloCSFtracks/hg19/latest/PhyloCSF+0.bw"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0 3019M    0 4622k    0     0  1189k      0  0:43:19  0:00:03  0:43:16 1189k

from pybigwig.

dpryan79 avatar dpryan79 commented on June 24, 2024

My only guess is that whichever libcurl pyBigWig is getting linked against is using a different CAPATH. I really just need to adjust pyBigWig to ignore such things by default. In the interim, you can add the following to libBigWig/io.c after line 234:

if(curl_easy_setopt(URL->x.curl, CURLOPT_SSL_VERIFYPEER, 0) != CURLE_OK) {
    fprintf(stderr, "[urlOpen] Couldn't set CURLOPT_SSL_VERIFYPEER to 0!\n");
    goto error;
}

That won't solve the root problem, but it'll probably get things running.

from pybigwig.

hussius avatar hussius commented on June 24, 2024

Go figure - it works for me now in a fresh conda environment. I did not try the @dpryan79 addition because with my conda-installed package on Mac, pyBigWig.__file__ points to a .so file and I can't find any C source files. Cheers!

from pybigwig.

dpryan79 avatar dpryan79 commented on June 24, 2024

Ah, I'm not sure conda was using the system-installed certificates (there have also been on-going issues with libcurl on OSX in conda, I used to have a separate curl inside bioconda for this reason). Anyway, I'll leave this open as a reminder to myself to just have these sorts of errors ignored.

from pybigwig.

dpryan79 avatar dpryan79 commented on June 24, 2024

Starting in version 0.3.5 certificate issues should generally be ignored. I considered making certificate checks optional, but I suspect no one would ever actually bother to use that and adding it in would be a bit annoying, so I'll hold off unless someone explicitly asks for it.

from pybigwig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.