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

Getting a ModuleNotFoundError 'tracking' despite installing everything in a virtualenv #1606

Closed
1 task done
sandip-meshh opened this issue Sep 3, 2024 · 6 comments
Closed
1 task done
Labels
question Further information is requested Stale

Comments

@sandip-meshh
Copy link

Search before asking

  • I have searched the Yolo Tracking issues and found no similar bug report.

Question

Running this on a RaspberryPi 4B 1GB, created a Python 3.10.14 virtualenv and pip installed boxmot as well as the poetry install with yolo from the installation page. I get the following error when I run the tracking code from the root directory inside the virtualenv:

Traceback (most recent call last):
  File "/home/meshh/code/boxmot/tracking/track.py", line 18, in <module>
    from tracking.detectors import get_yolo_inferer
ModuleNotFoundError: No module named 'tracking'

The same setup worked on my Macbook. Does the pipeline work on arm64 embedded platforms?

@sandip-meshh sandip-meshh added the question Further information is requested label Sep 3, 2024
@mikel-brostrom
Copy link
Owner

mikel-brostrom commented Sep 3, 2024

Notice that it is not enough to install boxmot in your case. Check the README

@sandip-meshh
Copy link
Author

Thanks for your quick reply @mikel-brostrom !

Not sure what I'm missing to be honest - I have followed all the steps mentioned below:
image

@mikel-brostrom
Copy link
Owner

A pip installation of BoxMOT does not contain the tracking folder. You would need a full repo cloning for this:

git clone https://github.com/mikel-brostrom/boxmot.git
cd boxmot
pip install poetry
poetry install --with yolo  # installed boxmot + yolo dependencies
poetry shell  # activates the newly created environment with the installed dependencies

@sandip-meshh
Copy link
Author

I did clone the full repo and ran all the above commands already in a pyenv-managed virtualenv. Not sure what I'm missing - need to review it again..

@sandip-meshh
Copy link
Author

sandip-meshh commented Sep 4, 2024

So, when I run the poetry install inside the virtualenv, using the poetry env use 3.10 (my system Python version). The torch installation fails without any helpful description:

  - Installing torch (2.2.2+cu121): Failed

  RuntimeError

  Unable to find installation candidates for torch (2.2.2+cu121)

  at ~/.pyenv/versions/3.10.14/envs/cv-3.10/lib/python3.10/site-packages/poetry/installation/chooser.py:74 in choose_for
       70│
       71│             links.append(link)
       72│
       73│         if not links:
    →  74│             raise RuntimeError(f"Unable to find installation candidates for {package}")
       75│
       76│         # Get the best link
       77│         chosen = max(links, key=lambda link: self._sort_key(package, link))
       78│

Cannot install torch.

I'm not sure why its trying to install the 2.2.2+cu121 version when 2.2.2 exists/is installed on the RPi.

Copy link

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants