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

Unittest protobuf wrappers not installed under Python 3.4: #1352

Closed
tseaver opened this issue Mar 25, 2016 · 2 comments
Closed

Unittest protobuf wrappers not installed under Python 3.4: #1352

tseaver opened this issue Mar 25, 2016 · 2 comments

Comments

@tseaver
Copy link
Contributor

tseaver commented Mar 25, 2016

This is a regression from protobuf-3.0.0b2.

$ ls -laF .tox/py34/lib/python3.4/site-packages/ | grep proto
drwxrwxr-x  2 tseaver tseaver   4096 Mar 25 12:58 googleapis_common_protos-1.1.0.dist-info/
-rw-rw-r--  1 tseaver tseaver    687 Mar 25 12:58 googleapis_common_protos-1.1.0-py3.4-nspkg.pth
drwxrwxr-x  2 tseaver tseaver   4096 Mar 25 12:58 protobuf-3.0.0b2.post2.dist-info/
-rw-rw-r--  1 tseaver tseaver    305 Mar 25 12:58 protobuf-3.0.0b2.post2-py3.4-nspkg.pth

$ ls .tox/py34/lib/python3.4/site-packages/google/protobuf/*.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/any_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/api_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/descriptor_database.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/descriptor_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/descriptor_pool.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/descriptor.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/duration_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/empty_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/field_mask_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/__init__.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/json_format.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/message_factory.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/message.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/proto_builder.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/reflection.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/service.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/service_reflection.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/source_context_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/struct_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/symbol_database.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/text_encoding.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/text_format.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/timestamp_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/type_pb2.py
.tox/py34/lib/python3.4/site-packages/google/protobuf/wrappers_pb2.py

They are present when installed under Python 2.7:

$ ls -laF .tox/py27/lib/python2.7/site-packages/ | grep proto
drwxrwxr-x  2 tseaver tseaver   4096 Mar 25 13:08 googleapis_common_protos-1.1.0.dist-info/
-rw-rw-r--  1 tseaver tseaver    687 Mar 25 13:08 googleapis_common_protos-1.1.0-py2.7-nspkg.pth
drwxrwxr-x  2 tseaver tseaver   4096 Mar 25 13:08 protobuf-3.0.0b2.post2.dist-info/
-rw-rw-r--  1 tseaver tseaver    305 Mar 25 13:08 protobuf-3.0.0b2.post2-py2.7-nspkg.pth

$ ls .tox/py27/lib/python2.7/site-packages/google/protobuf/*.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/any_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/api_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/descriptor_database.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/descriptor_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/descriptor_pool.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/descriptor.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/duration_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/empty_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/field_mask_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/__init__.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/json_format.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/map_unittest_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/message_factory.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/message.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/proto_builder.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/reflection.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/service.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/service_reflection.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/source_context_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/struct_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/symbol_database.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/text_encoding.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/text_format.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/timestamp_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/type_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_arena_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_custom_options_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_import_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_import_public_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_mset_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_mset_wire_format_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_no_arena_import_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_no_arena_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_no_generic_services_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/unittest_proto3_arena_pb2.py
.tox/py27/lib/python2.7/site-packages/google/protobuf/wrappers_pb2.py
@haberman
Copy link
Member

I'm not sure what specifically is causing this difference. But I don't consider the unittest protos to be public interfaces. Can you copy the protos into your own project if you need them?

@tseaver
Copy link
Contributor Author

tseaver commented Mar 25, 2016

@haberman I've worked around the issue in googleapis/google-cloud-python@2de3e0a .

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

No branches or pull requests

4 participants