Pip install with "ValueError: 'format" in __slots__ conflicts with class variable "

When I try to install the python progressbar package on OSX El Capitan, I get the following error:

 Collecting progressbar Using cached progressbar-2.3.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 20, in <module> File "/private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar/setup.py", line 5, in <module> import progressbar File "/private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar/progressbar/__init__.py", line 59, in <module> from progressbar.widgets import * File "/private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar/progressbar/widgets.py", line 121, in <module> class FileTransferSpeed(Widget): File "/Users/<USERNAME>/anaconda/lib/python3.4/abc.py", line 133, in __new__ cls = super().__new__(mcls, name, bases, namespace) ValueError: 'format' in __slots__ conflicts with class variable ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9s/b1jly7yd0jq639plvkzdvn4m0000gn/T/pip-build-xhfxywsw/progressbar 

The update below did not solve my problem.

 pip install --upgrade setuptools pip install --upgrade Distribute 

How can i solve this?

+5
source share
2 answers

The source package does not work with python3, however there is a plug that does, you can clone it from https://github.com/coagulant/progressbar-python3.git and run

 python3 setup.py install 

However, I will not check if the function works as such, therefore YMMV, but it installs at least :)

[edit]

Update from @shadi January 30, 2017: Problem 28 about progressbar github repo says use pip3 install progressbar33 , thanks!

+14
source

I used pip3 install progressbar33, but when I installed autosub

ValueError: 'format' in slots conflicts with class variable

0
source

Source: https://habr.com/ru/post/1233461/


All Articles