fit-project / fit

FIT is a Python3 application for forensic acquisition of contents like web pages, emails, social media, etc. directly from the internet.
GNU General Public License v3.0
67 stars 9 forks source link

Fixes float errors when run using poetry run #116

Closed digitalsleuth closed 1 year ago

digitalsleuth commented 1 year ago

When using the poetry run python fit.py command, the following error would occur frequently:

TypeError: arguments did not match any overloaded call:
  move(self, a0: QPoint): argument 1 has unexpected type 'float'
  move(self, ax: int, ay: int): argument 1 has unexpected type 'float'

This seems to only affect Python 3.10 at this time, but the changes in this PR do not affect any other Python versions.

zitelog commented 1 year ago

Thanks for your help. just to inform you, at the moment we are developing with python 3.9.0, but tanks to your cooperation it will be easier for us to update python in the next FIT versions. However, I have tested your code review with py 3.9.0 and everything works!

digitalsleuth commented 1 year ago

That's good to hear! I only mention 3.10 because I routinely test on 3.8 - 3.10, usually with Linux systems since Ubuntu Focal is defaulted to 3.8 and Jammy is defaulted to 3.10. Thanks for taking a look at this, and this is a great tool!