Package Details: alpaca-ai 8.1.1-1

Git Clone URL: https://aur.archlinux.org/alpaca-ai.git (read-only, click to copy)
Package Base: alpaca-ai
Description: An Ollama client. Chat with local AI models or connect to third party AI providers like ChatGPT , Gemini and more
Upstream URL: https://github.com/Jeffser/alpaca
Keywords: ai alpaca gpt gptchat ollama
Licenses: GPL-3.0-or-later
Submitter: radiolin
Maintainer: Sid127
Last Packager: Sid127
Votes: 12
Popularity: 0.99
First Submitted: 2024-09-01 20:50 (UTC)
Last Updated: 2025-09-14 18:17 (UTC)

Latest Comments

1 2 Next › Last »

patina commented on 2025-09-13 23:34 (UTC) (edited on 2025-09-14 17:22 (UTC) by patina)

I've revised the PKGBUILD dependencies to support TTS/STT and the REMBG tool.

PKGBUILD
# Maintainer: Pedro dev <pedrolucasinvestidor.github@gmail.com>
# OLD.Maintainer: Radiolin <anton.osi2011@gmail.com>
#
# This PKGBUILD builds the 'alpaca-ai' application.
# Before attempting to build this package, ensure all AUR dependencies are installed.
pkgname=alpaca-ai
_pkgname=alpaca
pkgver=8.1.0
pkgrel=4
pkgdesc="An Ollama client. Chat with local AI models or connect to third party AI providers like ChatGPT , Gemini and more"
arch=(any) # 'any' is generally suitable for Python applications, but specific arch (e.g., 'x86_64') might be used if native components are present.
url="https://github.com/Jeffser/${_pkgname}" # Project URL, clarified to use _pkgname
license=(GPL-3.0-or-later)
options=(!debug) # Disable debug symbols for a smaller package

# Corrected source URL format for GitHub tags
source=("$pkgname-$pkgver.tar.gz::https://github.com/Jeffser/$_pkgname/archive/refs/tags/$pkgver.tar.gz")
b2sums=('66b2ce2ec63b69631b02af3fa6c404cea8a2ddf20585da1c1f34a41431023dc6008ba2fa050f068445f01c31915c52bd178f8f53716ce1dd16854c91174df471')

# List of runtime dependencies
depends=(
    blueprint-compiler
    dconf
    glib2
    gst-plugin-pipewire
    gtk4
    gtksourceview5
    hicolor-icon-theme
    libadwaita
    libportal
    libspelling
    nuspell
    ollama
    pango
    python
    python-cairo
    python-espeakng-loader
    python-gobject
    python-html2text
    python-kokoro
    python-markitdown
    python-matplotlib
    python-num2words
    python-odfpy
    python-openai
    python-openai-whisper
    #python-phonemizer         # Pending Fork Merge
    python-phonemizer-fork
    python-pyaudio
    python-pydbus
    python-pyicu
    python-rembg
    python-sounddevice
    python-spacy
    python-spacy-en_core_web_sm
    #python-thinc              # v9 on Python 12
    python-thinc-bin-8.3.2     # v8 on Python 13 (thinc-8.3.6)
    vte4
    webkitgtk-6.0
)

# List of build-time dependencies
makedepends=(
    appstream
    desktop-file-utils
    gettext
    git
    meson
)

build() {
    # The extracted source directory is 'Alpaca-X.X.X' (with 'A' capitalized)
    # This path matches the actual directory created by tar.
    arch-meson "Alpaca-$pkgver" build
    meson compile -C build
}

package() {
    meson install -C build --destdir "$pkgdir"
}

Kcchouette commented on 2025-08-27 08:00 (UTC) (edited on 2025-08-27 08:01 (UTC) by Kcchouette)

==> Making package: alpaca-ai 7.7.5-1 (mer. 27 août 2025 09:57:27)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found alpaca-ai-7.7.5.tar.gz
==> Validating source files with b2sums...
    alpaca-ai-7.7.5.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!
Failed to build alpaca-ai

hnacho commented on 2025-08-04 08:29 (UTC)

i needed to install

python-opencv
python-whisper
python-duckduckgo-search

ww998 commented on 2025-08-02 21:20 (UTC)

Yes, needed to install libportal python-opencv and python-duckduckgo-search as @mab122 said.

They should be dependencies for the package.

mab122 commented on 2025-07-28 10:11 (UTC)

dependencies that were missing for me:

libportal
python-opencv
python-duckduckgo-search

papa33 commented on 2025-07-26 20:20 (UTC) (edited on 2025-07-27 12:08 (UTC) by papa33)

Edit: today I have this error


file "/usr/lib/python3.13/threading.py", line 1505, in _register_atexit
    raise RuntimeError("can't register atexit after shutdown")
RuntimeError: can't register atexit after shutdown

Version 7.5.5 not starting:


INFO    [main.py | main] Alpaca version: 7.5.5
Traceback (most recent call last):
  File "/usr/share/Alpaca/alpaca/main.py", line 166, in do_activate
    self.main_alpaca_window = get_window_library('alpaca')(application=self)
                              ~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/share/Alpaca/alpaca/main.py", line 63, in get_window_library
    _loaded_window_libraries[name] = _window_loaders[name]()
                                     ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/Alpaca/alpaca/main.py", line 53, in <lambda>
    'alpaca': lambda: __import__('alpaca.window', fromlist=['AlpacaWindow']).AlpacaWindow,
                      ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/Alpaca/alpaca/window.py", line 34, in <module>
    from . import widgets as Widgets
  File "/usr/share/Alpaca/alpaca/widgets/__init__.py", line 3, in <module>
    from . import chat, dialog, message, terminal, attachments, voice, camera, instances, models, welcome, preferences
  File "/usr/share/Alpaca/alpaca/widgets/chat.py", line 11, in <module>
    from . import dialog, voice
  File "/usr/share/Alpaca/alpaca/widgets/voice.py", line 11, in <module>
    from . import dialog, models, blocks
  File "/usr/share/Alpaca/alpaca/widgets/models/__init__.py", line 3, in <module>
    from . import added, available, pulling, common, speech, creator
  File "/usr/share/Alpaca/alpaca/widgets/models/added.py", line 7, in <module>
    from .. import dialog, attachments
  File "/usr/share/Alpaca/alpaca/widgets/attachments.py", line 4, in <module>
    gi.require_version('Xdp', '1.0')
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Xdp not available

pedrodev2025 commented on 2025-06-05 01:13 (UTC)

@patina hello, I did what I could, it was simply a dependency problem, I just added the two dependencies to the PKGBUILD

patina commented on 2025-06-04 19:29 (UTC) (edited on 2025-06-04 19:30 (UTC) by patina)

Thank you for updating this AUR package! I just wanted to mention that I couldn’t get speech-to-text working until I manually installed python-openai-whisper and python-pyaudio. Also, text-to-speech seems to be broken, possibly due to missing modules that aren’t in the Arch repos or it might be something else. I’m sharing this in case it helps others or leads to a solution.

Exception in thread Thread-18 (run):
Traceback (most recent call last):
  File "/usr/lib/python3.13/threading.py", line 1041, in _bootstrap_inner
    self.run()
    ~~~~~~~~^^
  File "/usr/lib/python3.13/threading.py", line 992, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/share/Alpaca/alpaca/custom_widgets/message_widget.py", line 604, in run
    from kokoro import KPipeline
ModuleNotFoundError: No module named 'kokoro'

mar04 commented on 2025-02-26 12:38 (UTC)

updated to version 5.0.5

pkgname=alpaca-ai
_pkgname=alpaca
pkgver=5.0.5
pkgrel=1
pkgdesc="An Ollama client. Chat with local AI models or connect to third party AI providers like ChatGPT , Gemini and more"
arch=(any)
url="https://github.com/Jeffser/${_pkgname%-git}"
license=(GPL-3.0-or-later)
options=(!debug)
source=($url/archive/$pkgver/$_pkgname-$pkgver.tar.gz)
sha256sums=('13dd0675a9904d87c1e5ffbaabbe8ef328ddacae9052c414bdc6ccecf0962005')
depends=(
    dconf
    gdk-pixbuf2
    glib2
    gtk4
    gtksourceview5
    hicolor-icon-theme
    libadwaita
    libspelling
    pango
    python
    python-gobject
    python-html2text
    python-matplotlib
    python-odfpy
    python-openai
    python-pillow
    python-pydantic
    python-pydbus
    python-pyicu
    python-pypdf
    python-requests
    python-youtube-transcript-api
    vte4
)
makedepends=(
    appstream
    desktop-file-utils
    gettext
    git
    meson
)
optdepends=(
    'ollama: local ollama instance'
)

build() {
    arch-meson ${_pkgname^}-$pkgver build
    meson compile -C build
}

package() {
    meson install -C build --destdir "$pkgdir"
}

Mattyan commented on 2025-02-05 15:10 (UTC) (edited on 2025-02-08 14:58 (UTC) by Mattyan)

This AUR version produces nonsense and broken text using either the integrated or a local Ollama instance, running any model, while the flatpak version works as expected. Example (running llama3.2:3b): - Can you write a story? - I'd be happy to write a story for you. Here remember. But as she wandered the island's paths, she began to realize that she was alone. There were had lost. And then, onides were low and the stars sh ear – a voice that seemed to. "Lena looked no one Running from terminal only gives some gtk related warnings and a gtk critical: gtk_text_buffer_insert: assertion 'gtk_text_iter_get_buffer (iter) == buffer' failed EDIT: after discovering that the generation is correct if I minimize the window as soon as possible, I found out that the problem happens while running it in a Wayland session, I don't know why exactly. Forcing X11 backend makes it work as it should GDK_BACKEND=x11 alpaca