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

Error with python3 #2

Open
Han-Cao opened this issue Jun 19, 2022 · 0 comments
Open

Error with python3 #2

Han-Cao opened this issue Jun 19, 2022 · 0 comments

Comments

@Han-Cao
Copy link

Han-Cao commented Jun 19, 2022

Hi,

In the README, it says "must have python 2 or 3". My understanding is the code support both python 2 and 3. However, when I try to run test_data with python3, their are some errors.

For example:

File "/path/to/find_trregion_overlaps.py", line 69
    print counter
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(counter)?
File "/path/to/precluster_svs.py", line 94, in <lambda>
    flat_sv_clusters_list.sort(key=lambda x: map(int, x[CLUSTERID_COL].split('.')) + [x[CLUSTER_BEGIN_COL]]  )
TypeError: unsupported operand type(s) for +: 'map' and 'list'

These errors are caused by the changes of built-in functions in python3. After I switch to python2, everything is fine.

So, I think the code are all written in python2 and I should not run it with python3?

Thanks,
Hank

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

1 participant