New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

ImportError: No module named bs4?

Herve
Level 3
ImportError: No module named bs4?

Trying out your "Scrape the web" python code sample

I got the error 

"ImportError: No module named bs4?"

0 Kudos
3 Replies
Mattsco
Dataiker
Dataiker

Hi Hervé,

You need to install the beautifulsoup4 (bs4) python package.
You can do this in the code env section of the administration page. 
In your python code env, in "packages to install" you add :
beautifulsoup4

Mattsco
Herve
Level 3
Author

Adding BeautifulSoup to python code env solved the import

Code samples then failed at line 

soup = BeautifulSoup(page, 'html5lib')

FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
0 Kudos
Herve
Level 3
Author

I also added html5lib and lxml to my python code env and verified it with

import html5lib
import lxml

 

0 Kudos
Labels (1)
A banner prompting to get Dataiku DSS