I had the same problem. It was occurring with BeautifulSoup-4.2.0. I downgraded to BeautifulSoup-4.1.3 (pip install beautifulsoup4==4.1.3) and the problem has gone away. Obviously, this is a temporary solution, but at least I've gotten things to work.