Open eightYao2 opened 3 months ago
I have the same issue. My advice is to modify the source code to change:
print msg
to
print(msg)
This was happening with my system a few weeks ago as well. The reason was that I was unknowingly running the file with the wrong python version. Although I was running the program under the ldsc conda environment, python2 was not at the top of the PATH (due to my regular python installation on version 3.10.4 being prioritised). Be sure to double check that python 2.7 is indeed the executable being used to run ldsc.py (with python --version
etc.).
Also:
I'm not sold on changing print msg
to print(msg)
as it is avoiding the problem that you are likely using the wrong version of python. The error message you are getting should not appear when running the ldsc.py
file with python version 2. Changing all of these print messages will probably be a hassle and might not even work in the end.
When I runned
./ldsc.py -h
under screen mood, it reported as:But if I'm not under screen at bash,it's work successfully,I have a big job need to run under screen, and I'm sured I use python 2.7 enviroment, but still the same question. Is there any hints on this issue?
please help me, thanks!