tensorflow / tensorflow/metadata
Missing files in 0.12.0 release (ImportError: cannot import name schema_pb2)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 110
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
I believe there has been some issue with the packaging because I am getting this error when running a pipeline with tf.Transform and getting the following error that after some investigation led me to tensorflow-metadata
File "/usr/local/lib/python2.7/dist-packages/tensorflow_transform/init.py", line 21, in
from tensorflow_transform.mappers import *
File "/usr/local/lib/python2.7/dist-packages/tensorflow_transform/mappers.py", line 62, in
from tensorflow_transform import schema_inference
File "/usr/local/lib/python2.7/dist-packages/tensorflow_transform/schema_inference.py", line 30, in
from tensorflow_transform.tf_metadata import dataset_schema
File "/usr/local/lib/python2.7/dist-packages/tensorflow_transform/tf_metadata/dataset_schema.py", line 23, in
from tensorflow_transform.tf_metadata import schema_utils
File "/usr/local/lib/python2.7/dist-packages/tensorflow_transform/tf_metadata/schema_utils.py", line 28, in
from tensorflow_metadata.proto.v0 import schema_pb2
ImportError: cannot import name schema_pb2
I checked the files at https://pypi.org/project/tensorflow-metadata/#files and they are indeed missing protos that should be there as per the aforementioned ImportError
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the tensorflow-metadata 0.12.0 files on PyPI and trace the failing import from tensorflow_transform/tf_metadata/schema_utils.py. Confirm that the release includes the generated schema_pb2 module and that importing it succeeds; the issue is done when the published package no longer raises this ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, machine-learning, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100