cnr-isti-vclab / TagLab

A CNN based image segmentation tool oriented to marine data analysis
https://taglab.isti.cnr.it/
GNU General Public License v3.0
84 stars 32 forks source link

Error + TagLab crash after selecting 'Alignment Tool' #167

Open JohnStratford opened 5 days ago

JohnStratford commented 5 days ago

Hi all,

I'd like to align two maps (TIFs) that I have loaded within a project. When I click Project > Alignment Tool, TagLab freezes for a few seconds and then closes. The following error is returned in the prompt:

Traceback (most recent call last):
  File "C:\Users\jstratfo\Downloads\TagLab-main\TagLab-main\taglab.py", line 3699, in openAlignmentTool
    self.align_tool_widget = QtAlignmentToolWidget(self.project, parent=self)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: QtAlignmentToolWidget.__init__() missing 1 required positional argument: 'project' 

Do you know why this could be happening? And do you know of any solutions?

I have completed the latest update (29/10/24) and every other TagLab feature that I have tried so far has worked. I'm using Python v3.11.10. I've included all installed packages and versions below, in case helpful.

Many thanks, John

(taglab_env_JS_py3_11_10) C:\Users\jstratfo\Downloads\TagLab-main\TagLab-main>pip list
Package                Version
---------------------- ------------
affine                 2.4.0
albucore               0.0.20
albumentations         1.4.21
annotated-types        0.7.0
attrs                  24.2.0
beautifulsoup4         4.12.3
certifi                2024.8.30
cffi                   1.17.1
charset-normalizer     3.4.0
click                  8.1.7
click-plugins          1.1.1
cligj                  0.7.2
colorama               0.4.6
contourpy              1.3.0
cycler                 0.12.1
eval_type_backport     0.2.0
filelock               3.13.1
fonttools              4.54.1
fsspec                 2024.2.0
GDAL                   3.9.2
h11                    0.14.0
idna                   3.10
imageio                2.36.0
Jinja2                 3.1.3
joblib                 1.4.2
kiwisolver             1.4.7
lazy_loader            0.4
MarkupSafe             2.1.5
matplotlib             3.9.2
mpmath                 1.3.0
msvc_runtime           14.40.33807
networkx               3.4.2
numpy                  1.24.4
opencv-python          4.10.0.84
opencv-python-headless 4.10.0.84
outcome                1.3.0.post0
packaging              24.1
pandas                 2.2.3
pillow                 11.0.0
pip                    24.2
pycocotools            2.0.8
pycparser              2.22
pydantic               2.9.2
pydantic_core          2.23.4
pyparsing              3.2.0
PyQt5                  5.15.11
PyQt5-Qt5              5.15.2
PyQt5_sip              12.15.0
PySocks                1.7.1
python-dateutil        2.9.0.post0
python-dotenv          1.0.1
pytz                   2024.2
PyYAML                 6.0.2
qhoptim                1.1.0
rasterio               1.3.11
requests               2.32.3
scikit-image           0.24.0
scikit-learn           1.5.2
scipy                  1.14.1
segment-anything       1.0
selenium               4.26.1
setuptools             75.1.0
shapely                2.0.6
simsimd                5.9.11
six                    1.16.0
sniffio                1.3.1
snuggs                 1.4.7
sortedcontainers       2.4.0
soupsieve              2.6
stringzilla            3.10.7
sympy                  1.13.1
threadpoolctl          3.5.0
tifffile               2024.9.20
torch                  2.5.0+cu124
torchvision            0.20.0+cu124
trio                   0.27.0
trio-websocket         0.11.1
typing_extensions      4.12.2
tzdata                 2024.2
urllib3                2.2.3
webdriver-manager      4.0.2
websocket-client       1.8.0
wheel                  0.44.0
wsproto                1.2.0
julijoh commented 2 days ago

I'm also having this issue

maxcorsini commented 2 hours ago

It seems that a line of code has been modified creating this error. We will do a release soon with the fix, for the moment replace the line:

self.align_tool_widget = QtAlignmentToolWidget(self.project, parent=self)

with the following line:

self.align_tool_widget = QtAlignmentToolWidget(self.taglab_dir, self.project, parent=self)

Let me know if all is ok.

Thanks and sorry for the inconvenience.