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

python2 called explicitly #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FelixTheStudent
Copy link

Hi bulik,

I tried running ldsc -h in a Anaconda3 environment (much like issue #178) and got the following error:

./ldsc.py -h
  File "./ldsc.py", line 84
    print msg
            ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(msg)?

Turns out the problem is that ldsc.py calls python with '#!/usr/bin/env python', which will call either python2 or python3 depending on how a user has set up his python (Anaconda) installation.

This pull request I am sending you today changes the one line above to '#!/usr/bin/env python2'. This solves this issue, i.e. './ldsc.py -h' prints out the list of all command-line options, as intended. I have not tried running ldsc.py on any data yet, I hope you could test this.

Cheers,

Felix

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

Successfully merging this pull request may close these issues.

1 participant