sleap icon indicating copy to clipboard operation
sleap copied to clipboard

error while opening GUI: "argument 1 has unexpected type 'QRect'"

Open MirjamH opened this issue 3 years ago • 3 comments

Hi, I got the following error when trying the "sleap-label" command:

File "C:\Users\Admin\anaconda3\envs\sleap\lib\site-packages\sleap\gui\widgets\slider.py", line 408, in box_rect self.setSceneRect(rect) TypeError: arguments did not match any overloaded call: setSceneRect(self, QRectF): argument 1 has unexpected type 'QRect' setSceneRect(self, float, float, float, float): argument 1 has unexpected type 'QRect'

I managed to solve it by changing all the QRect into QRectF, so I am guessing it is a typo in the slyder.py file? Just to let you know, maybe I didn't quite solve it, but like this the GUI at least opened.


Your personal set up

  • OS:
  • Version(s):
Environment packages
# paste output of `pip freeze` or `conda list` here

MirjamH avatar Oct 06 '22 11:10 MirjamH

Hi @MirjamH,

Thanks for reporting! I edited your response - do you mind telling us a bit about your set-up (version of SLEAP and running 'conda list' in your terminal)?

This seems like a set-up specific discrepancy (and may have been caused by adding a Qt interpreter in our latest release).

Glad you found a workaround for the time being.

Thanks, Liezl

roomrys avatar Oct 06 '22 16:10 roomrys

Hi! I am sorry for not responding sooner, but I will delete my message again, because it must have been something with my computer. Two colleagues installed it the exact same way and did not have any errors. I suspect it was a problem with my anaconda installation (which was done a while ago). Anyhow, thanks a lot for responding, if I run into more problems I'll let you know for some more help :) Cheers, Mirjam

On Thu, Oct 6, 2022 at 5:27 PM Liezl Maree @.***> wrote:

Hi @MirjamH https://github.com/MirjamH,

Thanks for reporting! I edited your response - do you mind telling us a bit about your set-up (version of SLEAP and running 'conda list' in your terminal)?

This seems like a set-up specific discrepancy (and may have been caused by adding a Qt interpreter in our latest release).

Thanks, Liezl

— Reply to this email directly, view it on GitHub https://github.com/talmolab/sleap/issues/984#issuecomment-1270369030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMA64XNXWIIU7VM2OOW4GZ3WB34XZANCNFSM6AAAAAAQ6PV4DU . You are receiving this because you were mentioned.Message ID: @.***>

MirjamH avatar Oct 11 '22 12:10 MirjamH

Thanks for the update! @MirjamH

Let us know if updating anaconda fixes things. Otherwise, we can help troubleshoot (given some info on your set-up).

Thanks, Liezl

roomrys avatar Oct 11 '22 17:10 roomrys

Hi @MirjamH,

We are closing this issue for now, but feel free to reply here if you are still experiencing issues and we will re-open it!

Thanks, Liezl

roomrys avatar Nov 07 '22 20:11 roomrys