Closed Baggypants closed 7 months ago
looks like this is happening
(venv) baggypants@raspberrypi:~/lnxlink-pip/venv/lib/python3.11/site-packages/lnxlink $ /home/baggypants/lnxlink-pip/venv/bin/lnxlink -c /home/baggypants/lnxlink-pip/config.yaml
INFO:lnxlink:LNXlink 2024.3.0, Python 3.11.2
INFO:lnxlink:Installing 'pycairo>=1.24.0'...
Traceback (most recent call last):
File "/home/baggypants/lnxlink-pip/venv/bin/lnxlink", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/baggypants/lnxlink-pip/venv/lib/python3.11/site-packages/lnxlink/__main__.py", line 528, in main
monitor_suspend = MonitorSuspend(lnxlink.temp_connection_callback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/baggypants/lnxlink-pip/venv/lib/python3.11/site-packages/lnxlink/system_monitor.py", line 18, in __init__
self._requirements()
File "/home/baggypants/lnxlink-pip/venv/lib/python3.11/site-packages/lnxlink/system_monitor.py", line 61, in _requirements
"cairo": import_install_package("pycairo", ">=1.24.0", "cairo"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/baggypants/lnxlink-pip/venv/lib/python3.11/site-packages/lnxlink/modules/scripts/helpers.py", line 62, in import_install_package
return __import__(syspackage)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/baggypants/lnxlink-pip/venv/lib/python3.11/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
^^^^^^^^^^^^^^^^^^^^^
ImportError: libcairo.so.2: cannot open shared object file: No such file or directory
Fixed by running apt install libcairo2
It seems that it's trying to import the pycairo, but it has a system dependency error so it assumes it's not installed. I'll fix this logic on the next release to log the error and make it easier to identify the issue.
All the necessary libraries, including the libcairo2-dev
exists on the installation script, so I'll consider this fixed.
What type of installation are you running?
Desktop
Which Linux OS are you using?
(venv) baggypants@raspberrypi:~/lnxlink-pip $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)" NAME="Raspbian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Which version of LNXLink has the issue?
lnxlink 2024.3.0
Describe the problem
lnxlink seems to be stuck in an upgrade loop for the past day or so. It's trying to upgrade pycairo, when a version of pycairo already exists
Additional context
No response
Configuration
Logs