abseil / abseil-py Goto Github PK
View Code? Open in Web Editor NEWAbseil Common Libraries (Python)
License: Apache License 2.0
Abseil Common Libraries (Python)
License: Apache License 2.0
At 9d73fda with Bazel 0.28.0 //absl/flags:tests/_validators_test
is failing.
https://buildkite.com/bazel/abseil-python/builds/832#0170d5cb-302b-4c10-ad05-05cdb7af6b0d
======================================================================
FAIL: test_flag_default_not_none_warning (__main__.MarkFlagAsRequiredTest)
test_flag_default_not_none_warning (__main__.MarkFlagAsRequiredTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/private/var/tmp/_bazel_buildkite/e40ec35ca2e2e5ea6d861f329e114d88/sandbox/darwin-sandbox/77/execroot/io_abseil_py/bazel-out/darwin-fastbuild/bin/absl/flags/tests/_validators_test.runfiles/io_abseil_py/absl/flags/tests/_validators_test.py", line 626, in test_flag_default_not_none_warning
self.assertLen(w, 1)
File "/private/var/tmp/_bazel_buildkite/e40ec35ca2e2e5ea6d861f329e114d88/sandbox/darwin-sandbox/77/execroot/io_abseil_py/bazel-out/darwin-fastbuild/bin/absl/flags/tests/_validators_test.runfiles/io_abseil_py/absl/testing/absltest.py", line 785, in assertLen
container_repr, len(container), expected_len), msg)
File "/private/var/tmp/_bazel_buildkite/e40ec35ca2e2e5ea6d861f329e114d88/sandbox/darwin-sandbox/77/execroot/io_abseil_py/bazel-out/darwin-fastbuild/bin/absl/flags/tests/_validators_test.runfiles/io_abseil_py/absl/testing/absltest.py", line 1611, in fail
return super(TestCase, self).fail(self._formatMessage(prefix, msg))
AssertionError: [<warnings.WarningMessage object at 0x10d045588>, <warnings.WarningMessage object at 0x10d0455f8>] has length of 2, expected 1.
Hi just discovered this beauty and want to market it within the company.
=> would be good if you could update https://abseil.io - on the bottom it makes this unjustified outdated impression, saying
Is there a way to only get the "key" flags to be outputted by FLAGS.flags_into_string()?
i.e. the ones documented by --helpshort
I would like to "save" the options of a neural network training. However, the FLAGS.* contains hundreds of options that I have never defined. The --help seemed to understand the difference between the full set, and the ones that my application defined.
It wold have to 2x main uses:
(Transplanted discussion from #57 as per @rickeylev request)
Hi there,
I added the WORKSPACE file from GitHub into the package published on pypi, but when I run
bazel test absl
It says:
ERROR: no targets found beneath 'absl'.
INFO: Elapsed time: 0.105s
ERROR: Couldn't start the build. Unable to run tests.
Thanks
Hi,
I am trying to write log into file directly instead of showing in command window. I have seen following issues about it
#83
#111
I tried them but I cant see anything in the file.
My code is
import os
from absl import logging
if not os.path.exists('/opt/log/'):
os.makedirs('/opt/log/')
logging.get_absl_handler().use_absl_log_file('absl_logging', '/opt/log/')
logging.info('test')
logging.debug('test debug')
I cant see anything in that file though file was created
When defining a multi-field, it should always be a list and tuple is not accepted. I would be more than happy to help with this.
I have a script where I'm importing a module that internally uses abseil logging. The rest of our code base is using standard python logging. This is leading to a situation where importing that module is interfering with the rest of the code base using standard logging and causing lost log messages.
See here for a description of the issue: tensorflow/hub#263
Have others run into this issue before?
The tarball for the latest release (https://files.pythonhosted.org/packages/source/a/absl-py/absl-py-0.9.0.tar.gz) does not include the CHANGELOG.md file. This probably needs a change to MANIFEST.in unless I am mistaken.
This is similar to #59. It would be nice if assertSameStructure
considered a set
and a frozenset
with the same inner structure to be equivalent:
assertSameStructure(set([1,2,3]), frozenset([1,2,3]))
If there is interest, I can send a CL to implement it.
When I call FLAGS.flag_values_dict(), I want to get the dict of defined hyper parameters,
but I find there have been some parameters such as "run_with_pdb", "verbosity" and so on.
Is there a method that can return the dict items which only contain parameters that I define in my code?
Fetching from the latest tag and running the tests as indicated in the readme fails.
> bazel test absl/...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
... still trying to connect to local Bazel server after 10 seconds ...
INFO: Invocation ID: becfbc0d-2285-49ab-b76c-1c029e2152b2
INFO: Analysed 61 targets (26 packages loaded, 392 targets configured).
INFO: Found 35 targets and 26 test targets...
FAIL: //absl:tests/command_name_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/tests/command_name_test/test.log)
FAIL: //absl/flags:tests/_argument_parser_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_argument_parser_test/test.log)
FAIL: //absl/testing:tests/absltest_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_test/test.log)
FAIL: //absl/flags:tests/flags_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_test/test.log)
FAIL: //absl/testing:tests/absltest_filtering_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_filtering_test/test.log)
FAIL: //absl/testing:tests/flagsaver_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/flagsaver_test/test.log)
FAIL: //absl/third_party/unittest3_backport:tests/unittest3_backport_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/third_party/unittest3_backport/tests/unittest3_backport_test/test.log)
FAIL: //absl/testing:tests/parameterized_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/parameterized_test/test.log)
FAIL: //absl:tests/app_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/tests/app_test/test.log)
FAIL: //absl/flags:tests/flags_numeric_bounds_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_numeric_bounds_test/test.log)
FAIL: //absl/logging:tests/log_before_import_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/log_before_import_test/test.log)
FAIL: //absl/logging:tests/verbosity_flag_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/verbosity_flag_test/test.log)
FAIL: //absl/flags:tests/_flag_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_flag_test/test.log)
FAIL: //absl/flags:tests/flags_helpxml_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_helpxml_test/test.log)
FAIL: //absl/testing:tests/absltest_sharding_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_sharding_test/test.log)
FAIL: //absl/flags:tests/_helpers_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_helpers_test/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 1 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_1_of_50/test.log)
FAIL: //absl/flags:tests/argparse_flags_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/argparse_flags_test/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 50 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_50_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 49 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_49_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 48 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_48_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 16 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_16_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 2 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_2_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 3 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_3_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 42 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_42_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 46 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_46_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 44 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_44_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 40 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_40_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 18 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_18_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 17 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_17_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 38 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_38_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 39 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_39_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 36 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_36_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 20 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_20_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 19 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_19_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 4 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_4_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 30 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_30_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 31 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_31_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 32 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_32_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 21 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_21_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 22 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_22_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 26 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_26_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 28 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_28_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 23 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_23_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 6 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_6_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 5 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_5_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 24 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_24_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 25 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_25_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 29 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_29_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 7 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_7_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 27 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_27_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 8 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_8_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 45 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_45_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 15 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_15_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 43 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_43_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 12 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_12_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 35 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_35_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 37 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_37_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 41 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_41_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 34 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_34_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 47 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_47_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 10 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_10_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 33 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_33_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 11 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_11_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 9 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_9_of_50/test.log)
FAILED: //absl/logging:tests/logging_functional_test (Summary)
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_1_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_50_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_49_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_48_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_16_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_2_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_3_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_42_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_46_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_44_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_40_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_17_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_18_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_38_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_39_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_36_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_20_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_19_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_4_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_30_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_31_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_32_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_21_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_22_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_26_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_28_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_23_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_6_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_5_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_24_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_25_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_29_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_7_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_27_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_8_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_15_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_45_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_43_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_12_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_35_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_37_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_41_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_34_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_47_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_10_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_33_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_11_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_9_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_13_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_14_of_50/test.log
FAIL: //absl/logging:tests/logging_functional_test (shard 13 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_13_of_50/test.log)
FAIL: //absl/logging:tests/logging_functional_test (shard 14 of 50) (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_14_of_50/test.log)
FAIL: //absl/flags:tests/_flagvalues_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_flagvalues_test/test.log)
FAIL: //absl/flags:tests/flags_unicode_literals_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_unicode_literals_test/test.log)
FAIL: //absl/testing:tests/absltest_randomization_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_randomization_test/test.log)
FAIL: //absl/testing:tests/xml_reporter_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/xml_reporter_test/test.log)
FAIL: //absl/logging:tests/logging_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_test/test.log)
FAIL: //absl/flags:tests/flags_formatting_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_formatting_test/test.log)
FAIL: //absl/logging:tests/converter_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/converter_test/test.log)
FAIL: //absl/flags:tests/_validators_test (see /home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_validators_test/test.log)
INFO: Elapsed time: 293.031s, Critical Path: 12.74s
INFO: 75 processes: 75 linux-sandbox.
INFO: Build completed, 26 tests FAILED, 178 total actions
//absl:tests/app_test FAILED in 2.3s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/tests/app_test/test.log
//absl:tests/command_name_test FAILED in 4.5s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/tests/command_name_test/test.log
//absl/flags:tests/_argument_parser_test FAILED in 4.6s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_argument_parser_test/test.log
//absl/flags:tests/_flag_test FAILED in 6.0s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_flag_test/test.log
//absl/flags:tests/_flagvalues_test FAILED in 0.4s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_flagvalues_test/test.log
//absl/flags:tests/_helpers_test FAILED in 2.9s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_helpers_test/test.log
//absl/flags:tests/_validators_test FAILED in 0.3s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/_validators_test/test.log
//absl/flags:tests/argparse_flags_test FAILED in 3.9s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/argparse_flags_test/test.log
//absl/flags:tests/flags_formatting_test FAILED in 0.3s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_formatting_test/test.log
//absl/flags:tests/flags_helpxml_test FAILED in 2.0s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_helpxml_test/test.log
//absl/flags:tests/flags_numeric_bounds_test FAILED in 2.2s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_numeric_bounds_test/test.log
//absl/flags:tests/flags_test FAILED in 4.4s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_test/test.log
//absl/flags:tests/flags_unicode_literals_test FAILED in 0.4s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/flags/tests/flags_unicode_literals_test/test.log
//absl/logging:tests/converter_test FAILED in 0.3s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/converter_test/test.log
//absl/logging:tests/log_before_import_test FAILED in 2.2s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/log_before_import_test/test.log
//absl/logging:tests/logging_test FAILED in 0.4s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_test/test.log
//absl/logging:tests/verbosity_flag_test FAILED in 2.5s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/verbosity_flag_test/test.log
//absl/testing:tests/absltest_filtering_test FAILED in 1.0s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_filtering_test/test.log
//absl/testing:tests/absltest_randomization_test FAILED in 0.3s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_randomization_test/test.log
//absl/testing:tests/absltest_sharding_test FAILED in 3.8s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_sharding_test/test.log
//absl/testing:tests/absltest_test FAILED in 4.4s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/absltest_test/test.log
//absl/testing:tests/flagsaver_test FAILED in 1.0s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/flagsaver_test/test.log
//absl/testing:tests/parameterized_test FAILED in 1.0s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/parameterized_test/test.log
//absl/testing:tests/xml_reporter_test FAILED in 0.4s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/testing/tests/xml_reporter_test/test.log
//absl/third_party/unittest3_backport:tests/unittest3_backport_test FAILED in 1.0s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/third_party/unittest3_backport/tests/unittest3_backport_test/test.log
//absl/logging:tests/logging_functional_test FAILED in 50 out of 50 in 8.7s
Stats over 50 runs: max = 8.7s, min = 0.3s, avg = 2.7s, dev = 1.9s
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_1_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_50_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_49_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_48_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_16_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_2_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_3_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_42_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_46_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_44_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_40_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_17_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_18_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_38_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_39_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_36_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_20_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_19_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_4_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_30_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_31_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_32_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_21_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_22_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_26_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_28_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_23_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_6_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_5_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_24_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_25_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_29_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_7_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_27_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_8_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_15_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_45_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_43_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_12_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_35_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_37_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_41_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_34_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_47_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_10_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_33_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_11_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_9_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_13_of_50/test.log
/home/jayvdb/.cache/bazel/_bazel_jayvdb/0525cb1636a156ece6ca365b0b34dc87/execroot/io_abseil_py/bazel-out/k8-fastbuild/testlogs/absl/logging/tests/logging_functional_test/shard_14_of_50/test.log
INFO: Build completed, 26 tests FAILED, 178 total actions
Could this be caused by bazel finding the wrong python executable?
I came across this issue when using the save_main_session
in Apache Beam 2.4.0 with absl.flags (absl-py version 0.2.1). save_main_session
pickles then unpickles the variables in the main session, flags.FLAGS included.
The following error is raised:
Traceback (most recent call last):
File "test.py", line 46, in <module>
app.run(main)
File "venv/local/lib/python2.7/site-packages/absl/app.py", line 274, in run
_run_main(main, args)
File "venv/local/lib/python2.7/site-packages/absl/app.py", line 238, in _run_main
sys.exit(main(argv))
File "test.py", line 43, in main
_ = output | beam.io.WriteToText(FLAGS.output_file)
File "venv/local/lib/python2.7/site-packages/apache_beam/pipeline.py", line 389, in __exit__
self.run().wait_until_finish()
File "venv/local/lib/python2.7/site-packages/apache_beam/pipeline.py", line 369, in run
self.to_runner_api(), self.runner, self._options).run(False)
File "venv/local/lib/python2.7/site-packages/apache_beam/pipeline.py", line 379, in run
pickler.dump_session(os.path.join(tmpdir, 'main_session.pickle'))
File "venv/local/lib/python2.7/site-packages/apache_beam/internal/pickler.py", line 242, in dump_session
dill.load_session(file_path)
File "venv/local/lib/python2.7/site-packages/dill/dill.py", line 363, in load_session
module = unpickler.load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1221, in load_build
setstate = getattr(inst, "__setstate__", None)
File "venv/local/lib/python2.7/site-packages/absl/flags/_flagvalues.py", line 468, in __getattr__
fl = self._flags()
File "venv/local/lib/python2.7/site-packages/absl/flags/_flagvalues.py", line 141, in _flags
return self.__dict__['__flags']
KeyError: '__flags'
Example code:
"""
Demonstrating incompatibility between absl.flags and
save_main_session in Apache Beam's Python SDK.
"""
import re
import six
import apache_beam as beam
from absl import app
from absl import flags
FLAGS = flags.FLAGS
flags.DEFINE_string(
'output_file',
'output.txt',
help='Output filename.')
def main(argv):
del argv # Unused.
pipeline_options = beam.pipeline.PipelineOptions()
# Uncomment the next line to break things.
#pipeline_options.view_as(beam.pipeline.SetupOptions).save_main_session = True
with beam.Pipeline(options=pipeline_options) as p:
lines = p | beam.Create(
['This is a test of compatibility issues between absl and beam.',
'Since absl.flags cannot be pickled correctly, it cannot be used',
'with the save_main_session pipeline option.'])
counts = (
lines
| 'Split' >> (beam.FlatMap(lambda x: re.findall(r'[A-Za-z\']+', x))
.with_output_types(six.text_type))
| 'PairWithOne' >> beam.Map(lambda x: (x, 1))
| 'GroupAndSum' >> beam.CombinePerKey(sum))
output = counts | 'Format' >> beam.Map(
lambda (word, count): '%s: %s' % (word, count))
_ = output | beam.io.WriteToText(FLAGS.output_file)
if __name__ == '__main__':
app.run(main)
Hello dear friends,
A few weeks ago, Tensorflow have moved to this library to manage flags using tf.app.flags.
Link to file: https://github.com/tensorflow/tensorflow/blob/r1.5/tensorflow/python/platform/flags.py
I can't manage to find any way to "reset" the flags state with this library. Is there any way to do this ?
I would like to remove every flags created and return to a blank state as if it was just created.
Thanks a lot.
I would like to enjoy the absl.logging but I would like to use argparse instead of absl.flags.
Is it possible? If so, how can I achieve it?
I am trying to use the FLAGS values on a application which uses multiple process (python multiprocess lib) with pipe objects, but, when I try to access those values on a child process I get the error absl.flags._exceptions.UnparsedFlagAccessError: Trying to access flag --tracking before flags were parsed
.
I think that I am getting this error because when I try to spawn a new process, it not run the app.run() function again on each function that is called by b_proc = Process(target=modes, args=[receiver])
Is there a way to solve it without the need to parse each FLAG value to a list and pass it to the child process as a argument?
code Example:
import multiprocessing as mp
from multiprocessing import Pool, Process, Value, Array
from absl import app, flags, logging
from absl.flags import FLAGS
flags.DEFINE_boolean('tracking', False, 'new tracking')
def modes(detection):
print('start streaming')
print(type(detection))
FLAGS = flags.FLAGS
if FLAGS.tracking:
time.sleep(10)
track=get_track(detection)
np.savetxt("my_track.txt", track, newline="\n")
else:
streaming(detection)
def main(argv):
receiver , sender = mp.Pipe()
b_proc = Process(target=modes, args=[receiver])
if __name__ == "__main__":
try:
app.run(main)
except SystemExit:
pass
I must be missing something but I'm not finding any way to mark a flag as being required? Or is it an intentional design choice to not support that?
Is it possible to configure logging to write logs to stdout and file at the same time?
Would it be possible to create Git Tags in the repository that correspond to the version in setup.py
?
That would help other projects that use Bazel to depend on the project in a more explicit way (using the tag:
attribute of git_project rather than the commit:
one.
In my case, I only use absl.flags
to parse command line parameters. So, I have to manually pass sys.argv
to FLAGS
. Can we set a default argument when calling FLAGS
? Or, does a default value have some drawbacks?
# Now:
import sys
from absl import flags
FLAGS = flags.FLAGS
FLAGS(sys.argv)
# If we can:
from absl import flags
FLAGS = flags.FLAGS
FLAGS()
The reason why I want this feature is that I'm used to parsing with argparse
as follows:
import argparse
parser = argparse.ArgumentParser()
parser.parse_args()
Any time the values of flags will be managed by an external tool to abseil-py
there will constantly be a sync-tension in regards to what the actual value of the flag is on one run of the program. Currently my way of dealing with this is to log (or print?) the value of the flag.
Are there best practices regarding this?
If I open a PR with an option of logging the value of a flag when accessed (or defined?), are you open to this? Perhaps a change in __getattr__
of FlagValues
? Happy to hear your thoughts and contribute a little.
I asked this question on SO but it seems there are not enough people using this flag library there to answer it (or there may be no good answer).
Given an invocation of some python application using gflags, which may or may not rely on flag files, e.g., python myapp.py --flagfile someflagfile.txt --some_other_flag x
, it is very useful to be able to recover the structured configuration of the invocation (for instance, I'm performing experiments and would like to record the configuration used to perform the experiment in JSON along with the experiment logs).
My current solution is the following manual one, but I was hoping there was a better way of doing it
from absl import flags
d = flags.FLAGS.flags_by_module_dict()
d = {k: {v.name: v.value for v in vs} for k, vs in d.items()}
The only issue with the above is that if I say, print out the dict d
as JSON, I can't feed it back in as a --flagfile
again.
It'd be really sweet to have a glob pattern that specifies what tests to run, similar to googletest
's --gtest_filter
.
This is in reference to tensorflow/tensorflow#379
--boolean_flag False
evaluates to True
while --boolean_flag=False
works as expected.
Using this file:
from absl import logging
logging.warning('Worrying Stuff')
from here:
https://abseil.io/docs/python/guides/logging
produces this:
WARNING: Logging before flag parsing goes to stderr.
W0517 21:08:20.576859 25769803792 log.py:4] Worrying Stuff
how do i get rid of the nag and only keep the warning that i coded?
I am running in to some problems when defining/using flags, where I would like to use some earlier flag values to define defaults for later flag values. See the example below, where I provide flags to define a base director and a log directory, and if the log directory isn't defined, I would like to place the logs in a folder under the base directory.
# flags_test.py
import os
from absl import flags
FLAGS = flags.FLAGS
flags.DEFINE_string('base_dir', '/tmp/dir', 'base dir')
flags.DEFINE_string('log_dir', os.path.join(FLAGS.base_dir, 'logs'), 'log dir')
When I try to run this program with a custom log_dir
, like python flags_test.py --log_dir /logs
, I get the following exception:
absl.flags._exceptions.UnparsedFlagAccessError: Trying to access flag --base_dir before flags were parsed.
Is there a different way of doing this for what I'm trying to accomplish?
Would you mind creating a changelog to make it easier for packagers and other users to understand what is in each release.
Currently the best we have is "Push up to 218904912" at https://github.com/abseil/abseil-py/releases/tag/pypi-v0.6.1 , or manually building a changelog from the commits
When trying to use assertSameStructure to compar a dict to a defaultdict, it throws an error.
This is due to the direct type comparison here
https://github.com/abseil/abseil-py/blob/master/absl/testing/absltest.py#L1219
Not sure if it's worth adding another exception similar to int vs long. Feel free to close if this is WAI
I am really confusing right now:
from absl import logging as logger
import logging
fmt = '[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s'
formatter = logging.Formatter(fmt)
logger.get_absl_handler().setFormatter(formatter)
logger.set_verbosity('debug')
a = 3434
logger.info('{}'.format(a))
Doesn't applied format........... it prints
INFO:absl:3434
I want line number and filename time etc....
I have written a simple program for tensorflow serving to deploy and check how it is working. I followed many tutorials on how to deploy these models using tensorflow serving inside docker environment.
sess = tf.InteractiveSession()
# define the tensorflow network and do some trains
x = tf.placeholder("float", name="x")
w = tf.Variable(2.0, name="w")
b = tf.Variable(0.0, name="bias")
h = tf.multiply(x, w)
sess.run(tf.global_variables_initializer())
y = tf.add(h, b, name="y")
export_path_base = FLAGS.work_dir
export_path = os.path.join(tf.compat.as_bytes(export_path_base),
tf.compat.as_bytes(str(FLAGS.model_version)))
print('Exporting trained model to', export_path)
builder = tf.saved_model.builder.SavedModelBuilder(export_path)
tensor_info_x = tf.saved_model.utils.build_tensor_info(x)
tensor_info_y = tf.saved_model.utils.build_tensor_info(y)
prediction_signature = (
tf.saved_model.signature_def_utils.build_signature_def(
inputs={'input': tensor_info_x},
outputs={'output': tensor_info_y},
method_name=tf.saved_model.signature_constants.PREDICT_METHOD_NAME))
legacy_init_op = tf.group(tf.tables_initializer(), name='legacy_init_op')
builder.add_meta_graph_and_variables(
sess, [tf.saved_model.tag_constants.SERVING],
signature_def_map={
'prediction':
prediction_signature,
},
legacy_init_op=legacy_init_op)
builder.save()
This saved_model of above programs is currently running inside the docker.I now want to create a client.py file to take input and produce output. I want to give a single number as input to my client file and not to declare inside . I mean
i want to give input like this
python client.py --server=localhost:9000 --input=3
so i created a client file with input as tf.app.flags.float('input','','input for the model')
from grpc.beta import implementations
import numpy
import tensorflow as tf
import sys
from datetime import datetime
from tensorflow_serving.apis import predict_pb2
from tensorflow_serving.apis import prediction_service_pb2
tf.app.flags.DEFINE_string('server', 'localhost:9000', 'PredictionService host:port')
tf.app.flags.DEFINE_float('input','', 'input for the model')
FLAGS = tf.app.flags.FLAGS
def do_inference(hostport,args):
"""Tests PredictionService with concurrent requests.
Args:
hostport: Host:port address of the Prediction Service.
Returns:
pred values, ground truth label
"""
# create connection
host, port = hostport.split(':')
channel = implementations.insecure_channel(host, int(port))
stub = prediction_service_pb2.beta_create_PredictionService_stub(channel)
# initialize a request
data = args
request = predict_pb2.PredictRequest()
request.model_spec.name = 'example_model'
request.model_spec.signature_name = 'prediction'
request.inputs['input'].CopyFrom(tf.contrib.util.make_tensor_proto(data))
# predict
result = stub.Predict(request, 5.0) # 5 seconds
return result
def main(_):
if not FLAGS.server:
print('please specify server host:port')
return
result = do_inference(FLAGS.server,FLAGS.input)
print('Result is: ', result)
if __name__ == '__main__':
tf.app.run()
This gives error ,
Can you tell me what i did wrong here please? How i send a float number as input to the client file?
I know there is something wrong with this line #tf.app.flags.float('input','','input for the model')
EDIT i changed this tf.app.flags.DEFINE_float('input','', 'input for the model') to tf.app.flags.DEFINE_float('input', 3.0, 'input for the model') and ran
python client.py --server=172.17.0.2:9000 --input=9.0
it returned nothing.
The offending code is here: https://github.com/abseil/abseil-py/blob/master/absl/logging/__init__.py#L819-L825
My current "workaround" when using Google python libs as libraries looks like this:
try:
# Capirca uses Google's abseil-py library, which uses a Google-specific
# wrapper for logging. That wrapper will write a warning to sys.stderr if
# the Google command-line flags library has not been initialized.
#
# https://github.com/abseil/abseil-py/blob/pypi-v0.7.1/absl/logging/__init__.py#L819-L825
#
# This is not right behavior for Python code that is invoked outside of a
# Google-authored main program. Use knowledge of abseil-py to disable that
# warning; ignore and continue if something goes wrong.
import absl.logging
absl.logging._warn_preinit_stderr = False
except Exception:
pass
is this the right way to get around this?
I've been experimenting with the flags module and had a question. From the documentation:
"""This package is used to define and parse command line flags.
This package defines a distributed flag-definition policy: rather than
an application having to define all flags in or near main(), each Python
module defines flags that are useful to it. When one Python module
imports another, it gains access to the other's flags. (This is
implemented by having all modules share a common, global registry object
containing all the flag information.)
Flags are defined through the use of one of the DEFINE_xxx functions.
The specific function used determines how the flag is parsed, checked,
and optionally type-converted, when it's seen on the command line.
"""
If flags are defined in different packages __init__.py
files, how are they discovered prior to parsing the flags? For instance, assume a standard project:
module/__init__.py
if __name__ == "__main__":
FLAGS(argv)
server.start()
And our server object uses a library called foo that defines a flag that is not imported until the server is actually invoked:
module/foo/__init__.py
DEFINE_string('debug', None, 'Debug mode')
This will raise an error as the flag definition will not be known by flags yet. I'm probably missing something here - looking for guidance.
Currrent either a way to using format to log or prints any usable information such as line number..
It's common to default some command line arguments from the environment, where command line overrides the environment variables, which in turn overrides any config file.
Absl doesn't support this but I don't see an explanation of why - is it a design choice?
It is of course possible to do something like this:
flags.DEFINE_string('foo', os.getenv('FOO', 'Some default'), '')
but it's also quite common to have multiple environment variables, which starts getting quite repetitive. Is there any fundamental argument against adding some support for using environment variables, regardless of how that surfaces in the API?
Are all flag names assumed to be globally unique within an Abseil application? For example, assume I have a main application with a debug
flag, that imports a library that also supplies a debug
flag that is unrelated to the one in the main application. It would be awesome if I could provide: __main__.debug=false webapp.lib.debug=true
as my command line and have both flags parsed correctly.
Do you think this is a worthwhile use case to support? It would be great for large applications where your libraries and applications are developed independently, and probably by different teams.
I could force namespaced flags by requiring each name to be defined as __name__ + '.' + name
, but it would be awesome if the library supported it out of the box.
Happy to help with a PR if needed.
Starting with Bazel 1.0 (September 2019), Python rules will need to be
loaded from the @rules_python repository. bazelbuild/bazel#9006
Traceback (most recent call last):
File "DeepSpeech.py", line 11, in
import absl.app
File "/home/sehar/venv/lib/python3.6/site-packages/absl/app.py", line 40, in
from absl import flags
File "/home/sehar/venv/lib/python3.6/site-packages/absl/flags/init.py", line 41, in
from absl.flags import _defines
File "/home/sehar/venv/lib/python3.6/site-packages/absl/flags/_defines.py", line 31, in
from absl.flags import _flagvalues
File "/home/sehar/venv/lib/python3.6/site-packages/absl/flags/_flagvalues.py", line 27, in
import logging
File "/home/sehar/DeepSpeech/logging.py", line 6, in
from util.flags import FLAGS
File "/home/sehar/DeepSpeech/util/flags.py", line 6, in
FLAGS = absl.flags.FLAGS
AttributeError: module 'absl' has no attribute 'flags'
please help me resolve this issue I am using tensorflow 1.14 gpu based
Hi, all I am using this file to open images files directory and save some features but getting Errors I search a lot but didn't find any solution ..
################################################################################################################################
################################################################################################################################
import os
import random
import numpy as np
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import pickle
os._warn_preinit_stderr = 0
BOTTLENECK_TENSOR_NAME = 'pool_3/_reshape:0'
BOTTLENECK_TENSOR_SIZE = 2048
MODEL_INPUT_WIDTH = 299
MODEL_INPUT_HEIGHT = 299
MODEL_INPUT_DEPTH = 3
JPEG_DATA_TENSOR_NAME = 'DecodeJpeg/contents:0'
RESIZED_INPUT_TENSOR_NAME = 'ResizeBilinear:0'
MAX_NUM_IMAGES_PER_CLASS = 2 ** 27 - 1 # ~134M
def create_inception_graph():
""""Creates a graph from saved GraphDef file and returns a Graph object.
Returns:
Graph holding the trained Inception network, and various tensors we'll be
manipulating.
"""
with tf.compat.v1.Session() as sess:
model_filename = os.path.join(
'imagenet', 'classify_image_graph_def.pb')
with tf.gfile.FastGFile("imagenet/classify_image_graph_def.pb", 'rb') as f:
graph_def = tf.compat.v1.GraphDef()
graph_def.ParseFromString(f.read())
bottleneck_tensor, jpeg_data_tensor, resized_input_tensor = (
tf.import_graph_def(graph_def, name='', return_elements=[
BOTTLENECK_TENSOR_NAME, JPEG_DATA_TENSOR_NAME,
RESIZED_INPUT_TENSOR_NAME]))
return sess.graph, bottleneck_tensor, jpeg_data_tensor, resized_input_tensor
def run_bottleneck_on_image(sess, image_data, image_data_tensor,
bottleneck_tensor):
bottleneck_values = sess.run(
bottleneck_tensor,
{image_data_tensor: image_data})
bottleneck_values = np.squeeze(bottleneck_values)
return bottleneck_values
boots_files = [
'uploads/dogs_and_cats/Boots/' + f
for
f
in
os.listdir('uploads/dogs_and_cats/Boots')
]
sandals_files = [
'uploads/dogs_and_cats/Sandals/' + f
for
f
in
os.listdir('uploads/dogs_and_cats/Sandals')
]
shoes_files = [
'uploads/dogs_and_cats/Shoes/' + f
for
f
in
os.listdir('uploads/dogs_and_cats/Shoes')
]
slippers_files = [
'uploads/dogs_and_cats/Slippers/' + f
for
f
in
os.listdir('uploads/dogs_and_cats/Slippers')
]
apparel_files = [
'uploads/dogs_and_cats/apparel/' + f
for
f
in
os.listdir('uploads/dogs_and_cats/apparel')
]
all_files = boots_files + shoes_files + slippers_files + sandals_files + apparel_files
random.shuffle(all_files)
num_images = 10000
neighbor_list = all_files[:num_images]
with open('neighbor_list_recom.pickle', 'wb') as f:
pickle.dump(neighbor_list, f)
print("saved neighbour list")
extracted_features = np.ndarray((num_images, 2048))
sess = tf.compat.v1.Session()
graph, bottleneck_tensor, jpeg_data_tensor, resized_image_tensor = (create_inception_graph())
for i, filename in enumerate(neighbor_list):
image_data = tf.io.gfile.GFile(filename, 'rb').read()
features = run_bottleneck_on_image(sess, image_data, jpeg_data_tensor, bottleneck_tensor)
extracted_features[i:i + 1] = features
if i % 250 == 0:
print(i)
np.savetxt("saved_features_recom.txt", extracted_features)
print("saved exttracted features")
"C:\Users\Muhammad Khalid\Anaconda3\python.exe" "C:/Users/Muhammad Khalid/Desktop/Recommendation systems using image similarity powered by deep learning/Deeplearning_Image_Similarity-master/server/image_vectorizer.py"
WARNING: Logging before flag parsing goes to stderr.
W0823 21:18:45.101209 20020 init.py:308] Limited tf.compat.v2.summary API due to missing TensorBoard installation.
saved neighbour list
W0823 21:18:45.223723 20020 deprecation.py:323] From C:/Users/Muhammad Khalid/Desktop/Recommendation systems using image similarity powered by deep learning/Deeplearning_Image_Similarity-master/server/image_vectorizer.py:39: FastGFile.init (from tensorflow.python.platform.gfile) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.gfile.GFile.
Traceback (most recent call last):
File "C:/Users/Muhammad Khalid/Desktop/Recommendation systems using image similarity powered by deep learning/Deeplearning_Image_Similarity-master/server/image_vectorizer.py", line 113, in
image_data = tf.io.gfile.GFile(filename, 'rb').read()
File "C:\Users\Muhammad Khalid\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 122, in read
self._preread_check()
File "C:\Users\Muhammad Khalid\Anaconda3\lib\site-packages\tensorflow\python\lib\io\file_io.py", line 84, in _preread_check
compat.as_bytes(self.__name), 1024 * 512)
tensorflow.python.framework.errors_impl.UnknownError: NewRandomAccessFile failed to Create/Open: uploads/dogs_and_cats/Sandals/Athletic : Access is denied.
; Input/output error
Process finished with exit code 1
Formatting as ISO 8601 would be nice
https://en.wikipedia.org/wiki/ISO_8601
It should be as simple as adjusting
abseil-py/absl/logging/__init__.py
Lines 659 to 670 in 9d73fda
return '%04d-%02d-%02dT%02d:%02d:%02d.%06d %c %5d %s:%d] %s' % (
created_tuple.tm_year,
created_tuple.tm_mon,
created_tuple.tm_mday,
created_tuple.tm_hour,
created_tuple.tm_min,
created_tuple.tm_sec,
created_microsecond,
severity,
_get_thread_id(),
record.filename,
record.lineno,
critical_prefix)
As of bazel 0.20, it appears that new_http_archive is deprecated in favor of http_archive from the http.bzl starlark extensions. The error message says its a drop in replacement, but this isn't quite true.
Here's the error message with a plain build with bazel 0.20
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 524bae95-f6bf-45f1-9dcc-e51a24c535e9
ERROR: /usr/local/google/home/rlevasseur/absl-gob/PyAbseilCommonLibraries/absl/flags/BUILD:5:1: no such package '@six_archive//': The native new_http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule. and referenced by '//absl/flags:flags'
ERROR: Analysis of target '//absl:app' failed; build aborted: no such package '@six_archive//': The native new_http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 2.878s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 26 targets configured)
Fetching @six_archive; fetching
Switching to http.bzl and http_archive gives a different error:
$ bazel build absl:app
INFO: Invocation ID: 97b201ea-ebd5-4d02-8f8f-dae99b4b2458
INFO: Build options have changed, discarding analysis cache.
ERROR: /usr/local/google/home/rlevasseur/absl-gob/PyAbseilCommonLibraries/absl/flags/BUILD:5:1: no such package '@six_archive//': Traceback (most recent call last):
File "/usr/local/google/home/rlevasseur/.cache/bazel/_bazel_rlevasseur/beec95bc32223bdd257f4689504738ee/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
workspace_and_buildfile(ctx)
File "/usr/local/google/home/rlevasseur/.cache/bazel/_bazel_rlevasseur/beec95bc32223bdd257f4689504738ee/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 60, in workspace_and_buildfile
ctx.symlink(ctx.attr.build_file, "BUILD.bazel")
Not a regular file: /usr/local/google/home/rlevasseur/absl-gob/PyAbseilCommonLibraries/external/third_party/six.BUILD and referenced by '//absl/flags:flags'
ERROR: Analysis of target '//absl:app' failed; build aborted: no such package '@six_archive//': Traceback (most recent call last):
File "/usr/local/google/home/rlevasseur/.cache/bazel/_bazel_rlevasseur/beec95bc32223bdd257f4689504738ee/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
workspace_and_buildfile(ctx)
File "/usr/local/google/home/rlevasseur/.cache/bazel/_bazel_rlevasseur/beec95bc32223bdd257f4689504738ee/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 60, in workspace_and_buildfile
ctx.symlink(ctx.attr.build_file, "BUILD.bazel")
Not a regular file: /usr/local/google/home/rlevasseur/absl-gob/PyAbseilCommonLibraries/external/third_party/six.BUILD
INFO: Elapsed time: 0.371s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 38 targets configured)
Fetching @six_archive; fetching
Searching around, this looks to be related to maybe this: bazelbuild/bazel#6225
Basically, its not quite a drop-in replacement.
Unfortunately, I wasn't able to get it to work with e.g. build_file="@//:third_party/six.BUILD
(as mentioned in the above issue), I think because the "third_party" directory doesn't have a BUILD file (the error it gives refers to being unable to find the bazel package). I can get it to work using build_file_content, though, so I might just use that instead.
python 3.6.7, install tensorflow, here is log:
Collecting absl-py>=0.1.6 (from tensorflow->-r pip_requirenents.txt (line 21)) Using cached https://files.pythonhosted.org/packages/fa/ef/1fa0376563b1e0495301ada8e881d88b7ebfda433f6b31f44447fe6ef795/absl-py-0.6.0.tar.gz Complete output from command python setup.py egg_info: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) error in absl-py setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected version spec in enum34; python_version<='3.4' at ; python_version<='3.4'
In ABSLLogger.findCaller(), the documentation says:
stack_info: bool, when using Python 3 and True, include the stack trace as the fourth item returned instead of None.
https://github.com/abseil/abseil-py/blob/master/absl/logging/__init__.py#L885
First off, that's a bit confusing. It makes it sounds like it'll return None if you're using PY2, but it actually returns 3-tuple, making PY2-3 compatibility messy.
The bigger question though is why? I'm not sure what part of that code isn't compatible. Python 2 has StringIO and traceback.print_stack(), so why is stack information only done in PY3?
Please include the LICENSE into the sdist uploaded to PyPI.
Also, third_party is missing from the sdist, which probably means at least the tests will not work from the sdist.
When I try to run the code, e.g., PYTHONPATH=. python -B ai_safety_gridworlds/environments/safe_interruptibility.py, the following error occurs even though I follow the same setting in README, i.e., python=2.7.13 with enum34 and numpy=1.13.3. Can I get a solution for this error?
Thanks in advanced.
I can create this file:
from absl import logging
logging._warn_preinit_stderr = 0
logging.warning('Worrying Stuff')
but it outputs in black and white. Is color an option?
I observed that the package is using sdist
. My question is why not use wheel
? Considering all the advantages provided by wheel
.
Please find attached my complete build log including all details !
absl-py_0.7.1-1_amd64.build.txt
Regards, Adam.
I tried to run below code provided in the repository but I get DuplicateFlagError, can you please assist.
from future import absolute_import
from future import division
from future import print_function
import sys
from absl import app
from absl import flags
from absl import logging
FLAGS = flags.FLAGS
flags.DEFINE_string('echo', None, 'Text to echo.')
def main(argv):
del argv # Unused.
print('Running under Python {0[0]}.{0[1]}.{0[2]}'.format(sys.version_info),
file=sys.stderr)
logging.info('echo is %s.', FLAGS.echo)
if name == 'main':
app.run(main)
DuplicateFlagError Traceback (most recent call last)
in
11 FLAGS = flags.FLAGS
12
---> 13 flags.DEFINE_string('echo', None, 'Text to echo.')
14
15
~\Anaconda3\envs\venv\lib\site-packages\absl\flags_defines.py in DEFINE_string(name, default, help, flag_values, **args)
239 parser = _argument_parser.ArgumentParser()
240 serializer = _argument_parser.ArgumentSerializer()
--> 241 DEFINE(parser, name, default, help, flag_values, serializer, **args)
242
243
~\Anaconda3\envs\venv\lib\site-packages\absl\flags_defines.py in DEFINE(parser, name, default, help, flag_values, serializer, module_name, **args)
80 """
81 DEFINE_flag(_flag.Flag(parser, serializer, name, default, help, **args),
---> 82 flag_values, module_name)
83
84
~\Anaconda3\envs\venv\lib\site-packages\absl\flags_defines.py in DEFINE_flag(flag, flag_values, module_name)
102 # Copying the reference to flag_values prevents pychecker warnings.
103 fv = flag_values
--> 104 fv[flag.name] = flag
105 # Tell flag_values who's defining the flag.
106 if module_name:
~\Anaconda3\envs\venv\lib\site-packages\absl\flags_flagvalues.py in setitem(self, name, flag)
428 # module is simply being imported a subsequent time.
429 return
--> 430 raise _exceptions.DuplicateFlagError.from_flag(name, self)
431 short_name = flag.short_name
432 # If a new flag overrides an old one, we need to cleanup the old flag's
DuplicateFlagError: The flag 'echo' is defined twice. First from C:\Users\lenovo\Anaconda3\envs\venv\lib\site-packages\ipykernel_launcher.py, Second from C:\Users\lenovo\Anaconda3\envs\venv\lib\site-packages\ipykernel_launcher.py. Description from first occurrence: Text to echo.
I have added abseil-py to my project's bazel WORKSPACE like so:
http_archive(
name = "io_abseil_py",
strip_prefix = "abseil-py-master",
url = "https://github.com/abseil/abseil-py/archive/master.zip",
)
I attempted to add absl:app in my build file as a dependency for a trivial python script like so:
py_binary(
name = "abseil_test",
srcs = ["abseil_test_script.py"],
deps = ["@io_abseil_py//absl:app"],
)
The build fails with this message:
[mrdmnd@maximumkappa policygen]$ bazel clean
(05:27:48) INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
[mrdmnd@maximumkappa policygen]$ bazel build learn:abseil_test
(05:27:52) INFO: Current date is 2018-02-27
(05:27:53) ERROR: /home/mrdmnd/.cache/bazel/_bazel_mrdmnd/c741fceeeed6ca1106cd8d8a1f1c8dbf/external/io_abseil_py/absl/flags/BUILD:5:1: no such package '@six_archive//': The repository could not be resolved and referenced by '@io_abseil_py//absl/flags:flags'
(05:27:53) ERROR: Analysis of target '//learn:abseil_test' failed; build aborted: no such package '@six_archive//': The repository could not be resolved
(05:27:53) INFO: Elapsed time: 0.993s
(05:27:53) FAILED: Build did NOT complete successfully (17 packages loaded)
[mrdmnd@maximumkappa policygen]$
I suspect that there is an issue with the provided @six_archive in your WORKSPACE file.
Alternatively, and possibly more likely, I may have made a trivial mistake somewhere.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.