S
S
sudo rm -rf /2017-07-18 06:58:27
Python
sudo rm -rf /, 2017-07-18 06:58:27

How to prevent error when installing progressbar on python3 via pip?

Started learning python. I wanted to play with the progressbar. But installing via pip fails.
Tried pip, pip3 and pip3.6 to no avail.

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 1, in <module>
      File "/tmp/pip-build-359h8050/progressbar/setup.py", line 5, in <module>
        import progressbar
      File "/tmp/pip-build-359h8050/progressbar/progressbar/__init__.py", line 59, in <module>
        from progressbar.widgets import *
      File "/tmp/pip-build-359h8050/progressbar/progressbar/widgets.py", line 121, in <module>
        class FileTransferSpeed(Widget):
      File "/usr/lib/python3.6/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 /tmp/pip-build-wmyxacdu/progressbar/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
planc, 2017-07-18
@MaxLevs

open google, type in the package name and the error:
progressbar Command "python setup.py egg_info" failed with error code 1
find out what happens now:
pip install progressbar2
progressbar-2.readthedocs.io/en/latest

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question