ImportError: cannot import name ‘setup’
Getting this?
[root@rmq01 ~]# pip3 install –user git+https://github.com/powerline/powerline.git@master
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install –user` instead.
Collecting git+https://github.com/powerline/powerline.git@master
Cloning https://github.com/powerline/powerline.git (to master) to /tmp/pip-i_onc12r-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-i_onc12r-build/setup.py", line 11, in <module>
from setuptools import setup, find_packages
ImportError: cannot import name 'setup'
Solve it by running this:
[root@rmq01 ~]# yum reinstall python3-setuptools.noarch
Seems package files were corrupted.
Cheers,
Tom