On Wed, 2011-10-26 at 09:00 +0200, Raphael Hertzog wrote: > tag 646634 + moreinfo unreproducible > thanks > > On Tue, 25 Oct 2011, Marcelo Jorge Vieira wrote: > > Django failed to build from source, > > attached you will find the log file. > [...] > > make[1]: *** [override_dh_auto_test] Error 1 > > make[1]: Leaving directory `/root/python-django-1.3.1' > > make: *** [build] Error 2 > > dpkg-buildpackage: error: debian/rules build gave error exit status 2 > > The relevant error is this one: > ====================================================================== > FAIL: test_broken_unicode (regressiontests.model_regress.tests.ModelTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File > "/root/python-django-1.3.1/tests/regressiontests/model_regress/tests.py", > line 146, in > test_broken_unicode > self.assertEqual(repr(b), "<BrokenUnicodeMethod: [Bad Unicode data]>") > AssertionError: '<BrokenUnicodeMethod: N\xc3\xa1zov: Jerry>' != > '<BrokenUnicodeMethod: [Bad > Unicode data]>' > > ---------------------------------------------------------------------- > Ran 3609 tests in 636.191s > > FAILED (failures=1, skipped=53, expected failures=3) > > So it looks like that somehow, the code is now accepting the __unicode__ > method > that is returning a byte string with non-ascii data. No idea why. > > What version of python were you using for your rebuild?
2.7.2-9 > In what environment did you do your rebuild? I'm using unstable. Linux speedhorse 3.0.0-2-amd64 #1 SMP Fri Oct 7 22:45:30 UTC 2011 x86_64 GNU/Linux > Was a locale set in the environment? LANG=en_US.utf8 LANGUAGE= LC_CTYPE="en_US.utf8" LC_NUMERIC="en_US.utf8" LC_TIME="en_US.utf8" LC_COLLATE="en_US.utf8" LC_MONETARY="en_US.utf8" LC_MESSAGES="en_US.utf8" LC_PAPER="en_US.utf8" LC_NAME="en_US.utf8" LC_ADDRESS="en_US.utf8" LC_TELEPHONE="en_US.utf8" LC_MEASUREMENT="en_US.utf8" LC_IDENTIFICATION="en_US.utf8" LC_ALL= > Do you still reproduce it if you build without being root? Yes, I did. > I can't reproduce this error when doing a normal build in sid... I found the bug. Please, add the follow lines in /etc/python2.7/sitecustomize.py: import sys sys.setdefaultencoding('utf8') Cheers, -- Marcelo Jorge Vieira xmpp:me...@jabber-br.org http://metaldot.alucinados.com
signature.asc
Description: This is a digitally signed message part