




















Hi, @megaminezghal. I'm getting errors in check() from missing the cryptography library, which is optional for google-auth but required in the tests here. Could you take a look at this?
ImportError while importing test module '/build/python-google-cloud-speech/src/google_cloud_speech-2.36.0/tests/unit/test_helpers.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.14/site-packages/_pytest/python.py:498: in importtestmodule
mod = import_path(
/usr/lib/python3.14/site-packages/_pytest/pathlib.py:587: in import_path
importlib.import_module(module_name)
/usr/lib/python3.14/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1398: in _gcd_import
???
<frozen importlib._bootstrap>:1371: in _find_and_load
???
<frozen importlib._bootstrap>:1342: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:938: in _load_unlocked
???
/usr/lib/python3.14/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.__dict__)
tests/unit/test_helpers.py:22: in <module>
from google.cloud.speech_v1 import SpeechClient, types
google/cloud/speech_v1/__init__.py:31: in <module>
from .services.adaptation import AdaptationAsyncClient, AdaptationClient
google/cloud/speech_v1/services/adaptation/__init__.py:16: in <module>
from .async_client import AdaptationAsyncClient
google/cloud/speech_v1/services/adaptation/async_client.py:33: in <module>
from google.api_core import gapic_v1
/usr/lib/python3.14/site-packages/google/api_core/gapic_v1/__init__.py:18: in <module>
from google.api_core.gapic_v1 import method
/usr/lib/python3.14/site-packages/google/api_core/gapic_v1/method.py:24: in <module>
from google.api_core import grpc_helpers
/usr/lib/python3.14/site-packages/google/api_core/grpc_helpers.py:27: in <module>
import google.auth.transport.grpc
/usr/lib/python3.14/site-packages/google/auth/transport/grpc.py:23: in <module>
from google.oauth2 import service_account
/usr/lib/python3.14/site-packages/google/oauth2/service_account.py:78: in <module>
from google.auth import _service_account_info
/usr/lib/python3.14/site-packages/google/auth/_service_account_info.py:20: in <module>
from google.auth import crypt
/usr/lib/python3.14/site-packages/google/auth/crypt/__init__.py:41: in <module>
from google.auth.crypt import es
/usr/lib/python3.14/site-packages/google/auth/crypt/es.py:21: in <module>
import cryptography.exceptions
E ModuleNotFoundError: No module named 'cryptography'
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
python-pytest-asyncio is also required now: