buildout problems solved
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thanks to help from the distutils sig, I believe I've solved the
buildout problems that were discussed here a while back. By moving
the mailman source tree into an 'src' subdirectory, buildout now works
regardless of whether you're sharing eggs via ~/.buildout/default.cfg
or not.
Please give the current 3.0 bzr tree a try. If you want me to cut a
new release with the fixes I can do that too.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkl8q0kACgkQ2YZpQepbvXEPWgCeOU3YsBU8FmQc25dNpzP4Gm7r 3/EAn3n7yI6x/I3MgmYPB85qjeoBOsz+ =dQGr -----END PGP SIGNATURE-----
- Barry Warsaw <barry@list.org>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thanks to help from the distutils sig, I believe I've solved the
buildout problems that were discussed here a while back. By moving the mailman source tree into an 'src' subdirectory, buildout now works
regardless of whether you're sharing eggs via ~/.buildout/default.cfg or not.Please give the current 3.0 bzr tree a try. If you want me to cut a new release with the fixes I can do that too.
Downloaded branch via bzr, built and ran test.
I am not sure what I should look for. Is that what you expect?
root@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.
p@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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 28, 2009, at 2:25 PM, Patrick Ben Koetter wrote:
- Barry Warsaw <barry@list.org>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Thanks to help from the distutils sig, I believe I've solved the buildout problems that were discussed here a while back. By moving
the mailman source tree into an 'src' subdirectory, buildout now works regardless of whether you're sharing eggs via ~/.buildout/ default.cfg or not.Please give the current 3.0 bzr tree a try. If you want me to cut
a new release with the fixes I can do that too.Downloaded branch via bzr, built and ran test.
I am not sure what I should look for. Is that what you expect?
root@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 sizeError 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 sizeError 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 sizeRan 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?
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmAssIACgkQ2YZpQepbvXHmKACgtCs6GO5a/kmfeR4E0HHQSKny KA4AoLukla53h4YsnZITTEjLGoiotqbX =LjSY -----END PGP SIGNATURE-----
- Barry Warsaw <barry@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@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 sizeError 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 sizeError 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 sizeRan 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@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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 28, 2009, at 2:43 PM, Patrick Ben Koetter wrote:
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"
Let me guess, is it a 64-bit machine?
Please run this:
% python2.6 -c 'import array; print array.array("l").itemsize'
What does this print?
How about this:
python2.6 -c 'import array; print array.array("L").itemsize'
- -Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmBCbkACgkQ2YZpQepbvXG2QQCgqjuqDaw16SMj2o5vUD5PG1J9 AjEAnAu+ZCEFWHWpD6acf+UYYAPOInc+ =b3+M -----END PGP SIGNATURE-----
- Barry Warsaw <barry@list.org>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 28, 2009, at 2:43 PM, Patrick Ben Koetter wrote:
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"
Let me guess, is it a 64-bit machine?
Correct. Did I miss something?
Please run this:
% python2.6 -c 'import array; print array.array("l").itemsize'
p@mailman:~$ python2.6 -c 'import array; print array.array("l").itemsize' 8
What does this print?
How about this:
python2.6 -c 'import array; print array.array("L").itemsize'
p@mailman:~$ python2.6 -c 'import array; print array.array("L").itemsize' 8
p@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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 29, 2009, at 1:29 AM, Patrick Ben Koetter wrote:
- Barry Warsaw <barry@list.org>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Jan 28, 2009, at 2:43 PM, Patrick Ben Koetter wrote:
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"
Let me guess, is it a 64-bit machine?
Correct. Did I miss something?
Nope, I did. It's a bug, but I only have 32 bit machines available to
me. Still, I'll try to work up a fix. Stay tuned.
In the meantime, this should not be a show stopper bug for you. Just
ignore these failures and have at it!
Thanks, Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmBssEACgkQ2YZpQepbvXEwTgCbBP/TbiNtHpX78VNd+KNmTF/g X9gAnAkNTOp/8TEDZ8ggR0BoZLo1Y4DI =TeHT -----END PGP SIGNATURE-----
- Barry Warsaw <barry@list.org>:
Nope, I did. It's a bug, but I only have 32 bit machines available to
me. Still, I'll try to work up a fix. Stay tuned.In the meantime, this should not be a show stopper bug for you. Just
ignore these failures and have at it!
A small fix now you've moved the sources to src/:
# diff docs/ALPHA.txt.orig docs/ALPHA.txt 68c68 < For now though, start by looking through mailman/config/schema.cfg.
For now though, start by looking through src/mailman/config/schema.cfg.
p@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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Feb 4, 2009, at 2:27 PM, Patrick Ben Koetter wrote:
- Barry Warsaw <barry@list.org>:
Nope, I did. It's a bug, but I only have 32 bit machines available
to me. Still, I'll try to work up a fix. Stay tuned.In the meantime, this should not be a show stopper bug for you. Just ignore these failures and have at it!
A small fix now you've moved the sources to src/:
# diff docs/ALPHA.txt.orig docs/ALPHA.txt 68c68 < For now though, start by looking through mailman/config/ schema.cfg.
For now though, start by looking through src/mailman/config/ schema.cfg.
Thanks! Fixed in r6679.
Barry
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkmJ8QMACgkQ2YZpQepbvXE5bgCePdTDAkSLTxT+OAwBnEEKWOSZ ObIAoJrODCKyhGJnrSetZh9fdBbjLdNb =0Qe6 -----END PGP SIGNATURE-----
participants (2)
-
Barry Warsaw
-
Patrick Ben Koetter