I meet this situation just now.
Do not import chardet,and I also uninstall chardet.
Then build would pass.
below code is a part of dammit.py
lib in beautifulsoup.
Maybe you import a chardet not fits python 3.3, so the error occurs.
try:
# First try the fast C implementation.
# PyPI package: cchardet
import cchardet
def chardet_dammit(s):
return cchardet.detect(s)['encoding']
except ImportError:
try:
# Fall back to the pure Python implementation
# Debian package: python-chardet
# PyPI package: chardet
import chardet
def chardet_dammit(s):
return chardet.detect(s)['encoding']
#import chardet.constants
#chardet.constants._debug = 1
except ImportError:
# No chardet available.
def chardet_dammit(s):
return None