AdriaGual / marvel-snap-bot

A computer vision bot made with OpenCV and ADB.
106 stars 27 forks source link

Dependency Conflict rembq and numpy #54

Closed zachleboeuf closed 1 year ago

zachleboeuf commented 1 year ago

ERROR: Cannot install -r requirements.txt (line 2), numpy==1.21.0 and rembg==2.0.30 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested numpy==1.21.0 opencv-python-headless 4.6.0.66 depends on numpy>=1.19.3; python_version >= "3.9" opencv-python-headless 4.6.0.66 depends on numpy>=1.14.5; python_version >= "3.7" opencv-python-headless 4.6.0.66 depends on numpy>=1.17.3; python_version >= "3.8" rembg 2.0.30 depends on numpy~=1.23.5

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

AdriaGual commented 1 year ago

That's weird, but for now just install numpy 1.23.5. Also make sure you have this opencv versions:

pip install opencv-python==4.7.0.68
pip install opencv-python-headless==4.6.0.66
zachleboeuf commented 1 year ago

Alright. I will. Do you think it might cause the error with the bot exiting after field detection?

AdriaGual commented 1 year ago

I don't think so... But next time it exits, check if there's any error logged.

zachleboeuf commented 1 year ago

I posted the log on my other issue post. I check it everytime and it just has the output of the field location and then ends. Unless the error log is somewhere besides the log file in the marvel-snap-bot folder.

zachleboeuf commented 1 year ago

Those opencv installs actually did fix the error with it closing on field detect.

rahul-dev-app commented 1 year ago

The opencv installs did not fix the issue for me. I had to install numpy 1.23.5