bentoml / BentoML

The easiest way to serve AI/ML models in production - Build Model Inference Service, LLM APIs, Multi-model Inference Graph/Pipelines, LLM/RAG apps, and more!

Home Page:https://bentoml.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

KwantData opened this issue · comments

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