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

bug: module 'socket' has no attribute 'AF_UNIX' #4684

Closed
KwantData opened this issue Apr 22, 2024 · 0 comments · Fixed by #4685
Closed

bug: module 'socket' has no attribute 'AF_UNIX' #4684

KwantData opened this issue Apr 22, 2024 · 0 comments · Fixed by #4685
Assignees
Labels
bug Something isn't working

Comments

@KwantData
Copy link

KwantData commented Apr 22, 2024

Describe the bug

Hello,
I'm trying to use Bentoml by playing with the quick start examples. When running the Iris classification example on a windows machine, I have this error message:

File "C:\Users\Path\lib\site-packages\uvicorn\server.py", line 140, in startup
    sock = socket.fromfd(config.fd, socket.AF_UNIX, socket.SOCK_STREAM)
AttributeError: module 'socket' has no attribute 'AF_UNIX'

I tried to change the socket attribute to AF_INET, the error messages disappear but the client cannot connect to the bentoml server.

Thanks,

To reproduce

No response

Expected behavior

No response

Environment

bentoml:1.2.12
python:3.9.18
uvicorn:0.29.0
Windows: 11 Pro 22H2

@KwantData KwantData added the bug Something isn't working label Apr 22, 2024
@frostming frostming self-assigned this Apr 23, 2024
frostming added a commit that referenced this issue Apr 23, 2024
Fixes #4684

Signed-off-by: Frost Ming <me@frostming.com>
frostming added a commit that referenced this issue Apr 23, 2024
Fixes #4684

Signed-off-by: Frost Ming <me@frostming.com>
frostming added a commit that referenced this issue May 6, 2024
Fixes #4684

Signed-off-by: Frost Ming <me@frostming.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants