Local Ai
Ollama serve command doesn't work with python
I was thinking about using WebUI but I have a big problem with ollama serve command. Basically I made a python script that uses Ollama API and it works damn well if I don't serve the Ollama server man
I was thinking about using WebUI but I have a big problem with ollama serve command. Basically I made a python script that uses Ollama API and it works damn well if I don't serve the Ollama server manually and it does all by itself If I do Ollama serve, the API calls from python are shown in the terminal but they return absolutely nothing (ex: ollama.list() returns empty) It works again if I ctrlc the terminal window with the ollama server I figured out that the server might be starting automatically on pc startup and I break it by starting manually, but Idk how to check that I'm on Linux Mint Cinnamon Edit: I completely killed the Ollama service then ran ollama serve, again, didn't work at all and the python API doesn't work submitted by /u/circumcised_hobbit [link] [comments]
Source: r/ollama | 2026-09-08