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

Creation configuration project problem #331

Closed Monica9577 closed 4 months ago

Monica9577 commented 4 months ago

Describe the bug When creating a new project, when I click on create a new configuration project, nothing happens in the main console of simba. And the folder where is suposed to be the new project lacks the configuration file.

To Reproduce Steps to reproduce the behavior:

  1. Open Anaconda
  2. Open simba
  3. go to file
  4. create a new project
  5. select the project directory and project name
  6. add number of classifiers
  7. instert names of classifiers
  8. Select tracking method and body points
  9. create config file

Code error: (NEW_SIMBA) C:\Users\monip>simba Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\monip\anaconda3\envs\NEW_SIMBA\lib\tkinter__init.py", line 1705, in call return self.func(*args) File "C:\Users\monip\anaconda3\envs\NEW_SIMBA\lib\site-packages\simba\ui\create_project_ui.py", line 216, in command=lambda: self.run(), File "C:\Users\monip\anaconda3\envs\NEW_SIMBA\lib\site-packages\simba\ui\create_project_ui.py", line 348, in run file_type=self.file_type_dropdown.getChoices(), File "C:\Users\monip\anaconda3\envs\NEW_SIMBA\lib\site-packages\simba\utils\config_creator.py", line 59, in init self.create_configparser_config() File "C:\Users\monip\anaconda3\envs\NEW_SIMBA\lib\site-packages\simba\utils\config_creator.py", line 195, in create_configparser_config ] = Dtypes.NONE.value File "C:\Users\monip\anaconda3\envs\NEW_SIMBA\lib\enum.py", line 326, in getattr__ raise AttributeError(name) from None AttributeError: CLASSIFIER

Expected behavior The main console should show a succesfull project creation. And the configuration file should appear inside the "project_folder"

Captura de pantalla 2024-02-15 224737 image image

Desktop

sronilsson commented 4 months ago

Got it, thanks for letting me know @Monica9577 !

If you update simba to the latest version (using pip install simba-uw-tf-dev --upgrade) - does that fix the issue?

Monica9577 commented 4 months ago

No, unfortunatelly it doesn't fix it

phildong commented 4 months ago

just want to add I'm having the exact same issue. I'm on simba-uw-tf-dev 1.85.2 and ubuntu 22.04.

Monica9577 commented 4 months ago

Yes, I'm also on simba-uw-tf-dev 1.85.2 , with anaconda (also updated)

sronilsson commented 4 months ago

Thanks @Monica9577 and @phildong - I appreciate it. It's a bug you caught. I was able to recreate it and I inserted the fix in version 1.85.3 - if pip install simba-uw-tf-dev --upgrade didn't get you that version - can tou try pip install simba-uw-tf-dev==1.85.3 and let me know how it looks on your end?

Monica9577 commented 4 months ago

It's working now Thank you !

I used pip install simba-uw-tf-dev --upgrade and it installed the 1.85.3 version

sronilsson commented 4 months ago

Thanks @Monica9577 👍🏻 - please let me know if anything else comes up. @phildong - please let me.know if you see anything different

phildong commented 4 months ago

same here. I re-created my environment and I can confirm this bug is gone in simba-uw-tf-dev 1.85.5. Thank you @sronilsson !

sronilsson commented 4 months ago

thanks for letting me know @phildong !