Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: argument 1 has unexpected type 'float' #15

Open
donghyunlee00 opened this issue May 16, 2022 · 13 comments
Open

Error: argument 1 has unexpected type 'float' #15

donghyunlee00 opened this issue May 16, 2022 · 13 comments

Comments

@donghyunlee00
Copy link

Errors argument 1 has unexpected type 'float' occurred in Qt functions.

image

@wr-web
Copy link

wr-web commented Sep 14, 2022

You can convert self._dpi_scale to int in waitbox.py solving this problem. :( Afterward I find so many type problem....

@ferib
Copy link

ferib commented May 6, 2023

I ended up solving this by replacing every self._dpi_scale with a fixed value in waitbox.py. Is there any clean way to fix this?

Surprised to see this worked as-is on OSX but not on Windows 🙃

Edit: Ended up doing self._dpi_scale = int(get_dpi_scale()*5.0) at waitbox.py:65, seems to work fine now

@nasroabd
Copy link

I am still not able to get it to fully work on my end, I tried your fork @ferib but I get the following errors:

Screenshot 2023-05-14 at 1 52 57 AM

Help is much appreciated, please and thank you!

@ferib
Copy link

ferib commented May 14, 2023

Hey, I had some issues with my IDA Pro 8.1 and the Python version I used as the plugin made my IDA crash. I just upgraded to 8.2 and I can see those errors as well now 🤔

@nasroabd
Copy link

@ferib on which version of IDA and Python you got it to work previously?

@ferib
Copy link

ferib commented May 14, 2023

I used IDA 8.1 with Python 3.11.x, I was told to upgrade to 8.2.

I am currently looking in the 'new' errors I get in 8.2

@nasroabd
Copy link

yeah same I am using IDA 8.2, thank you for looking into it!

please keep me posted, much appreciated!

@ferib
Copy link

ferib commented May 14, 2023

@MrNasro I added some more int(), I cba to figure out which place is best so I took wherever IDA started to complain.

2bb443a

Not sure why but when clicking around in the timeline window I crash randomly for some reason 🤔

@nasroabd
Copy link

yeah I still see some errors and it does not seem to be functioning correctly :/ I wonder if it is the version of Python or IDA, in the original repo it does not mention which versions they got it to work on.

@J-jaeyoung
Copy link

J-jaeyoung commented Jun 3, 2023

yeah I still see some errors and it does not seem to be functioning correctly :/ I wonder if it is the version of Python or IDA, in the original repo it does not mention which versions they got it to work on.

@MrNasro
I also have the same problems and only python under 3.10 works fine on me without any code patch. (exactly, 3.9.11)
This issue seems to be related to the deprecated implicit conversion after python 3.10.

@Ana06
Copy link

Ana06 commented Apr 30, 2024

I get the same error in IDA 8.3 with Python 3.10:

C:\Users\flare\AppData\Roaming\Hex-Rays\IDA Pro\plugins\tenet_plugin.py: setSpacing(self, int): argument 1 has unexpected type 'float'

@J-jaeyoung
Copy link

I get the same error in IDA 8.3 with Python 3.10:

Python 3.9.xx will solve the issue

@Ana06
Copy link

Ana06 commented Apr 30, 2024

@J-jaeyoung

Python 3.9.xx will solve the issue

Yes, as you mentioned before the issue looks related to the deprecated implicit conversion.

I would like to add this plugin to FLARE-VM and we are using Python 3.10. Decreasing the Python version affects other libraries and plugins, so this is not an option and we are rather looking into increasing the Python version. Note also there seem to be a bug in the latest version of IDA Pro (8.4) and IDApython only runs with Python 3.12: mandiant/VM-Packages#1017 So I hope @gaasedelen finds time to fix the issue (or review the PR that appear to fix the issue: #18). 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants