darrenburns / elia

A snappy, keyboard-centric terminal user interface for interacting with large language models. Chat with ChatGPT, Claude, Llama 3, Phi 3, Mistral, Gemma and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not run if installed via pipx

RhetTbull opened this issue Β· comments

This does not run if installed via pipx:

❯ pipx install elia-chat
  installed package elia-chat 0.1.0, installed using Python 3.11.2
  These apps are now globally available
    - elia
done! ✨ 🌟 ✨

~ took 3s
❯ elia
Traceback (most recent call last):
  File "/Users/rhet/.local/bin/elia", line 5, in <module>
    from elia.app import run
ModuleNotFoundError: No module named 'elia'

~
❯ python -c "import sys; import platform; print(sys.version); print(platform.mac_ver())"
3.11.2 (v3.11.2:878ead1ac1, Feb  7 2023, 10:02:41) [Clang 13.0.0 (clang-1300.0.29.30)]
('13.1', ('', '', ''), 'arm64')

Python 3.11.2 (python.org version), macOS 13.1, M1.

It appears the error is in the CLI entry point installed as elia:

from elia.app import run

should possibly be:

from elia_chat.app import run

However, changing this, results in a different error:

StylesheetError: unable to read CSS file '/Users/xxx/.local/pipx/venvs/elia-chat/lib/python3.11/site-packages/elia_chat/elia_chat.scss'

The .scss file appears to be there but is called elia.scss:

❯ ll
.rw-r--r-- rhet staff   0 B Sat May  6 18:18:05 2023  __init__.py
drwxr-xr-x rhet staff 160 B Sat May  6 18:18:05 2023 __pycache__
.rw-r--r-- rhet staff 862 B Sat May  6 18:18:05 2023  app.py
.rw-r--r-- rhet staff 456 B Sat May  6 18:18:05 2023  elia.scss
.rw-r--r-- rhet staff 185 B Sat May  6 18:18:05 2023  models.py
drwxr-xr-x rhet staff 128 B Sat May  6 18:18:05 2023  widgets

Closing - this is fixed and no longer relevant, although this project isn't really intended to be installed anyway