[
https://issues.apache.org/jira/browse/BEAM-10552?focusedWorklogId=461807&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-461807
]
ASF GitHub Bot logged work on BEAM-10552:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 22/Jul/20 00:39
Start Date: 22/Jul/20 00:39
Worklog Time Spent: 10m
Work Description: udim opened a new pull request #12334:
URL: https://github.com/apache/beam/pull/12334
Fixes: `AttributeError: module 'google.protobuf.descriptor' has no
attribute '_internal_create_key'` error.
------------------------
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [ ] [**Choose
reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and
mention them in a comment (`R: @username`).
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in
ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA
issue, if applicable. This will automatically link the pull request to the
issue.
- [ ] Update `CHANGES.md` with noteworthy changes.
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
See the [Contributor Guide](https://beam.apache.org/contribute) for more
tips on [how to make review process
smoother](https://beam.apache.org/contribute/#make-reviewers-job-easier).
Post-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
Lang | SDK | Dataflow | Flink | Samza | Spark | Twister2
--- | --- | --- | --- | --- | --- | ---
Go | [](https://ci-beam.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/)
| --- | [](https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Flink/lastCompletedBuild/)
| --- | [](https://ci-beam.apache.org/job/beam_PostCommit_Go_VR_Spark/lastCompletedBuild/)
| ---
Java | [](https://ci-beam.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Java11/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Java11/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Java_PVR_Spark_Batch/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Java_ValidatesRunner_SparkStructuredStreaming/lastCompletedBuild/)
| [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Twister2/lastCompletedBuild/)
Python | [](https://ci-beam.apache.org/job/beam_PostCommit_Python2/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Python35/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Python36/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Python37/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Python38/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Py_VR_Dataflow_V2/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PreCommit_Python2_PVR_Flink_Cron/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PostCommit_Python35_VR_Flink/lastCompletedBuild/)
| --- | [](https://ci-beam.apache.org/job/beam_PostCommit_Python_VR_Spark/lastCompletedBuild/)
| ---
XLang | [](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Direct/lastCompletedBuild/)
| --- | [](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink/lastCompletedBuild/)
| --- | [](https://ci-beam.apache.org/job/beam_PostCommit_XVR_Spark/lastCompletedBuild/)
| ---
Pre-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
--- |Java | Python | Go | Website
--- | --- | --- | --- | ---
Non-portable | [](https://ci-beam.apache.org/job/beam_PreCommit_Java_Cron/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/lastCompletedBuild/)<br>[](https://ci-beam.apache.org/job/beam_PreCommit_PythonLint_Cron/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PreCommit_Go_Cron/lastCompletedBuild/)
| [](https://ci-beam.apache.org/job/beam_PreCommit_Website_Cron/lastCompletedBuild/)
Portable | --- | [](https://ci-beam.apache.org/job/beam_PreCommit_Portable_Python_Cron/lastCompletedBuild/)
| --- | ---
See
[.test-infra/jenkins/README](https://github.com/apache/beam/blob/master/.test-infra/jenkins/README.md)
for trigger phrase, status and link of all Jenkins jobs.
----------------------------------------------------------------
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: 461807)
Remaining Estimate: 0h
Time Spent: 10m
> 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: 10m
> 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)