Skip to content

BS4 ERROR [SOLVED]

Here is an interesting, and easy fix to a nagging BS4 Error (bs4.FeatureNotFound) that I kept encountering. I was using a Windows 10 computer, running Ubuntu Server 20.04 through VMWare Workstation as my platform. If you see the following error

bs4.FeatureNotFound: Couldn’t find a tree builder with the features you requested: lxml. Do you need to install a parser library?

To fix it is easy, and simple.

Open a Terminal

Type
sudo bash
pip3 install lxml

lxml will install, and your error will be fixed!

RASPBERRY PI CHROMEDRIVER INSTALLATION

Instead of running through the long drawn out directions that accompany the error on the screen….this is what i used to install chromedriver

pip3 install chromedriver

You’re welcome



Thanks for reading

Hardware that I used:
Raspberry Pi 4 (4gb)
https://amzn.to/3q551IO

SanDisk 32GB Ultra microSDHC UHS-I Memory Card with Adapter
https://amzn.to/2Vfvo0y

CanaKit 3.5A Raspberry Pi 4 Power Supply (USB-C)
https://amzn.to/3fNTYPu

CanaKit Raspberry Pi 4 Micro HDMI Cable – 6 Feet
https://amzn.to/33u5hr9

Western Digital 500GB WD_Black SN750 NVMe
https://amzn.to/3nZ5pH4

Plugable USB C to M.2 NVMe Tool-free Enclosure
https://amzn.to/3lflV3L

UPGRADING PYTHON ON RASPBIAN

To Upgrade Python, simply run

sudo bash

apt-get update

apt-get install -y build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev tar wget vim

wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz

tar zxf Python-3.8.0.tgz && cd Python-3.8.0 && ./configure –enable-optimizations && make -j 4 && make altinstall

echo “alias python=/usr/local/bin/python3.8” >> ~/.bashrc

source ~/.bashrc

python -v

You should now be 3.8