TeamTrack icon indicating copy to clipboard operation
TeamTrack copied to clipboard

No module named 'soccertrack'

Open zhengyang1835 opened this issue 1 year ago • 1 comments

Dear sir, I am trying to use your repository to examine the performance of the tracking inference. However, when I followed your instructions to run python scripts/benchmark/yolov8/botsort/test.py --config scripts/benchmark/yolov8/botsort/test.yaml, I met the error: File "/home/zyli/TeamTrack/scripts/benchmark/yolov8/botsort/test.py", line 7, in from soccertrack.logger import logger ModuleNotFoundError: No module named 'soccertrack' I tried to find the module soccertrack, but I cannot locate it in your repository or on the Internet. I wonder if you can solve this issue. Thanks! Kind regards

zhengyang1835 avatar Jul 17 '24 02:07 zhengyang1835

Thank you for bringing this to our attention. The error you're encountering is due to a recent package name change that wasn't fully reflected in all parts of the codebase. The package was originally called 'soccertrack' but has been renamed to 'sportslabkit'. To resolve this issue, please try the following:

Open the file /home/zyli/TeamTrack/scripts/benchmark/yolov8/botsort/test.py Locate the line that says: from soccertrack.logger import logger Change it to: from sportslabkit.logger import logger

After making this change, try running the script again. If you encounter any further issues, please let me know, and I'll investigate the problem in more depth.

Additionally, ensure that you have the latest version of the 'sportslabkit' package installed in your environment.

AtomScott avatar Jul 18 '24 03:07 AtomScott