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

TypeError: __init__() got an unexpected keyword argument 'drawtype' #43

Open
trevorLevel opened this issue Oct 16, 2023 · 4 comments
Open

Comments

@trevorLevel
Copy link

trevorLevel commented Oct 16, 2023

Hello,
I have tried running this with multiple installations of Python, 3.7, 3.8, and 3.11. Every time I always get to the same point, where upon running mesh = mesher.mesh(image_stack), I get the error TypeError: __init__() got an unexpected keyword argument 'drawtype'.

Please let me know if I am doing anything wrong, or if this is a bug!

@Lubo040485
Copy link

Same problem here. Any support would be much appreciated.

@superalloy-greg
Copy link

Hello, I had the same issue and solved it by downgrading matplotlib to 3.3.1
Hope this helps

@Hasnainbold
Copy link

i am also getting same issue
but is solve by upgrading my matplotlib

@Skaraa
Copy link

Skaraa commented Jul 20, 2024

Hi, I had the same issue. Tried to downgrade matplotlib but got problems too. So I digged into the code and found what to change and where.

You just have to go to the dic.Mesher definition which is in meshUtilities.py. Then go to the line 233 where RectangleSelector() is called. There the third argument is drawtype='box'.
Now go to the definition of RectangleSelector() which is in widgets.py. At the line 3155 you'll find the init method of the RectangleSelector class. Here the 4th argument is *. I just changed this * by drawtype and everything works fine now.

If you use VS code, you can go to definition of an object with f12 (on my computer it works like that at least).

Hope it was clear enough.

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

5 participants