Closed wenyako closed 7 minutes ago
Hi wenyako,
In my opinion, there is a missing file named logs.py under the tracts/ folder. Therefore, you cannot import logs here. Since we don’t know how this function works, we cannot create a replacement function ourselves. This issue will be resolved once the developer provides the missing file.
Sorry for the delay. I was able to reproduce the issue. The programmer working on this has moved on, so I will have to do a bit of digging. Thanks for letting me know.
Thanks a lot for helping us out! Looking forward to running it~
Thanks for the bug report! I have fixed the issue in the devel branch. I used code recovered from a programmer who has left the lab, so I still need to do some testing before adding this to the main branch, but you can see if that works for you in the meantime.
Unfortunately, I still encounter the same error messages (as shown above) when running the example files stored in the "3Pops" folder...
Hello, @wenyako! I've fixed this issue on the devel
branch, could you please try it on your side? I also suggest rerunning pip install .
before running the script
Hi @Serdiuk-Andrii
I’m working in the same lab as wenyako.
I installed tracts using pip install .
. The previous issue with importing 'logs' is now resolved, but a new error has appeared. I’ve attached the error message for your reference.
Hi @MeiLingKang!
Could you check if you're using the latest version of the code from the devel
branch? Based on the error output, it seems like the code you're using might be a bit outdated
@MeiLingKang, @wenyako The master branch has been updated. Could you pull the changes and try running them on your side?
@Serdiuk-Andrii Thanks for the update! We've pulled the changes from the master branch, and everything is working smoothly. Grateful for your help!
Dear Prof. Gravel, I am a researcher studying the genetic ancestry of the indigenous Siraya people in Taiwan. I have greatly benefited from your papers working on inferring admixture history based on the information of local genetic ancestry. I want to thank you for your brilliant and invaluable work! We recently attempted to download and install the tracts program but encountered several error messages while running the example files. We are very eager to use tracts to understand the admixture history of the Siraya people (Austronesian-speaking) with the Taiwanese Sino-Tibetan populations. Could you kindly assist us with these issues? Thank you very much for your time and assistance. I really appreciate it.
Best regards, Wen-Ya
As I am not proficient in Python, I will provide a detailed description of my actions. Please forgive the lengthiness of this message.
Running environment: MacBook Pro (Chip:Apple M3 Pro) ; macOS Sonoma Version 14.3.1 Shell:zsh Python: Virtual environment (Python 3.12.4)
Issue description:
I somehow fixed the problem and executed "import tracts" successfully by the following steps as below. However, I still encountered error messages while running the example files. So I am not sure if I really fixed the problem properly or not.
Here are the steps I did to fix the problem: 1) add the following lines onto the "init.py" file
2) created a "tracts/tracts/logs.py" file with the following lines in the file:
3) created a "tracts/tracts/utlis.py" file with the following lines in the file: