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
278 stars 138 forks source link

Tkinter Issue - Blank SimBA GUI #109

Open charithaomprakash opened 3 years ago

charithaomprakash commented 3 years ago

Hello @sgoldenlab ! I am having toruble getting the SimBA GUI to work after installing it via pip install simba-uw-tf-dev. I created a new project, when I try to load the proj_config.ini the GUI window opens, but all the tabs except the ROI are blank (image attached below). Here is the error readout in the Anaconda prompt after loading the proj_config.ini:

Exception in Tkinter callback Traceback (most recent call last): File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/tkinter/init.py", line 1702, in call return self.func(args) File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 3356, in launchloadprojectButton = Button(lpMenu,text='Load Project',command=lambda:self.launch(lpMenu,inputcommand)) File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 3367, in launch command(self.projectconfigini.file_path) File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 3739, in init self.bp1 = DropDownMenu(label_heatmap,'Bodypart',bpoptions,'15') File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 769, in init self.popupMenu = OptionMenu(self,self.dropdownvar,self.choices,command=com) TypeError: init() missing 1 required positional argument: 'value'

I also see that this was an issue #71 and tried to see if 'shap' was installed. And it shows me that the requirement is already satisfied.

Here is the version of SimBA I am currently using: Name: Simba-UW-tf-dev Version: 0.77.1

sgoldenlab commented 3 years ago

Hello @charithaomprakash! This was a bug in earlier versions of SimBA - can you try to update SimBA and see if the error disappears? Try either pip install simba-uw-tf-dev --upgrade or pip install simba-uw-tf == 0.83.6 and let me know how it goes.

charithaomprakash commented 3 years ago

Hello @sgoldenlab, thank you for the quick response. I tried updating SimBA and the error still appears. I also tried installing pip install simba-uw-tf == 0.83.6, unfortunately I still get the same error.

Here is the error message: (SimBA) compraka@compute01:~$ simba Exception in Tkinter callback Traceback (most recent call last): File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/tkinter/init.py", line 1702, in call return self.func(args) File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 3435, in launchloadprojectButton = Button(lpMenu,text='Load Project',command=lambda:self.launch(lpMenu,inputcommand)) File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 3446, in launch command(self.projectconfigini.file_path) File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 3866, in init self.bp1 = DropDownMenu(label_heatmap,'Bodypart',bpoptions,'15') File "/home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages/simba/SimBA.py", line 775, in init self.popupMenu = OptionMenu(self,self.dropdownvar,self.choices,command=com) TypeError: init() missing 1 required positional argument: 'value'

And here is the version infor for SimBA: Name: Simba-UW-tf-dev Version: 0.83.6 Summary: Toolkit for computer classification of complex social behaviors in experimental animals Home-page: https://github.com/sgoldenlab/simba Author: Simon Nilsson, Jia Jie Choong, Nastacia Goodwin, Sophia Hwang, Sam Golden Author-email: goldenneurolab@gmail.com License: GNU Lesser General Public License v3 (LGPLv3) Location: /home/compraka/anaconda3/envs/SimBA/lib/python3.7/site-packages

sgoldenlab commented 3 years ago

Thanks for reporting @charithaomprakash - I will look into it. Can you check one more thing before? This could potentially happen if you have multiple versions of SimBA installed. In you SimBA environment, could you try pip show simba-uw-tf and make sure nothing is printed?

inoejj commented 3 years ago

@charithaomprakash, using python 3.6 will solve your issue.

cameronotto commented 3 years ago

@charithaomprakash, using python 3.6 will solve your issue.

I am experiencing the same issue on python 3.6.13. I have also ran the update on simba, still nothing. Are there any other solutions? I have created a new environment several times with a fresh install to no avail.

inoejj commented 3 years ago

@cameronotto , Try using python 3.6.8 or 3.6.10 and see if it will resolve your issue.

Click on the link below for a step by step guide.

https://simba-docs.readthedocs.io/en/latest/docs/intro/installation.html

If you are still having trouble installing it please let me know and I will try to fix it asap.

Cheers, JJ

cameronotto commented 3 years ago

@inoejj So this did not work again, however I noticed that I am missing FFmpeg. Would this cause this issue, and if so how should I install this?

Thanks so much, CO

inoejj commented 3 years ago

Please send me a screenshot of the error message or providing more details so I can help you out.

Thanks, JJ

cameronotto commented 3 years ago

This is the error that I get. I will try on both those versions.

Exception in Tkinter callback Traceback (most recent call last): File "c:\users\mcnuc\anaconda3\envs\simbaenv\lib\tkinter__init.py", line 1705, in call return self.func(*args) File "c:\users\mcnuc\anaconda3\envs\simbaenv\lib\site-packages\simba\SimBA.py", line 3435, in launchloadprojectButton = Button(lpMenu,text='Load Project',command=lambda:self.launch(lpMenu,inputcommand)) File "c:\users\mcnuc\anaconda3\envs\simbaenv\lib\site-packages\simba\SimBA.py", line 3446, in launch command(self.projectconfigini.file_path) File "c:\users\mcnuc\anaconda3\envs\simbaenv\lib\site-packages\simba\SimBA.py", line 3763, in init self.severityTarget = DropDownMenu(label_severity,'Target',targetlist,'15') File "c:\users\mcnuc\anaconda3\envs\simbaenv\lib\site-packages\simba\SimBA.py", line 775, in init self.popupMenu = OptionMenu(self,self.dropdownvar,*self.choices,command=com) TypeError: init__() missing 1 required positional argument: 'value'

inoejj commented 3 years ago

which version of simba are did you install?

What did you type into the terminal?

cameronotto commented 3 years ago

@inoejj I followed the exact instructions found in that guide, the version of simba installed is 0.84.3.

I have tried installing developer and non-dev versions and still no luck.

cameronotto commented 3 years ago

@inojj I should also clarify, I am installing on windows in Anaconda.

inoejj commented 3 years ago
  1. create a new environment
  2. conda install python=3.6.10
  3. pip install simba-uw-tf-dev
  4. pip uninstall shapely
  5. conda install -c conda-forge shapely

Please follow the steps above and let me know if you still have trouble installing. Or I can do a quick zoom to install it for you :)

cameronotto commented 3 years ago

@inoejj Thanks for the help, I have tried these steps several times and no luck. Also on 3.6.8. Could it be that I am missing FFmpeg? How can I install this to my environment or to my device so it works with the environment?

Thanks, Cameron

inoejj commented 3 years ago

FFmpeg does not matter. Please follow the steps below and it should work. In the following example below, you can change simbaenv to any name that you wished.

Else, please send an email to jchoong@uw.edu and I will just do a quick zoom with you :)

https://simba-docs.readthedocs.io/en/latest/docs/intro/installation.html#install-simba-dev-using-anaconda-does-not-support-dlc

cameronotto commented 3 years ago

@inoejj If you'd like we can do that, but I have followed these exact instructions several times and no luck. Is it possible I should install an older version of SimBA?

inoejj commented 3 years ago

Do you want to type pip show simba-uw-tf-dev and see the version of simba that is installed in your machine?

cameronotto commented 3 years ago

@inoejj It installs version 0.84.3 of simba-uw-tf-dev

inoejj commented 3 years ago

Please send an email to jchoong@uw.edu and do a quick zoom now.