ragyibrahim commented on PR #25325:
URL: https://github.com/apache/beam/pull/25325#issuecomment-1423492870

   hi, @Abacn, unfortunately, got the same error still. 
   
   I've tried running the `gen_protos.py` file and I get the below error 
message (FYI im running an M2 mac)
   
   ```bash
   org/apache/beam/model/interactive/v1/beam_interactive_api.proto:36:1: 
warning: Import google/protobuf/timestamp.proto is unused.
   Writing mypy to org/apache/beam/model/pipeline/v1/external_transforms_pb2.pyi
   Writing mypy to org/apache/beam/model/pipeline/v1/schema_pb2.pyi
   Writing mypy to org/apache/beam/model/pipeline/v1/metrics_pb2.pyi
   Writing mypy to org/apache/beam/model/pipeline/v1/endpoints_pb2.pyi
   Writing mypy to org/apache/beam/model/pipeline/v1/beam_runner_api_pb2.pyi
   Writing mypy to org/apache/beam/model/pipeline/v1/standard_window_fns_pb2.pyi
   Writing mypy to 
org/apache/beam/model/job_management/v1/beam_artifact_api_pb2.pyi
   Writing mypy to 
org/apache/beam/model/job_management/v1/beam_expansion_api_pb2.pyi
   Writing mypy to org/apache/beam/model/job_management/v1/beam_job_api_pb2.pyi
   Writing mypy to org/apache/beam/model/fn_execution/v1/beam_fn_api_pb2.pyi
   Writing mypy to 
org/apache/beam/model/fn_execution/v1/beam_provision_api_pb2.pyi
   Writing mypy to 
org/apache/beam/model/interactive/v1/beam_interactive_api_pb2.pyi
   Traceback (most recent call last):
     File "/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/gen_protos.py", 
line 561, in <module>
       generate_proto_files(force=True)
     File "/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/gen_protos.py", 
line 555, in generate_proto_files
       generate_urn_files(proto_package, PYTHON_OUTPUT_PATH)
     File "/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/gen_protos.py", 
line 126, in generate_urn_files
       import google.protobuf.pyext._message as pyext_message
   ImportError: 
dlopen(/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/.venv/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so,
 0x0002): tried: 
'/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/.venv/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so'
 (mach-o file, but is an incompatible architecture (have 'x86_64', need 
'arm64')), 
'/System/Volumes/Preboot/Cryptexes/OS/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/.venv/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so'
 (no such file), 
'/Users/ragy/Documents/RNA/GitHub/beam/sdks/python/.venv/lib/python3.10/site-packages/google/protobuf/pyext/_message.cpython-310-darwin.so'
 (mach-o file, but is an incompatible architecture (have 'x86_64', need 
'arm64'))
   ```


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