Skip to content
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

undefined symbol: hasEntries #45

Closed
clemenshug opened this issue Oct 2, 2017 · 3 comments
Closed

undefined symbol: hasEntries #45

clemenshug opened this issue Oct 2, 2017 · 3 comments

Comments

@clemenshug
Copy link

Using version 0.3.5 I'm getting this error when importing pyBigWig (Python 2.7.9 on Ubuntu 15.04):

ImportError: /home/chug/kaic_venv/local/lib/python2.7/site-packages/pyBigWig.so: undefined symbol: hasEntries

I installed it using the binary wheel from PyPI. The symbol hasEntries doesn't seem to be properly exported:

> readelf -a /home/chug/kaic_venv/local/lib/python2.7/site-packages/pyBigWig.so | grep hasEntries
000000216038  000600000007 R_X86_64_JUMP_SLO 0000000000000000 hasEntries + 0
      6: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND hasEntries
    100: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND hasEntries

Interestingly, when I install from source using pip install --no-binary :all: pyBigWig it works fine.

@dpryan79
Copy link
Collaborator

Sorry about this and the delayed reply. I'm posting a new version now with this fixed. The problem was due to the hasEntries() function being in an ifdef that's only used if numpy is present upon compilation. That was an accident on my part.

dpryan79 added a commit that referenced this issue Oct 19, 2017
hasEntries() was only defined if numpy was installed! Bump to 0.3.6. Fix #45
@dpryan79
Copy link
Collaborator

Version 0.3.6 is now available via pip install and should have this fixed.

@clemenshug
Copy link
Author

Works great, thank you very much!

rmsds added a commit to epfl-scitas/spack that referenced this issue Jan 24, 2019
* (in particular up to 0.3.6) the build fails if numpy is not present
* deeptools/pyBigWig#45
rmsds added a commit to epfl-scitas/spack that referenced this issue Jan 25, 2019
* (in particular up to 0.3.6) the build fails if numpy is not present
* deeptools/pyBigWig#45
alalazo pushed a commit to epfl-scitas/spack that referenced this issue Jan 28, 2019
* bcftools: use spack-built htslib

* instead of (re)building the bundled htslib it uses the already
installed one
* besides being sensible, it makes the build succeed with %intel

* pybigwig: add missing numpy dependency

* (in particular up to 0.3.6) the build fails if numpy is not present
* deeptools/pyBigWig#45

* py-pybigwig: update version

* py-pybigwig: fix building with python 3 and curl

* added a patch so that building with python3 and external curl works (it was previously picking up libcurl from the system)
* added the current version as limit for this patch as the fix is
also being pushed upstream
* deeptools/pyBigWig#76

* py-pybigwig: only apply patch when really needed

* in line with upstream PR
  * spack#10444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants