This project has moved and is read-only. For the latest updates, please go here.

Can't import bs4

Aug 11, 2013 at 4:27 PM
Edited Aug 11, 2013 at 4:28 PM
I am getting an ImportError when I try to import bs4 from BeautifulSoup: "No module named cchardet"

The call stack is:
dammit module line 20   Python
element module line 5   Python
__init__ module line 4  Python
__init__ module line 29 Python
tester module line 2    Python
It seems it's because the file doesn't exist. When trying to find the source it shows:
The file 'C:...\myproject\build\bdist.win32\egg\bs4\' does not exist.

I am finding it hard to figure out because this import works fine from a python Shell and when running the same module from the command line. I tried using "Install Python package..." on the context menu of the Python 2.7 environment to install beautiful soup again, but no luck. Any ideas what this could be?
Aug 12, 2013 at 6:53 PM
If you keep pressing F5 at each error, does it eventually run?

If so, this is a known issue that we've fixed for our next update. You can open the Exceptions window (Debug->Exceptions) and unselect the errors you're seeing to avoid them for now.