Closed
Description
Hi there,
I'm the Bazel release manager and I've been investigating the rules_python failures (https://buildkite.com/bazel/bazel-with-downstream-projects-bazel/builds/233#14f47bce-4863-42cf-9179-fe4b1be650a8) in the new release candidate for Bazel 0.14.0. After trying to reproduce this in my macOS I realized that the failures are also present with Bazel 0.12.0 as follows:
$ git clone https://github.com/bazelbuild/rules_python.git
$ cd rules_python
$ /tmp/download/bazel-0.12.0-darwin-x86_64 test //examples/boto:boto_test
INFO: Analysed target //examples/boto:boto_test (23 packages loaded).
INFO: Found 1 test target...
FAIL: //examples/boto:boto_test (see /private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/testlogs/examples/boto/boto_test/test.log)
Target //examples/boto:boto_test up-to-date:
bazel-bin/examples/boto/boto_test
INFO: Elapsed time: 3.315s, Critical Path: 1.16s
INFO: Build completed, 1 test FAILED, 5 total actions
//examples/boto:boto_test FAILED in 1.0s
/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/testlogs/examples/boto/boto_test/test.log
$ cat /private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/testlogs/examples/boto/boto_test/test.log
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
-----------------------------------------------------------------------------
Traceback (most recent call last):
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/io_bazel_rules_python/examples/boto/boto_test.py", line 15, in <module>
import boto3
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__boto3_1_4_7/boto3/__init__.py", line 16, in <module>
from boto3.session import Session
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__boto3_1_4_7/boto3/session.py", line 17, in <module>
import botocore.session
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__botocore_1_7_48/botocore/session.py", line 26, in <module>
import botocore.credentials
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__botocore_1_7_48/botocore/credentials.py", line 22, in <module>
from dateutil.parser import parse
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__python_dateutil_2_7_3/dateutil/parser/__init__.py", line 2, in <module>
from ._parser import parse, parser, parserinfo
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__python_dateutil_2_7_3/dateutil/parser/_parser.py", line 50, in <module>
from .. import tz
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__python_dateutil_2_7_3/dateutil/tz/__init__.py", line 2, in <module>
from .tz import *
File "/private/var/tmp/_bazel_lpino/4cea827263cf09da0a5ddbf48df3f327/bazel-sandbox/5352791971010170471/execroot/io_bazel_rules_python/bazel-out/darwin-fastbuild/bin/examples/boto/boto_test.runfiles/pypi__python_dateutil_2_7_3/dateutil/tz/tz.py", line 19, in <module>
from six.moves import _thread
ImportError: cannot import name _thread
Executed 1 out of 1 test: 1 fails locally.
Given this I think the failures are unrelated to a recent change in Bazel itself.