DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
bx-python==0.8.9
numpy==1.16.6
pysam==0.16.0.1
scipy==1.2.3
six==1.15.0
#########################################################################
## Paths and Settings - Start editing here !
#########################################################################
PREFIX =
BOWTIE2_PATH =
SAMTOOLS_PATH =
R_PATH = /usr/bin/R-3.6.3/bin/R
PYTHON_PATH =
CLUSTER_SYS =
make -f ./scripts/install/Makefile CONFIG_SYS=./config-install.txt
make[1]: Entering directory `/usr/bin/HiC-Pro-2.11.4'
./scripts/install/install_dependencies.sh -c ./config-install.txt -o /usr/local/bin/HiC-Pro_2.11.4 -q
Make sure internet connection works for your shell prompt under current user's privilege ...
Starting HiC-Pro installation ...
export /home/hub_kind/prullens/tmp/R-3.6.3/bin/R in PATH
Checking dependencies ...
Checking Python libraries ...
Traceback (most recent call last):
File "../scripts/install/check_pythonlib.py", line 28, in <module>
raise ImportError('Error - bx-python cannot be imported')
ImportError: Error - bx-python cannot be imported
Can not proceed without the required Python libraries, please install them and re-run
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/home/hub_kind/prullens/tmp/HiC-Pro-2.11.4'
make: *** [configure] Error 2
```
Best,
Yes I did pip inside die venv! Following you suggestions:
$ /usr/bin/venv/HiC-Pro/bin/python
>>> import bx
>>> import bx.intervals
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/bin/venv/HiC-Pro/lib/python2.7/site-packages/bx/intervals/__init__.py", line 7, in <module>
from bx.intervals.intersection import * # noqa: F40
ImportError: /usr/bin/venv/HiC-Pro/lib/python2.7/site-packages/bx/intervals/intersection.so: undefined symbol: PyUnicodeUCS2_FromStringAndSize
Strangely only bx.intervals gives an error. Am I doing something wrong?
bx-python was built against a python version that was compiled with ucs2. So to fully enable bx utilities I had to recompile the python version I was using from ucs4 to ucs2. I achieved this through: undefined symbol: PyUnicodeUCS2_Decode whilst trying to install psycopg2