I have checked this and I think that this is not a problem with my unbundling patches. It seems that you’re trying to import feature with is available since protobuf v27, while we still have v25 in oe. I don’t know where you have your instrument_server.py script from. But maybe you could send patches to upgrade grpcio and protobuf if you need newer version of them…
Peter From: Marko, Peter (FT D EU SK BFS1) Sent: Tuesday, February 25, 2025 9:23 To: unit exe <unitex...@gmail.com> Cc: openembedded-core@lists.openembedded.org Subject: RE: [OE-core] Broken python3-grpcio on main branch I guess the unbundling experiment didn’t work out very well. I’ll send a revert in the evening. Peter From: unit exe <unitex...@gmail.com<mailto:unitex...@gmail.com>> Sent: Tuesday, February 25, 2025 2:18 To: Marko, Peter (FT D EU SK BFS1) <peter.ma...@siemens.com<mailto:peter.ma...@siemens.com>> Cc: openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org> Subject: Re: [OE-core] Broken python3-grpcio on main branch With the revert I have confirmed that this error goes away. However, I am experiencing a new error when I attempt to launch a simple gRPC server. Not sure how related this is. root@radxa-zero-3e:~# python3 /usr/bin/instrument_server.py Traceback (most recent call last): File "/usr/bin/instrument_server.py", line 4, in <module> import instrument_pb2 File "/usr/bin/instrument_pb2.py", line 9, in <module> from google.protobuf import runtime_version as _runtime_version ImportError: cannot import name 'runtime_version' from 'google.protobuf' (/usr/lib/python3.13/site-packages/google/protobuf/__init__.py) On the styhead branch, I get no such error and the gRPC server works fine. On Sun, Feb 23, 2025 at 5:05 AM Marko, Peter <peter.ma...@siemens.com<mailto:peter.ma...@siemens.com>> wrote: I have sent a revert of problematic commit. Sorry for this trouble. Peter From: openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org> <openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org>> On Behalf Of unit exe via lists.openembedded.org<http://lists.openembedded.org> Sent: Sunday, February 23, 2025 0:05 To: openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org> Subject: [OE-core] Broken python3-grpcio on main branch Hello, I am building with the main branch of meta-openembedded commit 29897344f7c9846e00856f46c4b3b47117a69499 and trying to import the grpc python module. This results in this error: root@radxa-zero-3e:~# python3 Python 3.13.2 (main, Feb 4 2025, 14:51:09) [GCC 14.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import grpc Traceback (most recent call last): File "<python-input-0>", line 1, in <module> import grpc File "/usr/lib/python3.13/site-packages/grpc/__init__.py", line 22, in <module> from grpc import _compression File "/usr/lib/python3.13/site-packages/grpc/_compression.py", line 20, in <module> from grpc._cython import cygrpc ImportError: /usr/lib/python3.13/site-packages/grpc/_cython/cygrpc.cpython-313-aarch64-linux-gnu.so<http://cygrpc.cpython-313-aarch64-linux-gnu.so>: undefined symbol: _ZN4absl12lts_2024072212log_internal17kUnsignedCharNullE I see this error on rpi5 too. If I build with the styhead branch (uses grpcio 1.66 instead of 1.70) I get no such error. Any suggestions on how to fix this or debug the issue further?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#212045): https://lists.openembedded.org/g/openembedded-core/message/212045 Mute This Topic: https://lists.openembedded.org/mt/111333561/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-