deeptools / pyBigWig

A python extension for quick access to bigWig and bigBed files
MIT License
216 stars 48 forks source link

ImportError: ndefined symbol: PyInt_Check #78

Closed nlapalu closed 5 years ago

nlapalu commented 5 years ago

Hi,

I have got this error:

File "./transcriptome.py", line 6, in <module>
    import pyBigWig
ImportError: /usr/local/lib/python3.4/dist-packages/pyBigWig.cpython-34m.so: undefined symbol: PyInt_Check

Problem with python 3.4 ?

nlapalu commented 5 years ago

From https://docs.python.org/3/howto/cporting.html

Python 3 has only one integer type, int(). But it actually corresponds to Python 2’s long() type—the int() type used in Python 2 was removed. In the C-API, PyInt* functions are replaced by their PyLong* equivalents.

dpryan79 commented 5 years ago

Is there a reason you're using such an old version of python 3? I stopped testing on python 3.4 a year or so ago, at least at that point pyBigWig still worked on it.

dpryan79 commented 5 years ago

BTW, all of the instances of PyInt_Check in the code are only used in python 2, so I suspect something odd happened when pyBigWig got installed and python told C that python 2 was being used.

nlapalu commented 5 years ago

Python3.4 is my default python3 on ubuntu 14.X. pyBigWig works now with my personal install of Python3.7.