Closed imerelli closed 5 years ago
Hi @imerelli
Thank you for reporting this issue. It was due to a python 2/3 incompatibility and should currently work with python 3. I will work on a fix for python 2 and keep you updated.
Honestly I have problems also with python3
$ python --version
Python 3.6.6
$ hic2cool -v
hic2cool 0.6.0
$ hic2cool update inter_30.mcool_old
#########################
### hic2cool / update ###
#########################
Traceback (most recent call last):
File "/opt/anaconda3/bin/hic2cool", line 11, in <module>
load_entry_point('hic2cool==0.6.0', 'console_scripts', 'hic2cool')()
File "/opt/anaconda3/lib/python3.6/site-packages/hic2cool-0.6.0-py3.6.egg/hic2cool/__main__.py", line 82, in main
File "/opt/anaconda3/lib/python3.6/site-packages/hic2cool-0.6.0-py3.6.egg/hic2cool/hic2cool_utils.py", line 1178, in hic2cool_update
TypeError: strptime() argument 1 must be str, not bytes
This is likely because you originally created inter_30.mcool_old
using hic2cool with python 2. I will add a quick fix for that as well.
@imerelli
I have released hic2cool 0.7.0, which should fix python 2 issues with hic2cool update
. Additionally, any further files run through update
using python 2 will be compatible with python 3. However, files created using python 2 and any previous version of hic2cool will continue to have the issue you pointed out above when updating them with python 3 -- the problem was that some attributes were not being written in unicode format as expected.
Please let me know if you have any questions or further issues.
Best, Carl
Hi, hic2cool update is not working for me (both specifying the output or not). The software ask yes/no for writing, but in both cases it raises an error. Here the error: