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

Websocket error: SSL not available. #552

Closed
brentpicasso opened this issue Sep 2, 2017 · 5 comments
Closed

Websocket error: SSL not available. #552

brentpicasso opened this issue Sep 2, 2017 · 5 comments

Comments

@brentpicasso
Copy link
Contributor

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

Getting this error when attempting to open a secure websocket ('wss://') using websocket-client.

Still happens after a buildozer android clean and after deleting the .buildozer directory.

buildozer requirements:

requirements = kivy==1.10.0, sqlite3, openssl, pyopenssl, pygments, websocket-client

@brentpicasso
Copy link
Contributor Author

still getting it with the latest python-for-android: buildozer android update

Thinking maybe this is a py4a issue?

@brentpicasso
Copy link
Contributor Author

Digging further:

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.

@inclement
Copy link
Member

This would indeed be a python-for-android issue.

Does openssl work in general for you, e.g. downloading an https:// site?

@brentpicasso
Copy link
Contributor Author

Thank you for the quick reply. I'm successfully using https with ururllib2 , so it seems ssl is working.

I'll open an issue in python-for-android.

@brentpicasso
Copy link
Contributor Author

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

2 participants