msg103540 - (view) |
Author: STINNER Victor (vstinner) *  |
Date: 2010-04-18 22:23 |
http://www.python.org/dev/buildbot/builders/x86 Tiger 3.1/builds/16/steps/test/logs/stdio test_httpservers [28139 refs] [28139 refs] [28139 refs] Traceback (most recent call last): File "/private/tmp/tmpqYIZuO/cgi-bin/.py", line 2, in import cgi File "/Users/db3l/buildarea/3.1.bolen-tiger/build/Lib/cgi.py", line 34, in from operator import attrgetter ImportError: No module named operator [28142 refs] Warning: os.environ was modified by test_httpservers test test_httpservers failed -- Traceback (most recent call last): File "/Users/db3l/buildarea/3.1.bolen-tiger/build/Lib/test/test_httpservers.py", line 380, in test_post self.assertEquals(res.read(), b'1, python, 123456\n') AssertionError: b'' != b'1, python, 123456\n' |
|
|
msg103756 - (view) |
Author: Ronald Oussoren (ronaldoussoren) *  |
Date: 2010-04-20 20:55 |
The test passes just fine on my machine. |
|
|
msg103762 - (view) |
Author: Antoine Pitrou (pitrou) *  |
Date: 2010-04-20 21:05 |
There's probably something wrong in the way test_httpservers sets up its own environment (can it impact the import mechanism?). The operator module exists and imports correctly in other conditions, e.g. test_operator passes on that buildbot. |
|
|
msg108767 - (view) |
Author: Bill Janssen (janssen) *  |
Date: 2010-06-27 01:18 |
Failing on my PPC Tiger OS X buildbot, with 2.6, too. |
|
|
msg108791 - (view) |
Author: Ronald Oussoren (ronaldoussoren) *  |
Date: 2010-06-27 14:30 |
Bill: can you do some debugging on the buildbot itself? I cannot reproduce the problem locally. |
|
|
msg112659 - (view) |
Author: Mark Dickinson (mark.dickinson) *  |
Date: 2010-08-03 19:49 |
I can reproduce this locally; it appears to have something to do with distutils and symlinks: If I do: ln -s /Users/dickinsm/python/svn/release26-maint/python.exe /Users/dickinsm/Documents/python.exe and then try to execute the symlink, I get: newton:~ dickinsm$ ~/Documents/python.exe 'import site' failed; use -v for traceback Python 2.6.5+ (release26-maint:83685M, Aug 3 2010, 19:48:56) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. The '-v' output includes: # /Users/dickinsm/python/svn/release26-maint/Lib/distutils/text_file.pyc matches /Users/dickinsm/python/svn/release26-maint/Lib/distutils/text_file.py import distutils.text_file # precompiled from /Users/dickinsm/python/svn/release26-maint/Lib/distutils/text_file.pyc 'import site' failed; traceback: Traceback (most recent call last): File "/Users/dickinsm/python/svn/release26-maint/Lib/site.py", line 525, in main() File "/Users/dickinsm/python/svn/release26-maint/Lib/site.py", line 504, in main addbuilddir() File "/Users/dickinsm/python/svn/release26-maint/Lib/site.py", line 115, in addbuilddir s = "build/lib.%s-%.3s" % (get_platform(), sys.version) File "/Users/dickinsm/python/svn/release26-maint/Lib/distutils/util.py", line 98, in get_platform cfgvars = get_config_vars() File "/Users/dickinsm/python/svn/release26-maint/Lib/distutils/sysconfig.py", line 525, in get_config_vars func() File "/Users/dickinsm/python/svn/release26-maint/Lib/distutils/sysconfig.py", line 382, in _init_posix raise DistutilsPlatformError(my_msg) distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/local/lib/python2.6/config/Makefile (No such file or directory) |
|
|
msg112675 - (view) |
Author: Mark Dickinson (mark.dickinson) *  |
Date: 2010-08-03 20:47 |
It looks as though the failure is due to r79297: the fix for issue 7668 introduced symlinks for the python executable, and these symlinks are causing the 'import site' to blow up. |
|
|
msg112681 - (view) |
Author: Mark Dickinson (mark.dickinson) *  |
Date: 2010-08-03 21:01 |
Here's a patch (against the release26-maint branch) which fixes the test failures for me. I wouldn't feel happy about committing this without Tarek looking at it first, though. Tarek? |
|
|
msg112688 - (view) |
Author: Mark Dickinson (mark.dickinson) *  |
Date: 2010-08-03 21:20 |
Fixed in r83688 for release26-maint. The fix still needs to be ported to release31-maint. |
|
|
msg112691 - (view) |
Author: Mark Dickinson (mark.dickinson) *  |
Date: 2010-08-03 21:34 |
Fix ported to release31-maint in r83689. Thanks Tarek for reviewing (on IRC). |
|
|