2016-03-29 20 views
0

Ben aşağıdaki komutları çevreÖzyineleme sorunu

aşağıdaki bana verir

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

kullanarak Virtualenv ben django example app

ben kurulum kullanıyorum Django üzerinde kurulum Kereviz çalışırken bir sorun var

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 

ve komutuyla işçiyi başlatmaya çalışırken sonra

$ celery -A proj worker -l info 

senin bir fikrin var mı çalışma zamanı hatası

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 

ile biten ettiğimi ben yanlış yapıyorum?

+1

bu cevaba bakınız değerleri:
(Lib \ functools.py \ piton hat 56 hakkında) dosyası functools.py içinde dönüştürme sözlüğünü değiştirmek sorunu çözmek için - http://stackoverflow.com/a/21834988/5121725 – RA123

+0

@ RA123 hızlı cevabınız için beni doğru yöne yönlendiriyor python 2.7.2 vardı hangi eski python 2.7.11 için güncellendi ki en son şu anda ve çalışır. Eğer cevap oluşturabilirsen, ilk Teşekkür edildiğin için kabul edeceğim. – Zgr3doo

cevap

2

Sorun, functools.py dosyasında. Buna

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)] 
} 


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)] 
}