NiltonVolpato / python-progressbar

Text progress bar library for Python
Other
412 stars 105 forks source link

Pip install fails (virtualenv python 3.5.2) #54

Closed recmo closed 6 years ago

recmo commented 7 years ago
(env) $ pip install progressbar
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-k88aurgf/progressbar/setup.py", line 5, in <module>
        import progressbar
      File "/tmp/pip-build-k88aurgf/progressbar/progressbar/__init__.py", line 59, in <module>
        from progressbar.widgets import *
      File "/tmp/pip-build-k88aurgf/progressbar/progressbar/widgets.py", line 121, in <module>
        class FileTransferSpeed(Widget):
      File "[…]/env/lib/python3.5/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-k88aurgf/progressbar/
dpdornseifer commented 7 years ago

Same issue for me - virtualenv / python 3.5

nlgranger commented 7 years ago

same here.

danodonovan commented 7 years ago

Possibly related issue https://github.com/niltonvolpato/python-progressbar/issues/28

For what it's worth, this fork provides python 3 functionality (also 2 compatible) and is also available on pypi

$ pip install progressbar33
sursh commented 7 years ago

I'm having the same issue, and progressbar33 worked for me. thanks, @danodonovan

ghost commented 7 years ago

I might have to use progressbar33 if the install won't work for this one.

jasonray716 commented 7 years ago

The following works for me (both Python 2 and 3).

pip install progressbar2
mattpitkin commented 6 years ago

Also

pip install progressbar-latest

seems to work with at least Python 3.5.2.

thecountoftuscany commented 6 years ago

Also facing the exact same problem. Possible solutions I saw on stackoverflow and github were:

  1. Install or upgrade the python3-pip, setuptools, pip, python-dev, libpq-dev, ez_setup packages
  2. Use the --no-cache-dir flag with pip
  3. Use differenet versions of progressbar, specifically, progressbar2 or progressbar33 or progressbar-latest
  4. Clear the ~/.cache/pip directory
  5. Give the power of sudo -H to pip
  6. Using pip3 instead of pip

None of these have worked so far. (Python version 2.7.12, python3 version 3.5.2, pip version 10.0.1)

ghost commented 6 years ago

Ouch.

NiltonVolpato commented 6 years ago

This issue seems to have been fixed. Can you guys try again, and please let me know if it still doesn't work.