-
The error generated after running the 'briefcase run web' command, can run normally with the same code under both the 'briefcase dev' and 'briefcase run android' commands.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Briefcase leverages Pyscript as the platform to run Python in the browser. As such, it cannot open sockets due to the security model of the browser. Therefore, most (if not all) packages for Python that need to open a socket are not compatible with Pyscript currently. Pyscript does provide some basic APIs for HTTP requests and WebSockets....but it's non-trivial to see how these could facilitate a database connection today. |
Beta Was this translation helpful? Give feedback.
Briefcase leverages Pyscript as the platform to run Python in the browser. As such, it cannot open sockets due to the security model of the browser. Therefore, most (if not all) packages for Python that need to open a socket are not compatible with Pyscript currently. Pyscript does provide some basic APIs for HTTP requests and WebSockets....but it's non-trivial to see how these could facilitate a database connection today.