emxsys / callattendant

A python-based automated call attendant, call blocker, and voice messaging system running on a Raspberry Pi. Screens callers and block robocalls and scams with a low-cost Raspberry Pi and modem.
https://emxsys.github.io/callattendant/
MIT License
115 stars 37 forks source link

Missing lxml parser library #142

Closed anonyme22 closed 3 years ago

anonyme22 commented 3 years ago

Dec 26 11:58:26 callattendant[8290]: {RING LED BLINKING} Dec 26 11:58:27 callattendant[8290]: > Queueing call 14387883368 for processing Dec 26 11:58:27 callattendant[8290]: Incoming call from 14387883368 Dec 26 11:58:27 callattendant[8290]: > Checking whitelist(s) Dec 26 11:58:27 callattendant[8290]: >> Checking permitted patterns... Dec 26 11:58:27 callattendant[8290]: > Checking blacklist(s) Dec 26 11:58:27 callattendant[8290]: >> Checking blocked patterns... Dec 26 11:58:27 callattendant[8290]: >> Checking nomorobo... Dec 26 11:58:27 callattendant[8290]: FeatureNotFound("Couldn't find a tree builder with the feature s you requested: lxml. Do you need to install a parser library?") Dec 26 11:58:27 callattendant[8290]: ** Error running callattendant Dec 26 11:58:27 callattendant[8290]: Shutting down... Dec 26 11:58:27 callattendant[8290]: -> Stopping modem Dec 26 11:58:28 callattendant[8290]: -> Closing modem serial port Dec 26 11:58:28 callattendant[8290]: -> Stopping voice mail Dec 26 11:58:29 callattendant[8290]: -> Releasing resources Dec 26 11:58:29 callattendant[8290]: Shutdown finished Dec 26 11:58:29 systemd[1]: callattendant.service: Main process exited, code=exited, status=1/FAILU RE Dec 26 11:58:29 systemd[1]: callattendant.service: Failed with result 'exit-code'.

but it's already install : pi@raspberrypi:~/.callattendant $ pip3 install lxml Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: lxml in /home/pi/.local/lib/python3.7/site-packages (4.6.2)

owencrow commented 3 years ago

I was able to fix on my "Raspbian GNU/Linux 10 (buster)" with

apt install python-bs4

nomorobo.py is still Python2 so the lxml library is in the package above. This is probably solvable via a pip command, too, but got the one I used from the commit comments that added the lxml line to the code: https://github.com/emxsys/callattendant/commit/e990aa117346af15dbb8bd159f799bf948ac526d

anonyme22 commented 3 years ago

Thank owencrow,

This is working.