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

Syntax Error #442

Open
FrederickGri opened this issue Jul 11, 2024 · 4 comments
Open

Syntax Error #442

FrederickGri opened this issue Jul 11, 2024 · 4 comments

Comments

@FrederickGri
Copy link

hello, I keep getting this error:

ldsc/munge_sumstats.py", line 13, in
from ldsc import MASTHEAD, Logger, sec_to_str
File "/Users/beta-barrelstructure/ldsc/ldsc.py", line 89
print(msg, file=self.log_fh)
^

when i run munge_sumstats.py
what should i do about it?
I am using macbook pro, intel. Python 3.
Please help me, thank you!

@FrederickGri
Copy link
Author

and when check the line 89 in munge_sumstats.py, it is

'B': 'BETA',

@aksarkar
Copy link

@FrederickGri Please share the entire output of LDSC, including the full error message.

@FrederickGri
Copy link
Author

hello this is the full error message, i run it pops up even after i run ldsc.py -h

SyntaxError: invalid syntax
(ldsc) beta-barrelstructure@ ldsc % python --version
Python 2.7.18 :: Anaconda, Inc.
(ldsc) beta-barrelstructure@ ldsc % ./ldsc.py -h
File "./ldsc.py", line 89
print(msg, file=self.log_fh)
^
SyntaxError: invalid syntax
(ldsc) beta-barrelstructure@ ldsc % python ldsc.py -h
File "ldsc.py", line 89
print(msg, file=self.log_fh)
^
SyntaxError: invalid syntax

@aksarkar
Copy link

@FrederickGri You are not running under Python 3, but have appeared to have translated the code to Python 3.

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

2 participants