[
https://issues.apache.org/jira/browse/BEAM-10552?focusedWorklogId=464040&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-464040
]
ASF GitHub Bot logged work on BEAM-10552:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 29/Jul/20 07:56
Start Date: 29/Jul/20 07:56
Worklog Time Spent: 10m
Work Description: udim merged pull request #12334:
URL: https://github.com/apache/beam/pull/12334
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 464040)
Time Spent: 50m (was: 40m)
> Python protobuf dep out of date
> -------------------------------
>
> Key: BEAM-10552
> URL: https://issues.apache.org/jira/browse/BEAM-10552
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Udi Meiri
> Assignee: Udi Meiri
> Priority: P2
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Error:
> {code}
> Traceback (most recent call last):
> File "setup.py", line 339, in <module>
> 'mypy': generate_protos_first(mypy),
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/envs/beam-py3.6.9/lib/python3.6/site-packages/setuptools/__init__.py",
> line 145, in setup
> return distutils.core.setup(**attrs)
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/lib/python3.6/distutils/core.py",
> line 148, in setup
> dist.run_commands()
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/lib/python3.6/distutils/dist.py",
> line 955, in run_commands
> self.run_command(cmd)
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/lib/python3.6/distutils/dist.py",
> line 974, in run_command
> cmd_obj.run()
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/envs/beam-py3.6.9/lib/python3.6/site-packages/setuptools/command/sdist.py",
> line 44, in run
> self.run_command('egg_info')
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/lib/python3.6/distutils/cmd.py",
> line 313, in run_command
> self.distribution.run_command(command)
> File
> "/usr/local/google/home/ehudm/.pyenv/versions/3.6.9/lib/python3.6/distutils/dist.py",
> line 974, in run_command
> cmd_obj.run()
> File "setup.py", line 253, in run
> gen_protos.generate_proto_files()
> File "/usr/local/google/home/ehudm/src/beam/sdks/python/gen_protos.py",
> line 345, in generate_proto_files
> generate_urn_files(log, out_dir)
> File "/usr/local/google/home/ehudm/src/beam/sdks/python/gen_protos.py",
> line 188, in generate_urn_files
> beam_runner_api_pb2 = _import('beam_runner_api_pb2')
> File "/usr/local/google/home/ehudm/src/beam/sdks/python/gen_protos.py",
> line 185, in _import
> return __import__('api.%s' % m, fromlist=[None])
> File
> "/usr/local/google/home/ehudm/src/beam/sdks/python/apache_beam/portability/api/beam_runner_api_pb2.py",
> line 15, in <module>
> from . import endpoints_pb2 as endpoints__pb2
> File
> "/usr/local/google/home/ehudm/src/beam/sdks/python/apache_beam/portability/api/endpoints_pb2.py",
> line 21, in <module>
> create_key=_descriptor._internal_create_key,
> AttributeError: module 'google.protobuf.descriptor' has no attribute
> '_internal_create_key'
> {code}
> {code}
> $ pip list|grep protobuf
> mypy-protobuf 1.18
> protobuf 3.11.2
> {code}
> Upgrading protobuf to 3.12.2 (and doing a git clean -fdX) solved the issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)