sgoldenlab / simba

SimBA (Simple Behavioral Analysis), a pipeline and GUI for developing supervised behavioral classifiers
https://simba-uw-tf-dev.readthedocs.io/
GNU General Public License v3.0
286 stars 139 forks source link

Instalation error because of conflicting dependencies #124

Closed aXcELLcore closed 3 years ago

aXcELLcore commented 3 years ago

Describe the bug Hi, I tried to install Simba using the command pip install Simba-uw-tf but I got a dependency conflict error between deeplabcut 2.0.9 has requirement scikit-learn ~ = 0.19.2, but you have scikit-learn 0.19.2 and simba-uw-tf 1.0.3 depends on sikit-learn==0.22.2. In issue # 63 I read that these warnings would not affect Simba's performance, but when I wanted to check its installation it gave me an error of not being able to find the specified module, which is why I have not been able to install Simba successfully.

Could you please help me

To Reproduce Steps to reproduce the behavior:

  1. pip install simba-uw-tf
  2. See error

Expected behavior

Screenshots I add two screenshots, the first shows the error when wanting to install Simba and the second screenshot corresponds to the verification of the installation

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

sgoldenlab commented 3 years ago

Hello @aXcELLcore ! Check this faq entry: https://github.com/sgoldenlab/simba/blob/master/docs/FAQ.md#11-when-i-install-or-update-simba-i-see-a-bunch-or-messages-in-the-console-telling-there-me-about-some-dependency-conflicts-the-messages-may-look-a-little-like-this

The missing package in your python environment is Shapely. I would suggest to first try the second suggestion in the faq link: downgrade pip, then try to install SimBA again. Let me know how it goes.

aXcELLcore commented 3 years ago

Thank you very much for answering me, for me your help is very valuable and especially being able to use Simba. I have tried the suggestion to downgrade pip to 20.1.1 but have not been successful, I also tried to install simba via pip install simba-uw-tf --no-dependencies but I get the same error (OSError (WinError 126)) Could you guide me on how I can solve this error please 111 thumbnail_image (2)

sronilsson commented 3 years ago

Hello @aXcELLcore - those screenshot are helpful, cheers. So this red ERROR messages you see related to dependency incompatibilities are just warning without consequence here and the problem launching SimBA comes from not having having installed the Shapely library properly.

There are a few ways to fix this, I have listed the threads which helped other to solve it here:

https://github.com/sgoldenlab/simba/blob/master/docs/FAQ.md#5-simba-wont-launch---theres-an-error-with-some-complaint-about-shapely

You are using conda, so also see Steps 7-8 in this tutorial for how to get Shapely working:

https://github.com/sgoldenlab/simba/blob/master/docs/anaconda_installation.md

aXcELLcore commented 3 years ago

Thank you very much for your answer sronilsson has worked perfectly and now it's time to have fun doing my first project in Simba

sronilsson commented 3 years ago

Thanks! Let us know if you jave any other issues popping up