maximum recursion depth exceeded

2021-02-10 Thread Frank Maruf
=True,blank=True) Students Model: Sd_Examiner=models.ForeignKey(Examiner,null=True ,on_delete=models.SET_NULL,blank=True) and at Signal: exam = Examiner.objects.get(examiner_title__contains="Primary") exam_id = str(exam.id) instance.Sd_Examiner_id=exam_id instance.save() i get ma

Re: RuntimeError: maximum recursion depth exceeded in cmp

2016-01-28 Thread palansh agarwal
ot;, line 56, in > '__lt__': [('__gt__', lambda self, other: other < self), > File "C:\Python27\lib\functools.py", line 56, in > '__lt__': [('__gt__', lambda self, other: other < self), > RuntimeError: maximum recursion dep

Re: RuntimeError: maximum recursion depth exceeded in cmp

2016-01-28 Thread Tim Graham
mbda self, other: other < self), > File "C:\Python27\lib\functools.py", line 56, in > '__lt__': [('__gt__', lambda self, other: other < self), > RuntimeError: maximum recursion depth exceeded in cmp > > Please guide me for neccessary step

RuntimeError: maximum recursion depth exceeded in cmp

2016-01-28 Thread Deepak Singh
'__lt__': [('__gt__', lambda self, other: other < self), File "C:\Python27\lib\functools.py", line 56, in '__lt__': [('__gt__', lambda self, other: other < self), RuntimeError: maximum recursion depth exceeded in cmp Please guide me for

Re: RuntimeError: maximum recursion depth exceeded in cmp

2013-03-24 Thread Vernon D. Cole
ogleusercontent.com/-4e6B6aQD5hc/UUyvjDV5mrI/ADY/uWA1cgfM07M/s1600/Untitled.tiff> > I was following the very first tutorial on django website. When i started > the server i got an error "RuntimeError: maximum recursion depth exceeded > in cmp" as shown in image > Pl

RuntimeError: maximum recursion depth exceeded in cmp

2013-03-22 Thread tarik setia
<https://lh6.googleusercontent.com/-4e6B6aQD5hc/UUyvjDV5mrI/ADY/uWA1cgfM07M/s1600/Untitled.tiff> I was following the very first tutorial on django website. When i started the server i got an error "RuntimeError: maximum recursion depth exceeded in cmp" as shown in i

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread donarb
At this point, I would just skip trying to load the data through Django and write a quick Python script to load the data using INSERT statements or create a bulk data file to load it directly into MySQL. I'm not as familiar with MySQL as I am with Postgres, but Postgres can swallow a whole data

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
>>>> line 190, in handle >>>> for obj in objects: >>>> File "/home/menusadmin/.pythonbrew/**pythons/Python-2.7.3/lib/** >>>> python2.7/site-packages/**django/core/serializers/**pyyaml.py", line >>>> 62, in Deserializer >>>>

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
; for obj in objects: >>> File "/home/menusadmin/.pythonbrew/**pythons/Python-2.7.3/lib/** >>> python2.7/site-packages/**django/core/serializers/**pyyaml.py", line >>> 62, in Deserializer >>> raise DeserializationError(e) >>> DeserializationErro

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
onbrew/**pythons/Python-2.7.3/lib/** >> python2.7/site-packages/**django/core/serializers/**pyyaml.py", line 62, >> in Deserializer >> raise DeserializationError(e) >> DeserializationError: maximum recursion depth exceeded while calling a >> Python object &g

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread donarb
File > "/home/menusadmin/.pythonbrew/pythons/Python-2.7.3/lib/python2.7/site-packages/django/core/serializers/pyyaml.py", > > line 62, in Deserializer > raise DeserializationError(e) > DeserializationError: maximum recursion depth exceeded while calling a > Pyth

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
62, in Deserializer raise DeserializationError(e) DeserializationError: maximum recursion depth exceeded while calling a Python object I tried changing commit to False in loaddata.py, I tried adding a manager class to the one model I have that another model refers to with a natural key (e.g., &

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread donarb
On Sunday, December 30, 2012 9:54:45 AM UTC-8, Sam Raker wrote: > > Thanks for your suggestions. > > I eliminated the underscores and got rid of the __unicode__ methods > entirely, cleaned up my except statement, and changed the order of stuff > such that all of each model's fields are defined be

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Sam Raker
Thanks for your suggestions. I eliminated the underscores and got rid of the __unicode__ methods entirely, cleaned up my except statement, and changed the order of stuff such that all of each model's fields are defined before any methods. (As for the pk field: The csvs I'm using are actually dumps

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-30 Thread Amirouche
On Saturday, December 29, 2012 9:42:50 PM UTC+1, Sam Raker wrote: > > Here's the truncated version I tried to load in case the problem was the > length of the file: > - fields: {location: ST. DENNIS HOTEL, restaurant: Veterans American > Guard, status: complete, > year: 1900} > model: dis

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread donarb
And your __unicode__ method is incorrect as well. You should be returning self.restaurant. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/bsJoTGDbveYJ. To

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread donarb
Not sure if it's related to your problem, but you should never create function names like __period__. Names such as those are reserved for Python internals. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visi

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread Sam Raker
Here's the truncated version I tried to load in case the problem was the length of the file: - fields: {location: ST. DENNIS HOTEL, restaurant: Veterans American Guard, status: complete, year: 1900} model: dishes.menu pk: 12495 - fields: {location: BOSTON, restaurant: New England Shorthan

Re: loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread Ryan Blunden
Can you provide a single example of one of the fixture objects you're trying to import, as well as the model it corresponds to? On 29/12/2012, at 11:34 AM, Sam Raker wrote: > Hello, > I've got a very tight deadline, and I'm encountering a very frustrating > problem. Every time I try to use loa

loaddata deserializationerror: maximum recursion depth exceeded while calling a Python object

2012-12-29 Thread Sam Raker
Hello, I've got a very tight deadline, and I'm encountering a very frustrating problem. Every time I try to use loaddata to load my data into my database, I get the loaddata error in the subject. I've tried YAML, I've tried JSON, I've tried excerpting only a few lines of each, all to no avail. I

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-22 Thread Karen Tracey
No, you're not stupid. The only reason I could guess what the problem was is I've seen it done many times. Many languages would complain about the "redefinition"; Python just quietly does what you tell it and re-binds the name to a new value. That can actually be a very useful feature, but it also

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-22 Thread T'mas
gt; > sorry. Problem is not User object but login from django.contrib.auth. > > > login(request,user) > > You've haven't included any of the traceback from the maximum recursion > depth exceeded, nor any of your code, so all anyone can do to help is guess. > I&#

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-22 Thread Karen Tracey
On Tue, Jun 21, 2011 at 12:34 PM, T'mas wrote: > sorry. Problem is not User object but login from django.contrib.auth. > > login(request,user) > > You've haven't included any of the traceback from the maximum recursion depth exceeded, nor any of your code, so all

Re: making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-21 Thread T'mas
jects.get(username='tmas') > > it results in error: maximum recursion depth exceeded while calling a > Python object > > I am running Xubuntu 11.04, python 2.7.1+ and django 1.3. > Running it on development server, didn't use on apache. > > regards, > >

making instance of auth User results in: maximum recursion depth exceeded while calling a Python object

2011-06-21 Thread T'mas
Hi there, I am having problem with User model from django.contrib.auth.models. When making instance in view: user = User.objects.get(username='tmas') it results in error: maximum recursion depth exceeded while calling a Python object I am running Xubuntu 11.04, python 2.7.1+ and

Re: Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-24 Thread Derek
rking with Django 1.2.3 >> > >> > I had an application that was running well.  However, some recent changes >> > (not to the models themselves) have caused the "Runtime Error: maximum >> > recursion depth exceeded while calling Python object" to start show

Re: Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-13 Thread Derek
, some recent changes > > (not to the models themselves) have caused the "Runtime Error: maximum > > recursion depth exceeded while calling Python object" to start showing up > > everywhere; typically in conjunction with the def __unicode__(self) > > function. The

Re: Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-12 Thread Derek
me recent changes > (not to the models themselves) have caused the "Runtime Error: maximum > recursion depth exceeded while calling Python object" to start showing up > everywhere; typically in conjunction with the def __unicode__(self) > function.  The only major change I have

Runtime Error: maximum recursion depth exceeded while calling Python object

2011-01-11 Thread Derek
Working with Django 1.2.3 I had an application that was running well. However, some recent changes (not to the models themselves) have caused the "Runtime Error: maximum recursion depth exceeded while calling Python object" to start showing up everywhere; typically in conjunction wi

Re: overriding change_list.html causes 'maximum recursion depth exceeded' exception

2009-05-14 Thread Margie
t; {% extends "admin/change_list.html" %} > > > I get > > > Request Method:         GET > > Request URL:    http://172.16.84.5:8042/admin/taskmanager/task/ > > Exception Type:         TemplateSyntaxError > > Exception Value: > > > Caught an exception

Re: overriding change_list.html causes 'maximum recursion depth exceeded' exception

2009-05-13 Thread NickPresta
SyntaxError > Exception Value: > > Caught an exception while rendering: maximum recursion depth exceeded > in cmp > > Original Traceback (most recent call last): >   File "/tools/aticad/1.0/external/python-2.5.1/lib/python2.5/site- > packages/django/template/debug.py&

overriding change_list.html causes 'maximum recursion depth exceeded' exception

2009-05-07 Thread Margie
quot;admin/change_list.html" %} I get Request Method: GET Request URL:http://172.16.84.5:8042/admin/taskmanager/task/ Exception Type: TemplateSyntaxError Exception Value: Caught an exception while rendering: maximum recursion depth exceeded in cmp Original Traceback (most recent cal

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
lve >>> > sub_match = pattern.resolve(new_path) >>> > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", >>> > line 181, in resolve >>> > sub_match = pattern.resolve(new_path) >>> > File "/

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
lvers.py", >> > line 181, in resolve >> > sub_match = pattern.resolve(new_path) >> > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", >> > line 179, in resolve >> > for pattern in self.urlconf_module.urlpatterns: >&g

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
; > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", > > line 181, in resolve > > sub_match = pattern.resolve(new_path) > > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", > > line 179, in resolve > &

Re: Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Steve Holden
core/urlresolvers.py", > line 181, in resolve > sub_match = pattern.resolve(new_path) > File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", > line 179, in resolve > for pattern in self.urlconf_module.urlpatterns: > RuntimeError: ma

Nosetests. maximum recursion depth exceeded

2009-02-03 Thread Oleg Oltar
quot;/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 181, in resolve sub_match = pattern.resolve(new_path) File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 179, in resolve for pattern in self.urlconf_module.urlpatterns: R

Re: maximum recursion depth exceeded ???

2008-10-20 Thread Thomas Guettler
kele schrieb: > i just try to make my first authenticate codes . but while in the > line > ' login(request, v) ' , i got this runtime error , and > 'maximum recursion depth exceeded'. > > but i do not have any loop there . why ??? help . > >

Re: maximum recursion depth exceeded ???

2008-10-20 Thread kele
sorry . i blow myself up ! i redefine the login function . ignore me . On Oct 20, 7:41 pm, kele <[EMAIL PROTECTED]> wrote: > i just try to make my first authenticate codes . but while in the > line > '      login(request, v) '   , i got this  runtime error  , and &

maximum recursion depth exceeded ???

2008-10-20 Thread kele
i just try to make my first authenticate codes . but while in the line ' login(request, v) ' , i got this runtime error , and 'maximum recursion depth exceeded'. but i do not have any loop there . why ??? help . my codes r shown as below : def login(re

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-16 Thread sector119
Thanks, Malcolm, everything works fine now, I just remove 'parent' from ordering! I know about django-mptt, but I do not need tree actually, I just want to view relations... With plain ordering... --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-15 Thread sector119
> One more thing: What are you doing with class Import? That doesn't make any > sense like that to me. It's for my own purposes. I use it to show that data can be imported into this model and to define clean methods like in newforms to clean and normalise imported data :) class Import:

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-15 Thread Malcolm Tredinnick
On Tue, 2008-04-15 at 07:59 -0700, sector119 wrote: > Template error > > In template /home/sector119/devel/eps_src/eps/templates/base.html, > error at line 23 > Caught an exception while rendering: maximum recursion depth exceeded > in cmp > > 23{{ user.office.l

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-15 Thread Michael
problem is not QS-RF specific. On Tue, Apr 15, 2008 at 10:59 AM, sector119 <[EMAIL PROTECTED]> wrote: > > Template error > > In template /home/sector119/devel/eps_src/eps/templates/base.html, > error at line 23 > Caught an exception while rendering: maximum recursion

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-15 Thread sector119
Template error In template /home/sector119/devel/eps_src/eps/templates/base.html, error at line 23 Caught an exception while rendering: maximum recursion depth exceeded in cmp 23 {{ user.office.location.get_type_display }}. 24 {{ user.office.location.name }}, 25

Re: QS-RF: maximum recursion depth exceeded in cmp

2008-04-15 Thread Michael
RuntimeError > Exception Value: maximum recursion depth exceeded in cmp > Exception Location: /home/sector119/devel/django_src/django/db/models/ > sql/query.py in join, line 734 > Python Executable: /usr/bin/python2.5 > > > Template error > > In template /home/sec

QS-RF: maximum recursion depth exceeded in cmp

2008-04-15 Thread sector119
I begin testing qs-rf branch and get this exception, why? May be because Office model is tree - has parent = models.ForeignKey('self') field? Exception Type: RuntimeError Exception Value: maximum recursion depth exceeded in cmp Exception Location: /home/secto

Re: Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread Merric Mercer
t; > >> I am trying to get the Logout Method to work, but I keep >> getting"Exception Value:maximum recursion depth exceeded!". >> >> The view is very straightforward, so I can't understand where I'm going >> wrong. >> >>

Re: Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread Karen Tracey
ops, we're sorry, can't do, please try again later" kind of message? (Gah, as did my 2ndI'll try again with real mail...) At 06:24 AM 10/26/2006, you wrote: >I am trying to get the Logout Method to work, but I keep >getting"Exception Value:maximum recur

Re: Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread Don Arbow
On Oct 26, 2006, at 3:24 AM, MerMer wrote:I am trying to get the Logout Method to work, but I keepgetting"Exception Value:  maximum recursion depth exceeded!".The view is very straightforward, so I can't understand where I'm goingwrong.from django.contrib.auth import

Logout method returning "maximum recursion depth exceeded" - Help!

2006-10-27 Thread MerMer
I am trying to get the Logout Method to work, but I keep getting"Exception Value: maximum recursion depth exceeded!". The view is very straightforward, so I can't understand where I'm going wrong. from django.contrib.auth import logout, authenticate, login