Wednesday, October 25, 2017

TypeError: unorderable types: CharField() < CharField()

Hi,      What could be causing this error? I'm using Python 3.5.9 and Django 1.4. I used the 2to3 utility to adapt Django to Python 3.    TIA,    Etienne    + export PATH=/bin:/usr/bin:/usr/local/bin:/home/erob/bin  + pwd  + ROOTDIR=/home/erob/src/django-livestore  + SATCHMO_ROOTDIR=/home/erob/src/django-livestore  + export SATCHMO_ROOTDIR  + CONTRIBDIR=/home/erob/src/django-livestore/contrib  + LIBDIR=/home/erob/src/django-livestore/lib  + DJANGO_SETTINGS_MODULE=local_settings  + export DJANGO_SETTINGS_MODULE  + test -z /home/erob/src/django-livestore/contrib/django-1.4:/home/erob/src/django-livestore:/home/erob/src/django-livestore/lib:/home/erob/src/django-livestore/contrib:/home/erob/src/django-livestore/lib:/home/erob/src/django-livestore/contrib/site-packages  + err=3  + test 3 -eq 3  + /usr/bin/python3 /usr/local/bin/httpserver.py -d -c /home/erob/src/django-livestore/conf/satchmo_conf.ini --disable-auth --settings=local_settings --pythonpath=/home/erob/src/django-livestore/contrib/django-1.4:/home/erob/src/django-livestore:/home/erob/src/django-livestore/lib:/home/erob/src/django-livestore/contrib:/home/erob/src/django-livestore/lib:/home/erob/src/django-livestore/contrib/site-packages satchmo_store  DEBUG:django.setup() is disabled  INFO:Satchmo Logging subsystem initialized.  Sending log messages to /var/log/satchmo.log  Traceback (most recent call last):    File "/usr/local/bin/httpserver.py", line 6, in <module>      exec(compile(open(__file__).read(), __file__, 'exec'))    File "/home/erob/src/django-hotsauce-devel/tools/httpserver.py", line 196, in <module>      main(argv=sys.argv)    File "/home/erob/src/django-hotsauce-devel/tools/httpserver.py", line 137, in main      WSGIHandlerClass = eval_import(app_conf['controller'])    File "/home/erob/src/django-hotsauce-devel/lib/notmm/utils/pastelib/_import_string.py", line 28, in eval_import      module = import_module(module_name)    File "/home/erob/src/django-hotsauce-devel/lib/notmm/utils/pastelib/_import_string.py", line 67, in import_module      mod = __import__(s)    File "/home/erob/src/django-livestore/lib/satchmo_store/controller.py", line 21, in <module>      class SatchmoCookieStore(CookieStore):    File "/home/erob/src/django-livestore/lib/satchmo_store/controller.py", line 22, in SatchmoCookieStore      from django.contrib.auth.models import AnonymousUser    File "/home/erob/src/django-livestore/contrib/django-1.4/django/contrib/auth/models.py", line 17, in <module>      from django.contrib.contenttypes.models import ContentType    File "/home/erob/src/django-livestore/contrib/django-1.4/django/contrib/contenttypes/models.py", line 120, in <module>      class ContentType(models.Model):    File "/home/erob/src/django-livestore/contrib/django-1.4/django/db/models/base.py", line 99, in __new__      new_class.add_to_class(obj_name, obj)    File "/home/erob/src/django-livestore/contrib/django-1.4/django/db/models/base.py", line 219, in add_to_class      value.contribute_to_class(cls, name)    File "/home/erob/src/django-livestore/contrib/django-1.4/django/db/models/fields/__init__.py", line 245, in contribute_to_class      cls._meta.add_field(self)    File "/home/erob/src/django-livestore/contrib/django-1.4/django/db/models/options.py", line 171, in add_field      self.local_fields.insert(bisect(self.local_fields, field), field)  TypeError: unorderable types: CharField() < CharField()
--   Etienne Robillard  tkadm30@yandex.com  http://www.isotopesoftware.ca/

No comments:

Post a Comment