-
Notifications
You must be signed in to change notification settings - Fork 21
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
TypeError: drawText argument 1 has unexpected type 'float' #7
Comments
In case this is relevant: using python 3.10 on a M1 MacBook. |
I had the same error. After fixing it with int() wrappers as SytseGroenwold suggested above, I found the next thing that crashed it: |
Same here. The error further appeared on all uses of fillRect, that also requires manually adding int() around first 4 arguments. After these changes, I managed to get it running on mac - python3.11 - PyQT5 5.15.10 |
After cloning the repo and attempting to start the program, I received this error message:
This type error is easily fixed by following the stack trace to mapwidget:139 and casting both numeral arguments of the p.drawText() invocation with a simple int().
Will create a pull request in case this solution is deemed acceptable.
The text was updated successfully, but these errors were encountered: