Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing files in 0.12.0 release (ImportError: cannot import name schema_pb2) #8

Open
wileeam opened this issue Feb 21, 2019 · 6 comments

Comments

@wileeam
Copy link

wileeam commented Feb 21, 2019

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

@paulgc
Copy link
Member

paulgc commented Feb 21, 2019

There seems to be a packaging issue in the latest version. Can you pin the tensorflow-metadata version to be 0.9.0 for now? We will do a minor release to fix this.

@wileeam
Copy link
Author

wileeam commented Feb 21, 2019

Yes, pinning to the previous version solves the problem for now until the current package is pulled and/or fixed.

@paulgc
Copy link
Member

paulgc commented Feb 21, 2019

A new version of tensorflow-metadata (0.12.1) with the fix has been released.

@brianmartin
Copy link

Hey @paulgc, appreciate the quick fix.

It looks like 0.12.1 release missed a few things though. There is no release tag and also the __version__ in setup.py is still 0.12.0.

__version__ = '0.12.0'

@paulgc
Copy link
Member

paulgc commented Feb 22, 2019

@mzinkevi @solma

@odidev
Copy link

odidev commented Mar 9, 2021

This issue seems still reproducible on x86_64 and arm64 both platforms while testing with the "pytest" command. Please share if you have any plan to fix this in some upcoming releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants