-
Notifications
You must be signed in to change notification settings - Fork 321
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
Importing eventlet returns "socket.error: protocol not found" #370
Labels
Comments
Does it work without eventlet installed? |
If not, it's a platform configuration error, see https://stackoverflow.com/questions/40184788/protocol-not-found-socket-getprotobyname TL;DR: you should have |
@temoto Thanks, the command on that link worked! |
srstsavage
added a commit
to srstsavage/micromamba-docker
that referenced
this issue
Sep 12, 2023
netbase is a tiny (~30kB installed) package providing some core TCP/IP files. It's somehow not included in debian:bookworm-slim which can lead to some unexpected errors when trying to use micromamba-docker based images (example: eventlet crashes with `socket.error: protocol not found` if netbase is not installed. eventlet/eventlet#370
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I installed Eventlet via pip:
pip install eventlet
. I'm running GNURoot Debian on Android.I then went into the Python shell and did
import eventlet
. There, it gave me an error message:I see socket, so it might be worthwhile mentioning that I'm using eventlet for a Flask + Socket.IO program.
Code:
The text was updated successfully, but these errors were encountered: