RuntimeError: maximum recursion depth exceeded in cmp

240 views
Skip to first unread message

Deepak Singh

unread,
Jan 28, 2016, 7:45:31 AM1/28/16
to Django users
Hi,
   
During (python manage.py runserver) command I am getting following error

     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 in cmp

Please guide me for neccessary step. I am running it first time.

Thank You.

Tim Graham

unread,
Jan 28, 2016, 8:12:23 AM1/28/16
to Django users
I've never seen that before. I think you'll need to provide a sample project that reproduces it so that someone can take a look.

palansh agarwal

unread,
Jan 28, 2016, 8:14:32 AM1/28/16
to django...@googlegroups.com
Hey,
You may try to re-factor your code and turn it into an iterative one.
If that's not possible, try the following:

import  sys
sys.setrecursionlimit(n)

Increase "n" as per your need.

Regards,
Palansh Agarwal | +918239026608 |+919461787317
CTO, Eventgraphia, India
Team Lead IDC, GoMobileFirst, USA
Pre Final Year, B.Tech
The LNM Institute of Information Technology, Jaipur, India
https://www.facebook.com/palansh.agarwal      https://github.com/py-geek 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d8d7d91d-d80a-457b-8e72-71a91e7238bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages