2016-03-29 6 views
0

Ich habe ein Problem Setup Sellerie auf Django versucht, ich bin mit django example appRekursion Ausgabe auf Sellerie Beispiel Django App auf Windows

I Setup virtualenv folgenden Befehlen

pip install virtualenv 
virtualenv ..\env 
call ..\env\Scripts\activate 
pip install celery 
pip install django 

die mich

folgende Umgebung gibt
amqp==1.4.9 
anyjson==0.3.3 
billiard==3.3.0.23 
celery==3.1.23 
Django==1.9.4 
kombu==3.0.35 
pytz==2016.3 

und nach dem Versuch, Arbeiter von Befehl

zu starten

Ich endet mit Laufzeitfehler bis

File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
    File "C:\Python27\Lib\functools.py", line 56, in <lambda> 
    '__lt__': [('__gt__', lambda self, other: other < self), 
RuntimeError: maximum recursion depth exceeded while calling a Python object 

Haben Sie eine Idee, was ich falsch mache?

+1

zu dieser Antwort verweisen - http://stackoverflow.com/a/21834988/5121725 – RA123

+0

@ RA123 danke für Ihre schnelle Antwort zeigt es mir auf die richtige Richtung Ich hatte Python 2.7.2, die veraltet war Ich habe es auf Python 2.7.11 aktualisiert, die neueste ist im Moment und es funktioniert. Wenn Sie eine Antwort erstellen können, werde ich sie akzeptieren, weil Sie zuerst Danke waren. – Zgr3doo

Antwort

2

Das Problem liegt in der Datei functools.py.
Um das Problem zu beheben convert Wörterbuch in Datei functools.py ersetzen (über die Leitung 56 in Python \ Lib \ functools.py):

convert = { 
'__lt__': [('__gt__', lambda self, other: other < self), 
      ('__le__', lambda self, other: not other < self), 
      ('__ge__', lambda self, other: not self < other)], 
'__le__': [('__ge__', lambda self, other: other <= self), 
      ('__lt__', lambda self, other: not other <= self), 
      ('__gt__', lambda self, other: not self <= other)], 
'__gt__': [('__lt__', lambda self, other: other > self), 
      ('__ge__', lambda self, other: not other > self), 
      ('__le__', lambda self, other: not self > other)], 
'__ge__': [('__le__', lambda self, other: other >= self), 
      ('__gt__', lambda self, other: not other >= self), 
      ('__lt__', lambda self, other: not self >= other)] 
} 

zu, dass die Werte

convert = { 
'__lt__': [('__gt__', lambda self, other: not (self < other or self == other)), 
      ('__le__', lambda self, other: self < other or self == other), 
      ('__ge__', lambda self, other: not self < other)], 
'__le__': [('__ge__', lambda self, other: not self <= other or self == other), 
      ('__lt__', lambda self, other: self <= other and not self == other), 
      ('__gt__', lambda self, other: not self <= other)], 
'__gt__': [('__lt__', lambda self, other: not (self > other or self == other)), 
      ('__ge__', lambda self, other: self > other or self == other), 
      ('__le__', lambda self, other: not self > other)], 
'__ge__': [('__le__', lambda self, other: (not self >= other) or self == other), 
      ('__gt__', lambda self, other: self >= other and not self == other), 
      ('__lt__', lambda self, other: not self >= other)] 
} 
Verwandte Themen