This is an automated email from the ASF dual-hosted git repository.
tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 9b915fd18f6 Remove logging in tfrecordio.py (#37794)
9b915fd18f6 is described below
commit 9b915fd18f6a2708fd9fd4827bb4a32f89826bc9
Author: tvalentyn <[email protected]>
AuthorDate: Mon Mar 9 10:31:55 2026 -0700
Remove logging in tfrecordio.py (#37794)
This message is printed on every import of apache-beam, which is
unnecessarily verbose.
---
sdks/python/apache_beam/io/tfrecordio.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sdks/python/apache_beam/io/tfrecordio.py
b/sdks/python/apache_beam/io/tfrecordio.py
index 073cbc1d211..faa925d2f1e 100644
--- a/sdks/python/apache_beam/io/tfrecordio.py
+++ b/sdks/python/apache_beam/io/tfrecordio.py
@@ -36,11 +36,6 @@ from apache_beam.transforms import PTransform
try:
import crcmod
except ImportError:
- logging.warning(
- 'crcmod package not found. This package is required if '
- 'python-snappy or google-crc32c are not installed. To ensure crcmod is '
- 'installed, install the tfrecord extra: pip install '
- 'apache-beam[tfrecord]')
crcmod = None
__all__ = ['ReadFromTFRecord', 'ReadAllFromTFRecord', 'WriteToTFRecord']