ANP-Granular / ParticleTracking

Library and GUI for tracking (rod-like) particles on camera images in 2D and 3D
https://particletracking.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 2 forks source link

Unable to select folder in Linux #99

Closed saipreethamsata closed 2 months ago

saipreethamsata commented 2 months ago

I am trying to select the images and data from the GUI using Linux environment. I am unable to select the corresponding folders for the images and data from the local directory using the GUI.

Steps to reproduce the behavior:

  1. Started the Rod Tracker GUI from the terminal window
  2. Selected "Load Images" and "Load Rods" buttons on the GUI
  3. Unable to select the corresponding folder from the window

The corresponding folder must be selected and the images and the rod positions must be loaded

Screenshots Screenshot from 2024-08-15 14-18-57

Desktop :

Additional context If I manually specify the folder location for the rod images and rod data, sometimes I am able to load the image data. However the rod positions cannot be loaded still.

Logs [08/15 14:14:53] RodTracker ERROR: Uncaught exception: Traceback (most recent call last): File "/home/saipreetham/anaconda3/envs/RodTracker1/lib/python3.12/site-packages/RodTracker/backend/img_data.py", line 131, in select_images self.open_image_folder(file) File "/home/saipreetham/anaconda3/envs/RodTracker1/lib/python3.12/site-packages/RodTracker/backend/img_data.py", line 163, in open_image_folder frame = int(chosenfile.stem.split("")[-1]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: 'pyproject' [08/15 14:23:41] RodTracker.ui.loggerwidget INFO: /home/saipreetham/.local/share/RodTracker/Session_7eq5791z [08/15 14:23:41] RodTracker.backend.logger WARNING: category: default function: None, line: 0 file: None

a-niem commented 2 months ago

@saipreethamsata The problem you described should be fixed.

dmitrypuzyrev commented 2 months ago

@a-niem, I have a similar problem on Ubuntu after updating to the latest commits on develop branch. All folders are simply inactive in the main part of "Open a folder of images" window, see the screenshot. @saipreethamsata , does it work for you at the moment?

image

saipreethamsata commented 2 months ago

@dmitrypuzyrev It is not working for me still!

a-niem commented 2 months ago

@dmitrypuzyrev, @saipreethamsata I'm not able to reproduce your errors. Unfortunately, I don't have access to a machine with Linux as the OS at the moment and don't have time to change it for one of my computers. When testing your described problems on Ubuntu in WSL everything works as intended.

I'm afraid you will have to fix the issue yourselves this time.

I'm guessing the problem will be in ui/dialogs.py in the select_data_folder()-function or in image_data.py in the select_images()-function where the folder-selection-dialog is configured.

dmitrypuzyrev commented 2 months ago

@a-niem all good, we will try to fix this issue. Perhaps might be helpful in case it's some conflict with a file manager, which Ubuntu/nautilus version do you have in WSL?

saipreethamsata commented 2 months ago

It is working now! Thanks!