-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unable to import compress #3
Comments
Looks like a linking error to zlib. Does your Anaconda environment have its own zlib? |
I've tried to install zlib1g-dev but that doesn't resolve the issue. Is there a particular zlib I need to have installed? |
For the record, I double checked that I had installed all of build-essential, make, libssl-dev, libpng16-dev (libpng-dev on 18.04). |
I'm wondering if there's a linking conflict between your system's libraries and ones that are in your conda environment. Maybe the wrong one got used when pybbi compiled. Do you still get the error if you build on a barebones conda environment? e.g.
|
Another person was able to reproduce this. The issue seemed to be that some systems might have their C compiler set to use an optimization that doesn't link a library if it doesn't appear to be used by the extension code. Could you try the following? $ LDFLAGS='-Wl,--no-as-needed' DISTUTILS_DEBUG=1 pip install -v pybbi --log debug.log If it doesn't work, I'd be curious to see the line in the log where the extension module ( |
Yes, these flags worked for me! Thanks for chasing that down. |
I tried this command, and installation is successful again. my OS is Centos 6.6 |
@lizc07, you should try running with the verbose logging but without the I got my hands on a Centos 6.6 instance. The following prerequisites worked for me:
Then I created a fresh conda environment with numpy and cython, and |
Tried as you suggest, and everything is ok in the fresh Conda environment. But same error is still there in the old conda environment. wonder what is the key to solve the problem... whatever, I will use the fresh environment for my following analysis. Thanks for your help! |
I create a fresh Conda environment with python==3.6.8, and then the error appeared again.... So weird... |
pybbi is not a dependency of HiCExplorer. Are you confusing it with pyBigWig? |
sorry for delayed reply. I am analyzing HiC data using both HiCExplorer and higlass. Higlass depends on pybbi. |
I'm trying to import bbi on ubuntu 18.04 in an anaconda environment. I get the following error on trying to import:
The text was updated successfully, but these errors were encountered: