misja/python-boilerpipe — Issue #4: ImportError: No module named boilerpipe
Author: wdmcdaniel
Created: 2012-02-29 13:59:31+00:00
State: open

Hi, getting above error. Setup is Mac OS X 10.6.8, with virtualenv, Python 2.7...

I narrowed it down to the following line in __init__.py:

for top, dirs, files in os.walk(imp.find_module('boilerpipe')[1]+'/data'):

the imp module is having problems finding modules in zipped eggs... (not sure if anyone else has had this problem)

Solution is to set zip_flags=False in setup.py:

setup(
name = 'boilerpipe',
version = __version__,
packages = find_packages('src'),
package_dir = {'':'src'},
install_requires = ['jpype', 'chardet'],
package_data = {
'boilerpipe': package_data('boilerpipe')
},
author = "Misja Hoebe",
author_email = "misja.hoebe@gmail.com",
description = "Python interface to Boilerpipe, Boilerplate Removal and Fulltext Extraction from HTML pages",
zip_files = False
)