ImportError: module 'setuptools.dist' has no 'check_specifier' attribute

Vishal Kanaujia picture Vishal Kanaujia · Dec 14, 2016 · Viewed 20.5k times · Source

Ceph teuthology installation fails with following error on Ubuntu 14.04, kernel 4.4.0-51-generic:

ImportError: <module 'setuptools.dist' from '/usr/lib/python2.7/dist-packages/setuptools/dist.pyc'> has no 'check_specifier' attribute

Answer

Vishal Kanaujia picture Vishal Kanaujia · Dec 14, 2016

It was due to older setuptools version. I updated setuptools as follows:

sudo pip install setuptools --upgrade

It installed setuptools-31.0.0 and that worked.