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

Conflict with Hi-CExplorer #22

Open
karimi81 opened this issue Apr 15, 2021 · 3 comments
Open

Conflict with Hi-CExplorer #22

karimi81 opened this issue Apr 15, 2021 · 3 comments

Comments

@karimi81
Copy link

I tried to install the HiCAssembler according to the instruction provided by developers, but there is a conflict between the version of hicexplorer (and also cooler) and HiCAssembler. Whereas Hicexplorer uses python 3 to install packages, the HiCAssembler is based on python 2.7. After using python 3 to install HiCAssembler, I faced with these issues:
Traceback (most recent call last):
File "/home/karimi81/hic-assembler/env_HiCAssembler_p37/bin/assemble", line 11, in
import hicassembler.HiCAssembler as HiCAssembler
File "/home/karimi81/hic-assembler/env_HiCAssembler_p37/lib/python3.7/site-packages/hicassembler/HiCAssembler.py", line 226
print self.N50
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(self.N50)?

I would be appreciated if any one can guide me to find out a way to install the software.

@ostueker
Copy link

The setup.py should clearly state that it requires (End of Life) Python 2 and is not compatible with Python 3.

Or even better, the devs could release a version that is actually compatible with a Python version that is still supported.
Issue #16 suggests that the branch 2to3 would actually work.

@yuzhenpeng
Copy link

yuzhenpeng commented Dec 31, 2021

Hi, I modified the fill followed #16 . But still some erros.
Traceback (most recent call last): File "./HiCAssembler-2to3/bin/assemble", line 11, in <module> import hicassembler.HiCAssembler as HiCAssembler File "/root/data1/yuzhenpeng2021/miniconda3/envs/HiCAssembler/lib/python3.8/site-packages/hicassembler/HiCAssembler.py", line 226 print self.N50 ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(self.N50)?

@yuzhenpeng
Copy link

It seems that import hicexplorer.HiCMatrix as HiCMatrix should be changed to import hicmatrix.HiCMatrix as HiCMatrix. #21

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

3 participants