question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation issues with cyvcf2 on Ubuntu 16.04 LTS

See original GitHub issue

I was trying to install this on Ubuntu 16.04

pip install -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt

I got the following issues:

1. curl.h missing

    htslib/hfile_s3_write.c:86:23: fatal error: curl/curl.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------

This was fixed with: (we install this in CI)

sudo apt install -y libcurl4-openssl-dev

2. bzlib.h missing

...
    htslib/cram/cram_io.c:53:19: fatal error: bzlib.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------

This was fixed with:

sudo apt-get install libbz2-dev

Then this:

3. lzma.h missing

...
    htslib/cram/cram_io.c:57:18: fatal error: lzma.h: No such file or directory
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------

This was fixed with:

apt-get install liblzma-dev

I guess, we don’t see this in the CI, because these are already present, also we have Ubuntu 18.04 in the CI:

Screenshot 2020-10-15 at 13 22 54

Although these are linux specific, I think, we can probably worth mentioning these in the docs and also we install libcurl4-openssl-dev in the CI: https://github.com/pystatgen/sgkit/blob/162447e20e6b680f35730047f0d28a7064d079bc/.github/workflows/build.yml#L22

its not mentioned in the contributing docs either: https://pystatgen.github.io/sgkit/contributing.html#install

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hortacommented, Nov 11, 2020

Right now cyvcf2 wheel is being built against ssl 1.1.x on Linux (although the wheels are not in test pypi yet, explained in the above link), which should work in machines with both 1.0.x and 1.1.x as far as I tested. So the problem is not exactly the difference in ssl version but linking it against deprecated ssl 1.0.x version (I think Python 3.5 dropped its support of ssl 1.0.x).

In summary, the problem seems to be solved, I just can’t try it on Travis CI because I have no OSS credits anymore for this month.

1reaction
hortacommented, Nov 10, 2020

@jeromekelleher is correct in that cibuildwheel already takes care of that. In fact, libss, libcurl, alongside with htslib are included in the wheels. I’ve just updated the issue https://github.com/brentp/cyvcf2/pull/175 with some findings and (it seems so) the solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Install Third-Party Apps on Ubuntu 16.04? You're Not ...
deb installer opens the Software app as expected, but clicking the 'install' button does nothing. A bug report has been lodged for the...
Read more >
cyvcf2 0.30.18 documentation
cyvcf2 is a fast VCF parser for python (2 and 3) released under the MIT license. It is a cython wrapper for htslib...
Read more >
Ubuntu – Package Search Results -- python3-cyvcf2
You have searched for packages that names contain python3-cyvcf2 in all suites, all sections, and all architectures. Found 1 matching packages.
Read more >
Recently Active 'python' Questions - Page 29 - Ask Ubuntu
First when I tried importing libraries after installing them prompt said "module not found" afterwards, error showing that module _ctypes not found and...
Read more >
python3-cyvcf2_0.11.6-1_arm64.deb
Download python3-cyvcf2_0.11.6-1_arm64.deb for Ubuntu 20.04 LTS from Ubuntu Universe repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found