Skip to content

Commit

Permalink
Print workaround on ros_adapter_test import error
Browse files Browse the repository at this point in the history
Having a locally installed google-auth Python package may cause bazel
test to fail, a consequence of bazel's Python rules not being hermetic.

Users following our how-to guides may run into this, as they are asked
to pip install google-auth.

See also:
bazelbuild/bazel#890 (comment)

Change-Id: Idc0d34ecc81b910b663bf380da14c3e7cf6d8415
  • Loading branch information
davschm committed Mar 26, 2019
1 parent 80c828c commit bec997c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/python/ros_adapter/ros_adapter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@

"""Tests for ros_adapter."""

import ros_adapter
try:
import ros_adapter
except ImportError as e:
print "ImportError possibly caused by locally installed Python packages"
print "try: pip uninstall google-auth"
raise e


if __name__ == '__main__':
Expand Down

0 comments on commit bec997c

Please sign in to comment.