Closed cweill closed 4 years ago
I'd like to use the Python problem_statement.proto stubs, but they are not currently included in 0.22.2:
problem_statement.proto
0.22.2
$ pip install tensorflow-metadata==0.22.2 Collecting tensorflow-metadata==0.22.2 Using cached tensorflow_metadata-0.22.2-py2.py3-none-any.whl (32 kB) Requirement already satisfied: protobuf<4,>=3.7 in ~/.local/lib/python3.7/site-packages (from tensorflow-metadata==0.22.2) (3.10.0) Requirement already satisfied: googleapis-common-protos in ~/.local/lib/python3.7/site-packages (from tensorflow-metadata==0.22.2) (1.52.0) Requirement already satisfied: six>=1.9 in~/.local/lib/python3.7/site-packages (from protobuf<4,>=3.7->tensorflow-metadata==0.22.2) (1.13.0) Requirement already satisfied: setuptools in ~/anaconda3/lib/python3.7/site-packages (from protobuf<4,>=3.7->tensorflow-metadata==0.22.2) (45.2.0.pos t20200210) Installing collected packages: tensorflow-metadata Attempting uninstall: tensorflow-metadata Found existing installation: tensorflow-metadata 0.22.0 Uninstalling tensorflow-metadata-0.22.0: Successfully uninstalled tensorflow-metadata-0.22.0 Successfully installed tensorflow-metadata-0.22.2 $ python Python 3.7.6 (default, Jan 8 2020, 19:59:22) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> from tensorflow_metadata.proto.v0 import problem_statement_pb2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: cannot import name 'problem_statement_pb2' from 'tensorflow_metadata.proto.v0' (~/anaconda3/lib/python3.7/site-packages/tensorflow_metadata/proto/v0/__init__.py) >>> from tensorflow_metadata.proto.v0 import statistics_pb2 >>> from tensorflow_metadata.proto.v0 import schema_pb2 >>>
I'd like to use the Python
problem_statement.proto
stubs, but they are not currently included in0.22.2
:Repro