Skip to content
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

Missing dependency on protobuf #272

Open
sorindumitru opened this issue Jan 16, 2025 · 0 comments
Open

Missing dependency on protobuf #272

sorindumitru opened this issue Jan 16, 2025 · 0 comments

Comments

@sorindumitru
Copy link

When trying to use the spiffe package in a venv I got this error:

>>> from spiffe import JwtSource
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/sdumitru/github/spiffe/venv/lib/python3.12/site-packages/spiffe/__init__.py", line 2, in <module>
    from .workloadapi.x509_source import X509Source  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/sdumitru/github/spiffe/venv/lib/python3.12/site-packages/spiffe/workloadapi/x509_source.py", line 25, in <module>
    from spiffe.workloadapi.workload_api_client import WorkloadApiClient
  File "/Users/sdumitru/github/spiffe/venv/lib/python3.12/site-packages/spiffe/workloadapi/workload_api_client.py", line 31, in <module>
    from spiffe.proto import (
  File "/Users/sdumitru/github/spiffe/venv/lib/python3.12/site-packages/spiffe/proto/workload_pb2.py", line 6, in <module>
    from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'

After installing the protobuf package in the venv, I was able to use the package.

I only tested the spiffe package, i don't know if the spiffe-tls package has the same issue or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant