openlumi / homeassistant_on_openwrt

Install Home Assistant on your OpenWrt device with a single command
MIT License
157 stars 43 forks source link

Problem with libsqlite3 #13

Closed NazarKosteckij closed 2 years ago

NazarKosteckij commented 2 years ago
2022-03-05 10:06:07 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Unable to import component: Error loading shared library libsqlite3.so.0: No such file or directory (needed by /usr/
2022-03-05 10:06:07 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Unable to import component: Error loading shared library libsqlite3.so.0: No such file or directory (needed by /usr/
lib/python3.9/lib-dynload/_sqlite3.cpython-39.so)
2022-03-05 10:06:13 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: Error loading shared library libsqlite3.so.0: No such file or directory (needed by /usr
/lib/python3.9/lib-dynload/_sqlite3.cpython-39.so)
2022-03-05 10:06:13 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
2022-03-05 10:06:13 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
2022-03-05 10:06:13 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2022-03-05 10:06:13 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: onboarding')
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: recorder
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Setup failed for history: (DependencyError(...), 'Could not setup dependencies: recorder')
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend, recorder
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: (DependencyError(...), 'Could not setup dependencies: frontend, recorder')
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of my. Setup failed for dependencies: frontend
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Setup failed for my: (DependencyError(...), 'Could not setup dependencies: frontend')
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2022-03-05 10:06:14 ERROR (MainThread) [homeassistant.setup] Setup failed for map: (DependencyError(...), 'Could not setup dependencies: frontend')
2022-03-05 10:06:15 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of energy. Setup failed for dependencies: history, recorder
2022-03-05 10:06:15 ERROR (MainThread) [homeassistant.setup] Setup failed for energy: (DependencyError(...), 'Could not setup dependencies: history, recorder')
2022-03-05 10:06:20 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: energy, frontend, history, logbook, map, my
2022-03-05 10:06:20 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: energy, frontend, history, logbook, map, my')
2022-03-05 10:06:20 WARNING (MainThread) [homeassistant.bootstrap] Detected that frontend did not load. Activating safe mode
2022-03-05 10:06:20 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that called async_timeout.current_task. The current_task call is deprecated and calls will fail after Home Assis
tant 2022.3; use asyncio.current_task instead. Please report issue for ssdp using this method at homeassistant/components/ssdp/__init__.py, line 520: return await self._description_cache.async_get_descrip
tion_dict(location) or {}
2022-03-05 10:06:22 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: Unable to import component: Error loading shared library libsqlite3.so.0: No such file or directory (needed by /usr
/lib/python3.9/lib-dynload/_sqlite3.cpython-39.so)
2022-03-05 10:06:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics
2022-03-05 10:06:24 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics')
2022-03-05 10:06:24 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: onboarding
2022-03-05 10:06:24 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: onboarding')

Some issue with dependency, but lib files is present in the lib folder

root@OpenWrt:/tmp# ls /usr/lib/python3.9/lib-dynload
_asyncio.cpython-39.so            _ctypes_test.cpython-39.so        _multibytecodec.cpython-39.so     _ssl.cpython-39.so                mmap.cpython-39.so
_bisect.cpython-39.so             _curses.cpython-39.so             _multiprocessing.cpython-39.so    _statistics.cpython-39.so         ossaudiodev.cpython-39.so
_blake2.cpython-39.so             _curses_panel.cpython-39.so       _opcode.cpython-39.so             _struct.cpython-39.so             parser.cpython-39.so
_bz2.cpython-39.so                _datetime.cpython-39.so           _pickle.cpython-39.so             _uuid.cpython-39.so               pyexpat.cpython-39.so
_codecs_cn.cpython-39.so          _dbm.cpython-39.so                _posixshmem.cpython-39.so         _xxsubinterpreters.cpython-39.so  readline.cpython-39.so
_codecs_hk.cpython-39.so          _decimal.cpython-39.so            _posixsubprocess.cpython-39.so    _xxtestfuzz.cpython-39.so         resource.cpython-39.so
_codecs_iso2022.cpython-39.so     _elementtree.cpython-39.so        _queue.cpython-39.so              _zoneinfo.cpython-39.so           select.cpython-39.so
_codecs_jp.cpython-39.so          _gdbm.cpython-39.so               _random.cpython-39.so             array.cpython-39.so               spwd.cpython-39.so
_codecs_kr.cpython-39.so          _hashlib.cpython-39.so            _sha1.cpython-39.so               audioop.cpython-39.so             syslog.cpython-39.so
_codecs_tw.cpython-39.so          _heapq.cpython-39.so              _sha256.cpython-39.so             binascii.cpython-39.so            termios.cpython-39.so
_contextvars.cpython-39.so        _json.cpython-39.so               _sha3.cpython-39.so               cmath.cpython-39.so               unicodedata.cpython-39.so
_crypt.cpython-39.so              _lsprof.cpython-39.so             _sha512.cpython-39.so             fcntl.cpython-39.so               xxlimited.cpython-39.so
_csv.cpython-39.so                _lzma.cpython-39.so               _socket.cpython-39.so             grp.cpython-39.so
_ctypes.cpython-39.so             _md5.cpython-39.so                _sqlite3.cpython-39.so            math.cpython-39.so
NazarKosteckij commented 2 years ago

problem has gone after adding open lumi repositories to opkg sourcers list and reinstaling libsqlite3

[ -f /lib/libustream-ssl.so ] && echo "libustream already installed" || opkg install libustream-mbedtls
(! grep -q openlumi /etc/opkg/customfeeds.conf) && (
wget -q https://openlumi.github.io/openwrt-packages/public.key -O /tmp/public.key && 
opkg-key add /tmp/public.key && rm /tmp/public.key &&
echo 'src/gz openlumi https://openlumi.github.io/openwrt-packages/packages/19.07/arm_cortex-a9_neon' >> /etc/opkg/customfeeds.conf &&
echo "Feed added successfully!"
) || echo "Feed added already. Skip."