2015-10-11 8 views
5

Quando si tenta di installare il pacchetto python progressbar su OSX El Capitan, ottengo il seguente errore:pip installa FAIL con "ValueError: 'format' in __slots__ conflitti con variabile di classe"

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 

Aggiornamento del seguente fatto non risolve il mio problema

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

Come posso risolvere quello?

+0

Hai provato con - 'pip install --no-cache-dir'? –

+0

Restituisce 'È necessario fornire almeno un requisito per l'installazione (consultare "installazione guidata di pip")' Devo forse aggiungere altro? – physicsGuy

+0

In esecuzione 'pip installa --no-cache-dir progressbar' restituisce lo stesso codice di errore 1 come sopra – physicsGuy

risposta

14

Il pacchetto originale non funziona con python3, però, c'è un bivio che fa, è possibile clonare da https://github.com/coagulant/progressbar-python3.git ed eseguire

python3 setup.py install 

I dind, tuttavia, verificare se la funzionalità funziona di per sé , così YMMV, ma si installa almeno :)

[modifica]

Aggiornamento da @shadi 30 Gennaio 2017: Issue 28 sul repo github di progressbar dice di usare pip3 install progressbar33, Grazie!

+0

L'installazione funziona, ma progressbar.ProgressBar.update() fallisce in fase di esecuzione. Sto usando Python 3.4.3 su Ubuntu 14.04 a 64 bit. –

+0

@GerhardHagerer Mi dispiace amico, come ho detto nella mia risposta, non ho verificato la funzionalità effettiva. Mi dispiace che non funzioni come previsto. – favoretti

+1

[Issue 28] (https://github.com/niltonvolpato/python-progressbar/issues/28) sul repository github di progressbar dice di usare 'pip3 install progressbar33' – shadi

0

ho usato PIP3 installare progressbar33 ma quando ho installato autosub

ValueError: 'format' in slots conflicts with class variable