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
273 stars 137 forks source link

Error when Generating Project Config and Importing Videos #225

Closed mrnels19 closed 1 year ago

mrnels19 commented 1 year ago

Describe the bug Whenever I click on the buttons titled Generate Project Config and Import Video, I receive errors in the terminal. The errors I receive are found in the screenshots titled Generate Project Config Error and Import Video Error. In the Import Video Error screenshot, the error is inside the white box. I am wondering what is causing these errors, since I need to import videos before I can import any tracking data.

To Reproduce Steps to reproduce the behavior:

  1. Open SimBA and create a new project. Say the number of predictive classifiers is equal to 1 (I was going through the tutorial) and give it a name.
  2. In the Type of Tracking menu, select Multi Tracking
  3. In the # config menu, select Multi-animals, 8bps.
  4. Press Generate Project Config. When I press this button, I get an error as described in the Generate Project Config Error screenshot.
  5. Then, I go to the [Import videos into project folder] tab and go to the Import single video sub menu. I am going to import an .avi video. I then press the button that says Import a video, and I get the error in the white box in the Import Video Error screenshot (this error is also displayed right above the white box in the screenshot because I clicked this button twice).

Expected behavior There should not be any error messages when these buttons are pressed.

Screenshots The screenshots titled Generate Project Config Error and Import Video Error are attached.

Desktop (please complete the following information):

Generate Project Config Error Import Video Error

mrnels19 commented 1 year ago

I realize that the names of the screenshots do not appear when I add them into my post. The screenshot titled Generate Project Config Error is the one with the mouse images in it. The screenshot titled Import Video Error has the white box.

sronilsson commented 1 year ago

Hi @mrnels19 - many thanks for reporting. You caught this bug very quickly, it was introduced just before you opened the issue.

If you update to version 1.30.7 with pip install simba-uw-tf-dev --upgrade, does that fix the issue?

mrnels19 commented 1 year ago

Yes, this helped! Thank you.