On Dec 4, 7:55 pm, Vinay Sajip <vinay_sa...@yahoo.co.uk> wrote: > Try just b(name) instead of bytes(name, ...) and see if that works.
Fixed with just the b. > > I don't know what to do to that. > > Replace *tuple(e) with *e.args (5 occurrences) and see how that works. Fixed. Now for the next problems: In django/db/models/sql/where.py, L53: if (hasattr(value, '__iter__') and hasattr(value, 'next')): -> if (hasattr(value, '__iter__') and (hasattr(value, 'next') or hasattr(value, '__next__'))): This comes with the comment: # Consume any generators immediately, so that we can determine # emptiness and transform any non-empty values correctly. Don't know if the above fix is correct. There are still more errors, seems like they are related to unicode <- > bytes problems, for example: File "/home/akaj/Django3/django/tests/regressiontests/cache/ tests.py", line 270, in test_data_types self.assertEqual(self.cache.get("stuff"), stuff) File "/home/akaj/Django3/django/tests/django/core/cache/backends/ db.py", line 71, in get return pickle.loads(base64.decodestring(value)) File "/usr/lib/python3.2/base64.py", line 367, in decodestring return decodebytes(s) File "/usr/lib/python3.2/base64.py", line 359, in decodebytes raise TypeError("expected bytes, not %s" % s.__class__.__name__) TypeError: expected bytes, not str And: Traceback (most recent call last): File "/home/akaj/Django3/django/tests/regressiontests/queries/ tests.py", line 1516, in test_exists self.assertTrue("id" not in connection.queries[-1]['sql'] and "name" not in connection.queries[-1]['sql']) TypeError: Type str doesn't support the buffer API - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.