`sendspin server` doesn't work offline
评估
这个 Issue 还没有评估数据。
描述
When trying to run sendspin serve while not connencted to a network, I get the following exception:
INFO:aiosendspin.server.server:Starting Sendspin server on port 8927
INFO:aiosendspin.server.server:Sendspin server started successfully on 0.0.0.0:8927
ERROR:aiosendspin.server.server:Failed to start server on 0.0.0.0:8927: [Errno 19] No such device
Server error: [Errno 19] No such device
Traceback (most recent call last):
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/sendspin/cli.py", line 738, in main
return asyncio.run(_run_serve_mode(args))
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.14/asyncio/runners.py", line 204, in run
return runner.run(main)
~~~~~~~~~~^^^^^^
File "/usr/lib64/python3.14/asyncio/runners.py", line 127, in run
return self._loop.run_until_complete(task)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/lib64/python3.14/asyncio/base_events.py", line 719, in run_until_complete
return future.result()
~~~~~~~~~~~~~^^
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/sendspin/cli.py", line 693, in _run_serve_mode
return await run_server(serve_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/sendspin/serve/__init__.py", line 195, in run_server
await server.start_server(port=port, discover_clients=False)
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/aiosendspin/server/server.py", line 692, in start_server
self._zc = AsyncZeroconf(
~~~~~~~~~~~~~^
ip_version=IPVersion.V4Only,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
interfaces=[host] if host != "0.0.0.0" else InterfaceChoice.Default,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/zeroconf/asyncio.py", line 170, in __init__
self.zeroconf = zc or Zeroconf(
~~~~~~~~^
interfaces=interfaces,
^^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
apple_p2p=apple_p2p,
^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/zeroconf/_core.py", line 202, in __init__
listen_socket, respond_sockets = create_sockets(interfaces, unicast, ip_version, apple_p2p=apple_p2p)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/zeroconf/_utils/net.py", line 459, in create_sockets
add_multicast_member(cast(socket.socket, listen_socket), interface)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/perso/.local/share/uv/tools/sendspin/lib64/python3.14/site-packages/zeroconf/_utils/net.py", line 350, in add_multicast_member
listen_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, _value)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 19] No such device
ERROR:asyncio:Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fdfab3dde80>
Some more context about my usecase: I'm trying to troubleshoot an esphome sendspin speaker, and I wanted to try a simple setup where the speaker connects directly to my laptop running an access point, and use sendspin-cli to stream a (local) audio file to it.
- 主要语言
- Python
- 星标
- 190
- 派生
- 36
- 平均合并
- 11 天 19 小时
- 30 天内合并 PR
- 2
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Sendspin/sendspin-python-cli 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
Sendspin/sendspin-python-cli#280 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 74/100
Sendspin/sendspin-python-cli#278 · 2 条评论 · 5 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Sendspin/sendspin-python-cli#257 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
Sendspin/sendspin-python-cli#256 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
Sendspin/sendspin-python-cli#113 · 10 条评论 ·
查看 Sendspin/sendspin-python-cli 的全部 Issue
相似的 Issue
-
bug status/needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
prowler-cloud/prowler#12887 · 1 条评论 ·
维护者通常 1 天内回复
-
area: desktop platform: macos priority: p3 status: ready type: enhancement
难度 1/5 1 小时以内 新手友好度 92/100
use-agent-os/agent-os#3484 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
open-telemetry/opentelemetry-python-contrib#5113 · 2 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
external
难度 2/5 1-3 小时 新手友好度 68/100
langchain-ai/docs#6255 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复