Jeffser / Alpaca

An Ollama client made with GTK4 and Adwaita
https://jeffser.com/alpaca
GNU General Public License v3.0
258 stars 33 forks source link

Alpaca not launching #170

Closed gegentan closed 1 month ago

gegentan commented 1 month ago

Describe the bug After installing alpaca, it doesn't launch from the gnome software app or app overview. When running alpaca from warehouse, it outputs this error:

(process:2): Gtk-WARNING **: 11:49:49.469: Locale not supported by C library. Using the fallback 'C' locale. Traceback (most recent call last): File "/app/bin/alpaca", line 45, in <module> from alpaca import main File "/app/share/Alpaca/alpaca/main.py", line 29, in <module> from .window import AlpacaWindow File "/app/share/Alpaca/alpaca/window.py", line 37, in <module> class AlpacaWindow(Adw.ApplicationWindow): File "/app/share/Alpaca/alpaca/window.py", line 47, in AlpacaWindow locale.setlocale(locale.LC_ALL, '') File "/usr/lib/python3.11/locale.py", line 627, in setlocale return _setlocale(category, locale) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ locale.Error: unsupported locale setting

Expected behavior It launches.

Screenshots image

Additional context OS: Ubuntu 24.04 Alpaca version: 1.0.2

Jeffser commented 1 month ago

Hi, it looks like you are trying to run Alpaca with an incompatible locale, may I ask which language and region you are using on your system?

gegentan commented 1 month ago

I am using english as language and germany as region.

image

gegentan commented 1 month ago

After running export LC_ALL="en_US.UTF-8 and starting alpaca via command line using flatpak run com.jeffser.Alpaca makes alpaca launch (But only works from the command line).

gegentan commented 1 month ago

I don't know if this helps, but...

bruno@bruno-pc-ubuntu:~$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
bruno@bruno-pc-ubuntu:~$ 
Jeffser commented 1 month ago

turns out the line that was causing the issues wasn't needed at all, it should work fine now

https://github.com/Jeffser/Alpaca/commit/19b089e6c63c2b1e00ecee5d38915b18ff65fa2f