Missing dependancy #203

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

Originally created by @willbelr on GitHub (Jan 11, 2025).

It appear that python-pydantic is missing from the dependancies in the AUR package (ollama 0.4.5-1).

Originally created by @willbelr on GitHub (Jan 11, 2025). It appear that `python-pydantic` is missing from the dependancies in the AUR package (ollama 0.4.5-1).
yindo closed this issue 2026-02-15 16:28:42 -05:00
Author
Owner

@ParthSareen commented on GitHub (Jan 16, 2025):

Is ollama not running with it?

From what I'm aware of only there is only a pydantic pypi package - not sure how AUR is relevant here.

@ParthSareen commented on GitHub (Jan 16, 2025): Is ollama not running with it? From what I'm aware of only there is only a `pydantic` pypi package - not sure how AUR is relevant here.
Author
Owner

@willbelr commented on GitHub (Jan 16, 2025):

I meant that the AUR package python-ollama requires extra/python-pydantic. This is not a dependancy of ollama.
Since Python 3.13, importing python-ollama raises an error without pydantic installed;

Python 3.13.1 (main, Dec  4 2024, 18:05:56) [GCC 14.2.1 20240910] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ollama
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import ollama
  File "/usr/lib/python3.13/site-packages/ollama/__init__.py", line 1, in <module>
    from ollama._client import Client, AsyncClient
  File "/usr/lib/python3.13/site-packages/ollama/_client.py", line 26, in <module>
    from pydantic.json_schema import JsonSchemaValue
ModuleNotFoundError: No module named 'pydantic'
@willbelr commented on GitHub (Jan 16, 2025): I meant that the AUR package `python-ollama` requires `extra/python-pydantic`. This is not a dependancy of `ollama`. Since Python 3.13, importing python-ollama raises an error without pydantic installed; ``` Python 3.13.1 (main, Dec 4 2024, 18:05:56) [GCC 14.2.1 20240910] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ollama Traceback (most recent call last): File "<python-input-0>", line 1, in <module> import ollama File "/usr/lib/python3.13/site-packages/ollama/__init__.py", line 1, in <module> from ollama._client import Client, AsyncClient File "/usr/lib/python3.13/site-packages/ollama/_client.py", line 26, in <module> from pydantic.json_schema import JsonSchemaValue ModuleNotFoundError: No module named 'pydantic' ```
Author
Owner

@ParthSareen commented on GitHub (Jan 16, 2025):

We don't own python-ollama on AUR so not something we control. Would recommend just following library instructions to install - IIUC you shouldn't have to download off AUR? Just install like you would any other python library.

@ParthSareen commented on GitHub (Jan 16, 2025): We don't own `python-ollama` on AUR so not something we control. Would recommend just following library instructions to install - IIUC you shouldn't have to download off AUR? Just install like you would any other python library.
Author
Owner

@willbelr commented on GitHub (Jan 16, 2025):

Just install like you would any other python library.

On Arch, system-wide python packages are installed via the community packages, whose prefix are python-. Unfortunatly, the python-ollama is not officially supported, but someone made a PKGBUILD so it can be installed via AUR. I will contact the package maintainer about the dependancy issue.

@willbelr commented on GitHub (Jan 16, 2025): > Just install like you would any other python library. On Arch, system-wide python packages are installed via the community packages, whose prefix are `python-`. Unfortunatly, the python-ollama is not officially supported, but someone made a PKGBUILD so it can be installed via AUR. I will contact the package maintainer about the dependancy issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#203