moondream icon indicating copy to clipboard operation
moondream copied to clipboard

Inference error (streaming): unsupported operand type(s) for /: 'str' and 'int'

Open InfinitySoftware-House opened this issue 5 months ago • 6 comments

2025-06-25 18:05:09,389 - hypervisor - ERROR - Error from inference server: 500, {"detail":"Inference error (streaming): unsupported operand type(s) for /: 'str' and 'int'"}

This is the error I get on moondream station using query endpoint.

InfinitySoftware-House avatar Jun 25 '25 16:06 InfinitySoftware-House

same. a clean first install of the moondream desktop app. the caption command works fine though.

console output

moondream> query "what is this diagram about" /Users/matt/Desktop/database-centric-services.png 
Answering streaming query: what is this diagram about

------ Completed ------

station log

New request: /v1/query
Inference error (streaming): unsupported operand type(s) for /: 'str' and 'int'
Completed /v1/query in 7978.93 ms
2025-06-26 09:07:40,224 - hypervisor - ERROR - Error from inference server: 500, {"detail":"Inference error (streaming): unsupported operand type(s) for /: 'str' and 'int'"}

mattsta avatar Jun 26 '25 13:06 mattsta

sam here: New request: /v1/query Inference error (streaming): unsupported operand type(s) for /: 'str' and 'int' Completed /v1/query in 4090.99 ms 2025-07-05 11:11:14,564 - hypervisor - ERROR - Error from inference server: 500, {"detail":"Inference error (streaming): unsupported operand type(s) for /: 'str' and 'int'"} -- totally unusable. this is such a silly mistake! come on - we can do better. please fix this.

aminPial avatar Jul 05 '25 05:07 aminPial

I have the same problem, is there any workaround

matej14086 avatar Jul 16 '25 14:07 matej14086

Thanks for pointing out this bug. What OS are y'all running?

EthanReid avatar Jul 17 '25 22:07 EthanReid

Same error here, using the Python API with a first install of the moondream desktop app. Query doesn't work in the CLI either (no error in the terminal, but the call completes without generating any output). Caption and Detect work fine. I'm running MacOS 15.3.1 on an M1 Macbook Pro.

msnorrason avatar Jul 18 '25 01:07 msnorrason

I appreciate the patience. The bug is fixed on both Mac and Linux. Please run admin update --confirm. If you are still having trouble, try doing a fresh install with: curl https://depot.moondream.ai/station/install.sh | bash

EthanReid avatar Jul 18 '25 22:07 EthanReid