-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Getting this error when attempting to open a secure websocket ('wss://') using websocket-client.
09-02 09:12:04.037 10328 10719 I python : [ERROR ] [MyApp] Websocket error: SSL not available.
09-02 09:12:04.037 10328 10719 I python : [INFO ] [MyApp] Websocket closed
Still happens after trying:
- buildozer android clean
- deleting the .buildozer directory and re-building
- issuing
buildozer android updateandbuildozer android cleanand update
buildozer requirements:
requirements = kivy==1.10.0, sqlite3, openssl, pyopenssl, pygments, websocket-client
Other notes:
-
To get websocket-client to load I had to copy websocket-client source locally into my project as recommended here: https://github.com/kivy/python-for-android/blob/master/pythonforandroid/recipes/websocket-client/__init__.py#L3
-
I disabled the SSL check on websocket-client and found a lower level exception:
09-02 10:00:43.215 13478 13511 I python : [ERROR ] [MyApp] Websocket error: _ssl.c:331: No root certificates specified for verification of other-side certificates.
- SSL does work on my android build; elsewhere in our app we are successfully using https with urllib2.