AnandInguva commented on PR #24599:
URL: https://github.com/apache/beam/pull/24599#issuecomment-1343360385

   Local tested error in Python 3.8 MacOS env:
   
   ```
   Traceback (most recent call last):
     File "/Users/anandinguva/.pyenv/versions/3.8.12/lib/python3.8/runpy.py", 
line 185, in _run_module_as_main
       mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
     File "/Users/anandinguva/.pyenv/versions/3.8.12/lib/python3.8/runpy.py", 
line 111, in _get_module_details
       __import__(pkg_name)
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/__init__.py", line 
92, in <module>
       from apache_beam import coders
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/coders/__init__.py", 
line 17, in <module>
       from apache_beam.coders.coders import *
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/coders/coders.py", 
line 59, in <module>
       from apache_beam.coders import coder_impl
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/coders/coder_impl.py",
 line 63, in <module>
       from apache_beam.typehints.schemas import named_tuple_from_schema
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/typehints/__init__.py",
 line 38, in <module>
       from apache_beam.typehints.arrow_type_compatibility import *
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/typehints/arrow_type_compatibility.py",
 line 32, in <module>
       from apache_beam.portability.api import schema_pb2
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/__init__.py",
 line 21, in <module>
       from .org.apache.beam.model.pipeline import v1
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/__init__.py",
 line 17, in <module>
       from . import external_transforms_pb2
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/external_transforms_pb2.py",
 line 14, in <module>
       from . import schema_pb2 as 
org_dot_apache_dot_beam_dot_model_dot_pipeline_dot_v1_dot_schema__pb2
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/schema_pb2.py",
 line 15, in <module>
       from . import beam_runner_api_pb2 as 
org_dot_apache_dot_beam_dot_model_dot_pipeline_dot_v1_dot_beam__runner__api__pb2
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/beam_runner_api_pb2.py",
 line 14, in <module>
       from . import endpoints_pb2 as 
org_dot_apache_dot_beam_dot_model_dot_pipeline_dot_v1_dot_endpoints__pb2
     File 
"/Users/anandinguva/projects/beam/sdks/python/apache_beam/portability/api/org/apache/beam/model/pipeline/v1/endpoints_pb2.py",
 line 36, in <module>
       _descriptor.FieldDescriptor(
     File 
"/Users/anandinguva/.pyenv/versions/deps_3.8.12/lib/python3.8/site-packages/google/protobuf/descriptor.py",
 line 560, in __new__
       _message.Message._CheckCalledFromGeneratedFile()
   TypeError: Descriptors cannot not be created directly.
   If this call came from a _pb2.py file, your generated code is out of date 
and must be regenerated with protoc >= 3.19.0.
   If you cannot immediately regenerate your protos, some other possible 
workarounds are:
    1. Downgrade the protobuf package to 3.20.x or lower.
    2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use 
pure-Python parsing and will be much slower).
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to