Getting ConnectError: [Errno 111] Connection refused #108

Closed
opened 2026-02-15 16:28:01 -05:00 by yindo · 3 comments
Owner

Originally created by @MDABUSAYED on GitHub (Jun 30, 2024).

After installing Ollama Python library when I execute this code
import ollama response = ollama.chat(model='llama3', messages=[ { 'role': 'user', 'content': 'Why is the sky blue?', }, ]) print(response['message']['content'])

Get following error previously -> "ConnectError: [Errno 111] Connection refused"
Now error change to -> "ResponseError: model 'llama3' not found, try pulling it first"
My python version 3.8.10

Originally created by @MDABUSAYED on GitHub (Jun 30, 2024). After installing Ollama Python library when I execute this code `import ollama response = ollama.chat(model='llama3', messages=[ { 'role': 'user', 'content': 'Why is the sky blue?', }, ]) print(response['message']['content'])` Get following error previously -> "ConnectError: [Errno 111] Connection refused" Now error change to -> "ResponseError: model 'llama3' not found, try pulling it first" My python version 3.8.10
yindo closed this issue 2026-02-15 16:28:01 -05:00
Author
Owner

@ankitdata commented on GitHub (Jul 23, 2024):

@MDABUSAYED ,
Are you able to resolve this issue.

@ankitdata commented on GitHub (Jul 23, 2024): @MDABUSAYED , Are you able to resolve this issue.
Author
Owner

@MDABUSAYED commented on GitHub (Jul 23, 2024):

Yes.

@MDABUSAYED commented on GitHub (Jul 23, 2024): Yes.
Author
Owner

@DanielAbdelNour commented on GitHub (Aug 20, 2024):

@MDABUSAYED how did you resolve it?

@DanielAbdelNour commented on GitHub (Aug 20, 2024): @MDABUSAYED how did you resolve it?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#108