chrchang / plink-ng

A comprehensive update to the PLINK association analysis toolset. Beta testing of the first new version (1.90), focused on speed and memory efficiency improvements, is finishing up. Development is now focused on building out support for multiallelic, phased, and dosage data in PLINK 2.0.
https://www.cog-genomics.org/plink/2.0/
415 stars 126 forks source link

Python API import errors with latest version #243

Closed francois-a closed 1 year ago

francois-a commented 1 year ago

When installing from PyPI:

import pgenlib
ImportError: .../pgenlib.cpython-311-x86_64-linux-gnu.so: undefined symbol: zError

When compiling from the repository (following instructions in the README):

import pgenlib
ImportError: .../pgenlib.cpython-311-x86_64-linux-gnu.so: undefined symbol: inflate

Please let me know if you need additional details.

chrchang commented 1 year ago

You need to install zlib on your system.

francois-a commented 1 year ago

I should have mentioned that, it's installed.

chrchang commented 1 year ago

Ok, I've replicated this issue on a Linux test machine, will try to post a fix today.

chrchang commented 1 year ago

pgenlib 0.90.1 is posted; let me know if it doesn't solve the problem for you.

francois-a commented 1 year ago

Awesome! Thanks for the quick fix, it works now.