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

ERROR: No matching distribution found for pkg_resources #1870

Open
1 task done
silvermistlin opened this issue Mar 16, 2025 · 7 comments
Open
1 task done

ERROR: No matching distribution found for pkg_resources #1870

silvermistlin opened this issue Mar 16, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@silvermistlin
Copy link

Search before asking

  • I have searched the Yolo Tracking issues and discussions and found no similar questions.

Yolo Tracking Component

Tracking

Bug

when I test it on Colab: ModuleNotFoundError: No module named 'pkg_resources'.
So I tried: !pip install poetry and !pip install pkg_resources.
but it shows: ERROR: Could not find a version that satisfies the requirement pkg_resources (from versions: none)
ERROR: No matching distribution found for pkg_resources.

Could you give me some suggestions?

Environment

Installing the current project: boxmot (12.0.1)Installing the current project: boxmot (12.0.1)
Setup complete. Using torch 2.6.0+cu124 (CPU)

Minimal Reproducible Example

!git clone https://github.com/mikel-brostrom/boxmot.git
%cd /content/boxmot
!python -m pip install --upgrade pip
!pip install poetry
!pip install pkg_resources -i https://pypi.tuna.tsinghua.edu.cn/simple

!poetry install --with yolo # installed boxmot + yolo dependencies

import torch
from IPython.display import Image, clear_output # to display images

print(f"Setup complete. Using torch {torch.version} ({torch.cuda.get_device_properties(0).name if torch.cuda.is_available() else 'CPU'})")

@silvermistlin silvermistlin added the bug Something isn't working label Mar 16, 2025
@mikel-brostrom
Copy link
Owner

mikel-brostrom commented Mar 21, 2025

Sorry cannot reproduce this. I can't help you out with region specific installations

Image

@silvermistlin
Copy link
Author

silvermistlin commented Mar 21, 2025

Thanks for your help. This step I can also accomplish in Colab, but when I execute track.py(!poetry run python tracking/track.py --yolo-model yolov8s.pt --reid-model osnet_x0_25_msmt17.pt --source out.avi --save --conf 0.2), the following error is reported: File "/content/boxmot/boxmot/utils/checks.py", line 3, in
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

@shruthiR-fauna
Copy link

Seeing the same issue with trying to run track.py

$ python tracking/track.py --source output2.mp4 --yolo-model yolov8s.pt --classes 0 --save --show_trajectories --half
Traceback (most recent call last):
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/tracking/track.py", line 11, in <module>
    from boxmot import TRACKERS
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/__init__.py", line 7, in <module>
    from boxmot.trackers.botsort.botsort import BotSort
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/trackers/botsort/botsort.py", line 8, in <module>
    from boxmot.appearance.reid_auto_backend import ReidAutoBackend
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/appearance/reid_auto_backend.py", line 9, in <module>
    from boxmot.appearance.backends.onnx_backend import ONNXBackend
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/appearance/backends/onnx_backend.py", line 4, in <module>
    from boxmot.appearance.backends.base_backend import BaseModelBackend
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/appearance/backends/base_backend.py", line 14, in <module>
    from boxmot.utils.checks import RequirementsChecker
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/utils/checks.py", line 3, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

@silvermistlin
Copy link
Author

尝试运行 时遇到同样的问题track.py

$ python tracking/track.py --source output2.mp4 --yolo-model yolov8s.pt --classes 0 --save --show_trajectories --half
Traceback (most recent call last):
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/tracking/track.py", line 11, in <module>
    from boxmot import TRACKERS
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/__init__.py", line 7, in <module>
    from boxmot.trackers.botsort.botsort import BotSort
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/trackers/botsort/botsort.py", line 8, in <module>
    from boxmot.appearance.reid_auto_backend import ReidAutoBackend
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/appearance/reid_auto_backend.py", line 9, in <module>
    from boxmot.appearance.backends.onnx_backend import ONNXBackend
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/appearance/backends/onnx_backend.py", line 4, in <module>
    from boxmot.appearance.backends.base_backend import BaseModelBackend
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/appearance/backends/base_backend.py", line 14, in <module>
    from boxmot.utils.checks import RequirementsChecker
  File "/home/rshruthi11/code/third-party-software-repos/boxmot/boxmot/utils/checks.py", line 3, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Have you solved this problem now?

@mikel-brostrom
Copy link
Owner

I can reproduce this when upgrading poetry

@silvermistlin
Copy link
Author

我可以在升级诗歌时重现这个

Could you tell me the specific version of poetry?

@shruthiR-fauna
Copy link

shruthiR-fauna commented Mar 28, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants