wingtorres / morphometrix

A PyQt5 Gui for photogrammetry and morphometry
MIT License
17 stars 7 forks source link

Crashing when measuring angle #14

Closed dasweeney4423 closed 1 year ago

dasweeney4423 commented 1 year ago

When I try to measure an angle in morphometrix, after I specify the name of the angle I'm measuring, the software crashes and the following error message pops up in Windows PowerShell:

js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'. Traceback (most recent call last): File "C:\Users\DavidSweeney\Documents\UAS\morphometrix-master\morphometrix__main__.py", line 339, in measure_angle QApplication.setOverrideCursor(QtCore.Qt.CrossCursor) #change cursor ^^^^^^^^^^^^^^^^^^^^^ AttributeError: type object 'Qt' has no attribute 'CrossCursor'

dasweeney4423 commented 1 year ago

I believe solution is that line 339 should be the same as what is listed in line 316. This change may be necessary in a few locations throughout, but changing line 339 to the following solved my issue.

QApplication.setOverrideCursor(QtCore.Qt.CursorShape.CrossCursor) #change cursor

dasweeney4423 commented 1 year ago

I also discovered issues with measuring areas on 5/31/2023 related to determining if there is an intersect and reformating between pyqt5 and 6.

I've been resolving issues on a forked version of this repo: https://github.com/MarEcoTel/morphometrix