ollama / ollama/ollama-python

Local running lamma3. httpx.connecterror [wrong ssl]

Open
#174 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.5k
Forks
1.2k
Avg merge
4m
Merged PRs (30d)
1

Description

Hello :)

I'm trying to run locally lamma3 on ubuntu 20.04.
I installed everything and it all seem to be working.
Running ollama run llama3:8b let me chat with him. And running ollama serve seems to work.

I tried coppying this code:

import ollama
response = ollama.chat(model='llama3', messages=[
  {
    'role': 'user',
    'content': 'Why is the sky blue?',
  },
])
print(response['message']['content'])

But I get an error:
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)

image image

If you need any more information let me know.
Thank you :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Python ollama.chat example on Ubuntu 20.04 while ollama serve is running, then inspect the reported httpx.ConnectError and the connection configuration. Compare the behavior with the successful ollama run llama3:8b command; done means identifying the cause and establishing the correct local API behavior or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
ollama, python, ubuntu
Domain
api, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.