[Mailman-Developers] buildout problems solved

Patrick Ben Koetter p at state-of-mind.de
Wed Jan 28 20:43:28 CET 2009


* Barry Warsaw <barry at list.org>:
>> Downloaded branch via bzr, built and ran test.
>>
>> I am not sure what I should look for. Is that what you expect?
>>
>> root at mailman:mailman# bin/test
>> Running mailman.testing.layers.SMTPLayer tests:
>>  Set up mailman.testing.layers.ConfigLayer in 0.942 seconds.
>>  Set up mailman.testing.layers.SMTPLayer in 0.003 seconds.
>>  Ran 65 tests with 0 failures and 0 errors in 9.587 seconds.
>> Running zope.testing.testrunner.layer.UnitTests tests:
>>  Tear down mailman.testing.layers.SMTPLayer in 0.002 seconds.
>>  Tear down mailman.testing.layers.ConfigLayer in 0.011 seconds.
>>  Set up zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
>>
>>
>> Error in test test_passwords  
>> (mailman.tests.test_passwords.TestPBKDF2Passwords)
>> Traceback (most recent call last):
>>  File "/usr/local/lib/python2.6/unittest.py", line 279, in run
>>    testMethod()
>>  File "/root/mailman/src/mailman/tests/test_passwords.py", line 51, in 
>> test_passwords
>>    secret = passwords.make_secret(self.pw8a, self.scheme)
>>  File "/root/mailman/src/mailman/passwords.py", line 229, in  
>> make_secret
>>    secret = scheme_class.make_secret(password)
>>  File "/root/mailman/src/mailman/passwords.py", line 166, in  
>> make_secret
>>    digest = PBKDF2PasswordScheme._pbkdf2(password, salt, ITERATIONS)
>>  File "/root/mailman/src/mailman/passwords.py", line 149, in _pbkdf2
>>    T = U = array(b'l', prf.digest())
>> ValueError: string length not a multiple of item size
>>
>>
>>
>> Error in test test_passwords_with_funky_chars  
>> (mailman.tests.test_passwords.TestPBKDF2Passwords)
>> Traceback (most recent call last):
>>  File "/usr/local/lib/python2.6/unittest.py", line 279, in run
>>    testMethod()
>>  File "/root/mailman/src/mailman/tests/test_passwords.py", line 58, in 
>> test_passwords_with_funky_chars
>>    secret = passwords.make_secret(self.pw8b, self.scheme)
>>  File "/root/mailman/src/mailman/passwords.py", line 229, in  
>> make_secret
>>    secret = scheme_class.make_secret(password)
>>  File "/root/mailman/src/mailman/passwords.py", line 166, in  
>> make_secret
>>    digest = PBKDF2PasswordScheme._pbkdf2(password, salt, ITERATIONS)
>>  File "/root/mailman/src/mailman/passwords.py", line 149, in _pbkdf2
>>    T = U = array(b'l', prf.digest())
>> ValueError: string length not a multiple of item size
>>
>>
>>
>> Error in test test_unicode_passwords_with_funky_chars  
>> (mailman.tests.test_passwords.TestPBKDF2Passwords)
>> Traceback (most recent call last):
>>  File "/usr/local/lib/python2.6/unittest.py", line 279, in run
>>    testMethod()
>>  File "/root/mailman/src/mailman/tests/test_passwords.py", line 65, in 
>> test_unicode_passwords_with_funky_chars
>>    secret = passwords.make_secret(self.pwub, self.scheme)
>>  File "/root/mailman/src/mailman/passwords.py", line 229, in  
>> make_secret
>>    secret = scheme_class.make_secret(password)
>>  File "/root/mailman/src/mailman/passwords.py", line 166, in  
>> make_secret
>>    digest = PBKDF2PasswordScheme._pbkdf2(password, salt, ITERATIONS)
>>  File "/root/mailman/src/mailman/passwords.py", line 149, in _pbkdf2
>>    T = U = array(b'l', prf.digest())
>> ValueError: string length not a multiple of item size
>>
>>  Ran 23 tests with 0 failures and 3 errors in 0.367 seconds.
>> Tearing down left over layers:
>>  Tear down zope.testing.testrunner.layer.UnitTests in 0.000 seconds.
>> Total: 88 tests, 0 failures, 3 errors in 11.057 seconds.
>
> Nope.  I expect no failures!  Can you tell me something about the system 
> you're running these tests on?

It's a XEN guest on an Intel machine.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.2"

Python 2.6 has been built like this:

# apt-get build-dep python2.5
# download and unpack, cd ...
# ./configure
# make
# make test
...
325 tests OK.
1 test failed:
    test_httpservers
35 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_dl test_gl test_imageop test_imgfile test_kqueue
    test_linuxaudiodev test_macos test_macostools test_normalization
    test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages
    test_socketserver test_startfile test_sunaudiodev test_timeout
    test_urllib2net test_urllibnet test_winreg test_winsound
    test_zipfile64
Those skips are all expected on linux2.
# make install
# python
Python 2.6.1 (r261:67515, Jan 17 2009, 23:49:39)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

Then I did:

# bzr branch lp:mailman
# cd mailman
# python bootstrap.py
# bin/buildout
# bin/test

That's it.

p at rick

-- 
state of mind
Agentur für Kommunikation, Design und Softwareentwicklung

Patrick Koetter            Tel: 089 45227227
Echinger Strasse 3         Fax: 089 45227226
85386 Eching               Web: http://www.state-of-mind.de

Amtsgericht München        Partnerschaftsregister PR 563
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/mailman-developers/attachments/20090128/b99969cb/attachment.pgp>


More information about the Mailman-Developers mailing list