Still very new with Python (all versions).
I installed a brand new kali release
But I am having problems with some python scripts (a CVE script that I got).
When I run it I get the following error:
soup = BeautifulSoup(html_content,features="lxml") File "/usr/share/offsec-awae-wheels/beautifulsoup4-4.9.1-py2-none-any.whl/bs4/__init__.py", line 245, in __init__ bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
looking up the error the solutions seems to suggest to install
lxml by running:
sudo pip3 install lxml or
sudo pip install lxml or
sudo apt-get install libxml2-dev libxslt-dev python-dev
running the pip installs returns the following message:
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (4.6.2)
So I tried to do the following:
export PYTHONPATH=/usr/lib/python3/dist-packages rerun my script in the same terminal but still I get the error:
Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
So to say; I am lost and new to this python scripting (been new for awhile :P)
Would be grateful for a helping hand\eye to fix this up for me (its a fresh install of the distro too)
Always happy to help others. 100% human