halinuxcompanion icon indicating copy to clipboard operation
halinuxcompanion copied to clipboard

[BUG]

Open ducapedia opened this issue 1 year ago • 1 comments

Describe the bug The program doesnt start properly. The error code appears to be about a bad variable declare. I think it could be a kind of mismatch of version, but, Ive triple check it, and all dependancies are satisfied

root@Inspiron-5548:/opt/halinuxcompanion# python3 -m halinuxcompanion -c config.json /usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.25.8) or chardet (5.2.0) doesn't match a supported version! warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported " Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/opt/halinuxcompanion/halinuxcompanion/main.py", line 2, in from halinuxcompanion.dbus import Dbus File "/opt/halinuxcompanion/halinuxcompanion/dbus.py", line 79, in class Dbus: File "/opt/halinuxcompanion/halinuxcompanion/dbus.py", line 82, in Dbus interfaces: dict[str, ProxyInterface] = {} TypeError: 'type' object is not subscriptable root@Inspiron-5548:/opt/halinuxcompanion#

To Reproduce Steps to reproduce the behavior:

I just follow instructions on README. used pip3 to install (and recheck) all dependencies copy config.example.json to config.json and have it edited.

Expected behavior App doesnt start and give the error messages above

Application Logs I couldnt find any log in app directory or /var/log

Home Assistant Logs as long as it doesnt even started (or connect), the HA server could`t register any log about it.

Additional context Dist: ZorinOS 16.3

ducapedia avatar Dec 28 '23 16:12 ducapedia

The stack trace contains File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main, so it sounds like you're trying to run it on Python 3.8. The README says that Python 3.10 is a requirement, while the tests currently run on Python 3.11: https://github.com/muniter/halinuxcompanion/blob/7a65b6f6e7341d031d8e16a042112ffc7f726056/.github/workflows/build.yml#L20

So I think you need to at least start by updating your Python version.

slovdahl avatar Feb 18 '24 18:02 slovdahl