Shawn

Results 44 comments of Shawn

This other project has the "extend" block which seems like where this would come into play: https://github.com/jonthornton/MTAPI/blob/master/mtaproto/nyct-subway.proto#L32 But this is 5 years ago.

One potential script to generate this: ``` set -euo pipefail curl https://api.mta.info/nyct-subway.proto.txt -o nyct-subway.proto curl https://developers.google.com/static/transit/gtfs-realtime/gtfs-realtime.proto -o gtfs-realtime.proto protoc -I=. --python_out=. --mypy_out=. nyct-subway.proto gtfs-realtime.proto ``` Requires protoc, which is available...

When running 1.3.0 locally, it appears to be fine: ``` > v /Users/shawn/.pyenv/versions/3.11.3/lib/python3.11/site-packages/nyct_gtfs nyct_gtfs/ nyct_gtfs-1.3.0.dist-info/ ``` Will check pinning to 1.3.0 and 1.3.1 to see.

So locally, I have an M2 Max MacBook Pro and when I use 1.3.0, it works: ``` > v package/nyct_gtfs nyct_gtfs/ nyct_gtfs-1.3.0.dist-info/ ``` But on lambda it fails.

I believe I have narrowed it down to this: `if _descriptor._USE_C_DESCRIPTORS == False:` This is True locally, so it does not attempt to do this. But on Lambda it's false,...

The logic in google/protobuf/descriptor.py: ``` _USE_C_DESCRIPTORS = False if api_implementation.Type() != 'python': # pylint: disable=protected-access _message = api_implementation._c_module # TODO: Remove this import after fix api_implementation if _message is None:...

Looks like I might be able to force it by defining `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION` as `cpp` in the lambda env. EDIT: I tried all 3 values, cpp (failed immediately), upb (failed the...

Maybe relevant: https://github.com/protocolbuffers/protobuf/issues/13743

Got it - the answer is that because RegisterExtension was deprecated, when they dropped the 5 series of protobuf last month, they removed it. https://pypi.org/project/protobuf/#history I forced my requirements to...

I know this is very late, but I'm interested in using a single-file 0-dependency version of this library (which I will happily contribute back). One of the only issues preventing...