2to3 can do some simple changes for Python 3 compatibility but it can't do everything. I think you'll spend less time updating your application to a supported version of Django which supports Python 3 than you would adding Python 3 support to Django 1.4.
On Wednesday, October 25, 2017 at 12:10:15 PM UTC-4, Etienne Robillard wrote:
-- On Wednesday, October 25, 2017 at 12:10:15 PM UTC-4, Etienne Robillard wrote:
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/ _import_string.utils/pastelib/ py", line 28, in eval_import module = import_module(module_name) File "/home/erob/src/django- hotsauce-devel/lib/notmm/ _import_string.utils/pastelib/ 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 tka...@yandex.com http://www.isotopesoftware.ca/
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/4d37fd41-c178-4fff-886a-512e41d5b42c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment