-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pysam returning libcurl error 77 when accessing public S3 file? #1257
Comments
It's possible that this is a Docker thing...? |
I created a duplicate issue several weeks ago. This happens with other remote locations too (google cloud and https bam files): #1268 |
Thanks for the report. Increasing the verbosity helps identify the problem:
This /etc/pki/tls/certs/ca-bundle.crt path is RedHat/CentOS/Fedora's convention for the CAfile. You are probably running on Debian or Ubuntu, where the conventional path is /etc/ssl/certs/ca-certificates.crt and the path it's looking for does not exist. You can work around this by exporting
|
As for why this has started happening in 0.22.0, it has to do with how wheels are built. The problem is in the system libraries that are distributed inside manylinux wheels, so this is related to #1097 and #1276. The pysam-0.21.0 Linux wheels were built for More recent pysam releases' Linux wheels have been built for Fedora (40, at least) contains symlinks under /etc so that both styles of path point to the same certificate bundle, so works with both flavours of wheel. (But e.g. Rocky and Alma do not; see also this bug.) Debian and Ubuntu do not, so only the wheel containing the Debian-style libcurl.so will work (without assistance from the environment variable). This would appear to be a limitation in manylinux's claim to be making wheels that are portable across distributions! This can be worked around by having everyone set
Long-term the correct approach is (4) as it solves numerous problems: these three issues and also reduces the size of our wheels. It may be worth doing (3) too in the interim. |
From my POV, the fix suggested works for us! Thank you so much, and if you all feel that the root issue should be carried on elsewhere instead of in here, feel free to close. |
Glad to hear it does the trick. Let's keep this one open to represent the interim fix (3), and in due course I'll open another issue to represent (4). |
This started happening for us in pysam 0.22.0; it doesn't happen in 0.21.0.
In case it helps, here is pip list and a quick example of the error:
The main error seems to be
But it seems odd that this error doesn't happen with pysam 0.21.0 or lower...
The text was updated successfully, but these errors were encountered: