Closed benallard closed 1 year ago
Can you show warnings you get in your environment? I'm getting only ResourceWarning
in mine environment.
Sure, that's the errors I'm having.
===================================================== test session starts ======================================================
platform linux -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/ben/aur/python-grpclib/src/grpclib-0.4.3, configfile: setup.cfg, testpaths: tests
plugins: cov-4.0.0, mock-3.10.0, Faker-16.8.0, asyncio-0.21.0
asyncio: mode=auto
collected 196 items / 3 errors
============================================================ ERRORS ============================================================
_________________________________________ ERROR collecting tests/test_client_events.py _________________________________________
Traceback (most recent call last):
File "/home/ben/aur/python-grpclib/src/grpclib-0.4.3/tests/test_client_events.py", line 6, in <module>
from google.rpc.error_details_pb2 import ResourceInfo
File "/usr/lib/python3.10/site-packages/google/rpc/__init__.py", line 18, in <module>
import pkg_resources
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 121, in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
DeprecationWarning: pkg_resources is deprecated as an API
_________________________________________ ERROR collecting tests/test_server_events.py _________________________________________
Traceback (most recent call last):
File "/home/ben/aur/python-grpclib/src/grpclib-0.4.3/tests/test_server_events.py", line 4, in <module>
from google.rpc.error_details_pb2 import ResourceInfo
File "/usr/lib/python3.10/site-packages/google/rpc/__init__.py", line 18, in <module>
import pkg_resources
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 121, in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
DeprecationWarning: pkg_resources is deprecated as an API
_____________________________________ ERROR collecting tests/test_status_details_codec.py ______________________________________
Traceback (most recent call last):
File "/home/ben/aur/python-grpclib/src/grpclib-0.4.3/tests/test_status_details_codec.py", line 3, in <module>
from google.rpc.error_details_pb2 import Help
File "/usr/lib/python3.10/site-packages/google/rpc/__init__.py", line 18, in <module>
import pkg_resources
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 121, in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
DeprecationWarning: pkg_resources is deprecated as an API
=================================================== short test summary info ====================================================
ERROR tests/test_client_events.py - DeprecationWarning: pkg_resources is deprecated as an API
ERROR tests/test_server_events.py - DeprecationWarning: pkg_resources is deprecated as an API
ERROR tests/test_status_details_codec.py - DeprecationWarning: pkg_resources is deprecated as an API
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================== 3 errors in 1.15s =======================================================
Thanks! This temporarily fixes https://github.com/googleapis/python-api-common-protos/issues/140
Somehow, the filter based on the package name did not worked for me.