12HuYang / GridFree

An App counts the number of components in an image.
http://zzlab.net/GridFree/
MIT License
21 stars 9 forks source link

Window 11 cannot segment #4

Open pkxwonderr opened 6 days ago

pkxwonderr commented 6 days ago

Describe the bug After all the steps, when I click segment, the program has error Exception in Tkinter callback Traceback (most recent call last): File "tkinter__init.py", line 1702, in call__ File "tkinterGUI_nw.py", line 3441, in process File "tkinterGUI_nw.py", line 3033, in resegment File "tkinterGUI_nw.py", line 3236, in cal_xvalue ZeroDivisionError: division by zero

To Reproduce Steps to reproduce the behavior:

  1. Upload image
  2. PCs
  3. Cluster => selected => Segment
  4. See error

Expected behavior The program can segment and give output

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I want to learn about the code and tried to fix the problem myself but I cannot find the tkinterGUI_nw.py file in the folder download from dropbox (for Win10). Thank you for creating this program I think it is helpful and I would love to use it

12HuYang commented 2 days ago

Make sure your python package is same as the repo suggests: https://github.com/12HuYang/GridFree/blob/master/requirements.txt And using Python version of 3.6.5