-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ArgumentError: argument 3: <class 'TypeError'>: wrong type #6428
Comments
Are you trying to run kivy multiple times within the same python execution? Normally you need to restart python if you want to run kivy multiple times because kivy is meant to be run as an app that starts fresh every time it is run. There are ways to have kivy clean up after itself, but those are not officially documented. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
I was facing the same issue. Finally solved it by executing the code in external terminal. |
I had the same issue trying to run with Jupyter Notebook and Pycharm... |
I was facing the same issue with Spyder. The solution is Go to Consoles>"Restart Kernel" before Run the App . |
I was facing the same issue in Jupiter notebook. Go to kernel and restart and run all. |
thank you,it's a viable way to solution,but a little complex,
whether there is a option to set to deal with it?
nhamde1998 <notifications@github.com> 于2020年4月11日周六 下午5:25写道:
… I was facing the same issue in Jupiter notebook. Go to kernel and restart
and run all.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6428 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFU3OF7P2JSEEXVGJED6PA3RMAZPVANCNFSM4IFNCNVQ>
.
|
I think the issue is on line 87 of wm_pen.py written by @tito |
wm_touch.py uses the same approach at line 111 and fails in the same way.
This is not ideal if you want to support windows pen and/or touch… |
This is built into kivy that we only have one app at a time and that we have a window when running the app. So as suggested above for different IDE, you need to restart every time you run the app. |
My comment was from running kivy directly. Should I open another issue? |
@rdoursenaud if you can reproduce the issue running kivy directly from a terminal and not from spyder/jupyter, then yeah you can open an issue with a reproducible example and full log. |
Issue
I test the kivy code by Miniconda3(also test it in Anaconda3,the same issus appeard),
Every time I press F5 for the first time, the code runs normally,and kivy interface appears normally, as follow:
but after colsing kivy interface ,pressing F5 will report the following error.
Restart the kernel is a feasible method, but this means that I must restart the kernel every time after runing the code. Is is normal?
Environment
here is the test code I got from https://kivy.org/#home
The text was updated successfully, but these errors were encountered: