Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save castrojo/161b316df7095c0d3a0f1de963fc3117 to your computer and use it in GitHub Desktop.
Save castrojo/161b316df7095c0d3a0f1de963fc3117 to your computer and use it in GitHub Desktop.
mkdir -p docs/source/aws/resources
c7n-sphinxext --provider aws --output-dir docs/source/aws/resources --group-by=resource_type.service
Traceback (most recent call last):
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_sphinxext/docgen.py", line 252, in main
_main(provider, output_dir, group_by)
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_sphinxext/docgen.py", line 295, in _main
env = init(provider)
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_sphinxext/docgen.py", line 222, in init
load_resources()
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n/resources/__init__.py", line 20, in load_resources
load_providers(set(pmap))
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n/resources/__init__.py", line 82, in load_providers
initialize_gcp()
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_gcp/entry.py", line 21, in initialize_gcp
import c7n_gcp.output # noqa
File "/var/home/jorge/.local/lib/python3.8/site-packages/c7n_gcp/output.py", line 14, in <module>
from google.cloud.storage import Bucket, Client as StorageClient
File "/var/home/jorge/.local/lib/python3.8/site-packages/google/cloud/storage/__init__.py", line 35, in <module>
from google.cloud.storage.batch import Batch
File "/var/home/jorge/.local/lib/python3.8/site-packages/google/cloud/storage/batch.py", line 30, in <module>
from google.cloud import exceptions
File "/var/home/jorge/.local/lib/python3.8/site-packages/google/cloud/exceptions/__init__.py", line 24, in <module>
from google.api_core import exceptions
File "/var/home/jorge/.local/lib/python3.8/site-packages/google/api_core/exceptions.py", line 29, in <module>
from google.rpc import error_details_pb2
File "/var/home/jorge/.local/lib/python3.8/site-packages/google/rpc/error_details_pb2.py", line 38, in <module>
create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key'
> /var/home/jorge/.local/lib/python3.8/site-packages/google/rpc/error_details_pb2.py(38)<module>()
-> create_key=_descriptor._internal_create_key,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment