Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

bs4.FeatureNotFound exception after installation #20

Closed
kuruoujou opened this issue Jun 25, 2017 · 2 comments
Closed

bs4.FeatureNotFound exception after installation #20

kuruoujou opened this issue Jun 25, 2017 · 2 comments

Comments

@kuruoujou
Copy link

Hello!

It appears that immediately after installation on a fresh python 3 install (or in a fresh virtualenv, as in this case), not all of the requirements are installed via pip:

Traceback (most recent call last):
  File "./spice-test.py", line 7, in <module>
    results = spice.search("FLIP FLAPPERS", spice.get_medium('anime'), creds)
  File "/home/kuroshi/spice-test/lib/python3.5/site-packages/spice_api/spice.py", line 165, in search
    query_soup = BeautifulSoup(search_resp.text, 'lxml')
  File "/home/kuroshi/spice-test/lib/python3.5/site-packages/bs4/__init__.py", line 165, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Running pip install lxml solves the problem of course, but it might be something you want to add to the install_requires list in setup.py.

@exxarah
Copy link
Contributor

exxarah commented Jun 25, 2017

This is fixed by #19

@Utagai
Copy link
Owner

Utagai commented Jun 26, 2017

Coincidentally, I have just returned to this project to do work on it, I guess it's your lucky day! I've merged #19 so this should be fixed.

Thank you @CyradisNyx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants