-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: Deprecation warnings for _descriptor #71
Comments
Thanks @jsa34ito. I hope to update the Python bindings soon and hopefully this will fix this issue. I'll leave it open so you can provide feedback on the next release. |
It looks like this deprecation warning was just upgraded to a hard error, and the Python bindings here don't work anymore on fresh builds. The protobuf PyPI package was updated a few hours ago. The build error I get is:
The version of the Python proto library in |
I tried to upgrade the bindings using the most recent version of the proto compiler and the Python library, but was unable to get the tests to pass due to this error:
I'm very confused because I just ran As a quick alternative, I created a PR that just pins the Python protobuf library at a 3.X.X version. |
Update: the 4.21.0 protobuf was yanked from PyPI because many projects has similar issues to the one here. This is the protobuf GitHub issue. One of the last comments say there will be a roll forward, so the issue here will return soon. I think the safest option would be to:
|
Version: 0.0.6
Python version: 3.9
OS: Fedora 33
Issue:
GTFS realtime bindings for Python are reporting a deprecation warning for EnumDescriptor(), EnumValueDescriptor(), FileDescriptor(), FieldDescriptor(), Descriptor()
Example:
The text was updated successfully, but these errors were encountered: