ArtLabss / tennis-tracking

Open-source Monocular Python HawkEye for Tennis
https://www.artlabs.tech
The Unlicense
392 stars 95 forks source link

The python dependencies could not install #34

Open guguji5 opened 11 months ago

guguji5 commented 11 months ago

Describe the bug Could not install the dependencies on macbook m1 pro

fl@bogon tennis-tracking % pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting requests==2.23.0 (from -r requirements.txt (line 1))
  Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
ERROR: Could not find a version that satisfies the requirement opencv_contrib_python==4.1.2.30 (from versions: 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72, 4.8.0.74, 4.8.0.76)
ERROR: No matching distribution found for opencv_contrib_python==4.1.2.30

fl@bogon tennis-tracking % python3 --version
Python 3.9.6
shukkkur commented 10 months ago

@guguji5 Hey)

Apologies, I have no idea on what to suggest besides figuring out what the error message says 😅 In case you find. Please share with fellow developers.

bobobdd commented 6 months ago

@guguji5 I have the same question just trying different python version and new environment

yoy333 commented 3 months ago

Here is what I did: it seems to work for me. Its a hotfix and I'm a novice so bear with me. First, install all of the dependencies manually from requirements.txt. This will make sure everything is the latest version. If you use older versions, the new python version has some depreciations. Use pip install [package name] (no version specified). Secondly, I found that you need to rename the file in WeightsTracknet to .h5 and the corresponding file path in predict_video.py. It has to do with the new version of Keras, I think.