-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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 #5865
Comments
Thanks for raise it up. Will change the import in internal code to something like: try: Expect to see the fix in future release. |
@anandolee can I make a PR for this? If you're not working on this... |
The fix is already submitted in internal. Thanks to willing provide PR |
I got the following warnings with protobuf 3.7.0, the second of which is covered above. In case it's not been done already, please could you also fix the first one? Thank you!
Edit: also mentioned in #5335 (comment). |
I'm running 3.8.0, upgraded my generated python code etc. - and I'm still seeing this
Do I need to upgrade something else also? |
I think #6272 should fix this. |
Python 3.8 is now in beta, with the final release due in October. I recommend also testing protobuf against Python 3.8. |
|
Python 3.8 release candidate 1 is available: https://www.python.org/download/pre-releases |
And Python 3.8.0 final is due out on Monday, 2019-10-14. I've not checked them all, but looks fixed and released in latest Protocol Buffers v3.9.2: protobuf/python/google/protobuf/internal/well_known_types.py Lines 48 to 53 in a32c2d0
|
Actually python/google/protobuf/descriptor.py when generated still contains such a import that pytest will still raise as a warning on. |
Python 3.8 was released yesterday https://www.python.org/downloads/release/python-380/ |
A fix is pending, why isn't it being merged? #6272 |
I'm also looking for a fix to .venv\lib\site-packages\google\protobuf\descriptor.py:47
c:\Users\masma\source\repos\orsteddcsmarketsanalytics\apps\portfolio_analytics\.venv\lib\site-packages\google\protobuf\descriptor.py:47: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from google.protobuf.pyext import _message Im running v. 3.10.0 on python 3.7.4 $ pip show protobuf
Name: protobuf
Version: 3.10.0
Summary: Protocol Buffers
Home-page: https://developers.google.com/protocol-buffers/
Author: None
Author-email: None
License: 3-Clause BSD License
Location: c:\users\masma\source\repos\orsteddcsmarketsanalytics\apps\portfolio_analytics\.venv\lib\site-packages
Requires: six, setuptools
Required-by: streamlit |
https://bugs.python.org/issue37324 has been fixed so it's gone away from Python 3.9. Python 3.9 development has started, with the first alpha due out in about a week (2019-11-18). I expect this might block core development soon. |
Version: v3.7.0
Language: Python
The text was updated successfully, but these errors were encountered: