nltk: Install with pip3 is broken (new release of setuptools?)

I use Travis CI to run builds every 12 hours; and one hour ago, the install of nltk on this environment broke:

Collecting nltk
Downloading nltk-3.0.0.tar.gz (962kB)
100% |################################| 966kB 6.6MB/s
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-k8c9g1/nltk/setup.py", line 37, in <module>
del sdist.finders[:]
AttributeError: 'module' object has no attribute 'finders'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-k8c9g1/nltk/setup.py", line 37, in <module>
del sdist.finders[:]
AttributeError: 'module' object has no attribute 'finders'

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 26 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Temporary workaround for users who have setuptools>=10.0 installed in their python environment:

pip install setuptools==9.1 
# this will automatically uninstall newer/older setuptools versions first

pip install -U nltk

To check for setuptools version, type pip list:

pip list
# result in clean virtual environment
pip (6.0.3)
setuptools (10.1)

I’ve posted 2.0.5 and reinstated 2.0.4. I’ve created 3.0.1 which differs from 3.0.0 only in the fix to setup.py.