-
Notifications
You must be signed in to change notification settings - Fork 130
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
Running a web server with Quart #1243
Comments
The first Google result for this error message indicates that it was fixed in Python 3.9. To change the Python version of your app, follow these instructions. Alternatively, if you call |
Of course i googled this, but it still doesn't work. I was already on Python 3.12, i tried 3.9 just to make sure but it does the same errors. But Putting Python.start in the thread did it, i just had to remove |
I spoke too fast, it worked with an empty Quart app but as soon as i add a call to Kotlin from Python i get Kotlin:
Python:
|
If you want help with an error message, you must always post the full stack trace. |
You never create an activity explicitly in Android. The system creates it, and calls methods on it. If you want to access it from Python code, just pass |
I see, this line was given to me by both ChatGPT and Llama, i know these are not great sources it was a just a try since i didn't totally got the doc right and there's not much online yet for Chaquopy that i have seen. Anyhow thanks! Kotlin:
Python:
Error:
|
Hi, this is not exactly a bug i assume but nothing in the rather short documentation or from online searches could help me. I am trying to build an android app that runs a Quart app in background with Chaquopy and a web view to display it full screen. The problem is i can't find a way to run Chaquopy without blocking the main thread which is kind of pointless, no matter what i try there is an error!
Here's why i can't figure it out:
So is it simply impossible to run a python web server and a webview in the same android app?
Running Chaquopy in the activity like such blocks the main thread and the UI (webview) stops working:
I tried running Chaquopy in an android thread as such:
Which give me this error from the activity:
I tried running the server in a Python thread like this:
Which give me this error in logcat through python.stderr:
I tried running Chaquopy in a coroutine:
Which does start the server but still blocks the main android thread and cause this error:
I don't know what to try next and can't find much online, is running a webserver in Chaquopy whthout blocking the UI impossible?
The text was updated successfully, but these errors were encountered: