rmoesbergen / openwrt-ha-device-tracker

OpenWRT device tracker for Home Assistant that actually works
107 stars 18 forks source link

ModuleNotFoundError: No module named 'requests' #7

Closed whxciotw closed 2 years ago

whxciotw commented 3 years ago

I have Installed python + deps: opkg update && opkg install python3-requests, but the logs still show the error as below: Sat Aug 14 23:00:41 2021 daemon.err presence-detector.py[25988]: Traceback (most recent call last): Sat Aug 14 23:00:41 2021 daemon.err presence-detector.py[25988]: File "/etc/config/presence-detector.py", line 5, in <module> Sat Aug 14 23:00:41 2021 daemon.err presence-detector.py[25988]: import requests Sat Aug 14 23:00:41 2021 daemon.err presence-detector.py[25988]: ModuleNotFoundError: No module named 'requests'

rmoesbergen commented 3 years ago

@whxciotw That's interesting... it seems the installation of the requests module either didn't succeed, or it is installed in a location where python doesn't look for modules. If you run presence-detector 'interactively' (meaning by hand in a terminal), does it work then?