Skip to content

Instantly share code, notes, and snippets.

@MichaelDavisTSN
MichaelDavisTSN / tools.txt
Created December 23, 2021 13:44
No module named 'tools'
Cloud Custodian command executed at Wed Dec 22 15:00:11 CST 2021:
/usr/local/bin/c7n-org run -c /opt/cloud-custodian-gcp/etc/c7n-org-config/all-projects.yml -s /tmp/delete-me -u /opt/cloud-custodian-gcp/policies/dataflow-job-notify.yml
Output of command:
Traceback (most recent call last):
File "/usr/local/bin/c7n-org", line 8, in <module>
sys.exit(cli())
File "/opt/custodian/lib64/python3.6/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/opt/custodian/lib64/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
Building wheels for collected packages: c7n
Building wheel for c7n (PEP 517) ... done
Created wheel for c7n: filename=c7n-0.9.4-cp37-none-any.whl size=497568 sha256=cf75a700c9f25034bdc781b2fe1daf9d344395a0ffee2d891461a3abfe568467
Stored in directory: /root/.cache/pip/wheels/cd/e3/92/21a05bf91d56da2c8371f37f2046c669bd01f5b574ec02639e
Successfully built c7n
Installing collected packages: jmespath, docutils, urllib3, six, python-dateutil, botocore, s3transfer, boto3, zipp, importlib-metadata, argcomplete, attrs, pyrsistent, jsonschema, pyyaml, tabulate, c7n
Running setup.py install for pyrsistent ... done
Running setup.py install for pyyaml ... done
Successfully installed argcomplete-1.12.0 attrs-19.3.0 boto3-1.14.24 botocore-1.17.24 c7n-0.9.4 docutils-0.15.2 importlib-metadata-1.7.0 jmespath-0.10.0 jsonschema-3.2.0 pyrsistent-0.16.0 python-dateutil-2.8.1 pyyaml-5.3.1 s3transfer-0.3.3 six-1.15.0 tabulate-0.8.7 urllib3-1.25.9 zipp-3.1.0
Processing ./tools/c7n_org
(custodian) [root@<<REDACTED>> cloud-custodian]# pip3 install ./tools/c7n_org
Processing ./tools/c7n_org
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /opt/custodian/bin/python3 /opt/custodian/lib64/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp8w9aco_5
cwd: /tmp/pip-req-build-nhhvynzx
Complete output (16 lines):
Traceback (most recent call last):