aws-samples / aws-iot-twinmaker-samples

Apache License 2.0
97 stars 77 forks source link

AttributeError: module 'deploy_utils' has no attribute 'WorkspaceUtils' #35

Closed bluesatheesh closed 2 years ago

bluesatheesh commented 2 years ago

python3 $GETTING_STARTED_DIR/src/modules/grafana/cleanup_grafana_dashboard_role.py --workspace-id $WORKSPACE_ID --region $AWS_DEFAULT_REGION Traceback (most recent call last): File "/home/ubuntu/environment/aws-iot-twinmaker-samples/src/modules/grafana/cleanup_grafana_dashboard_role.py", line 80, in main() File "/home/ubuntu/environment/aws-iot-twinmaker-samples/src/modules/grafana/cleanup_grafana_dashboard_role.py", line 44, in main ws = deploy_utils.WorkspaceUtils( AttributeError: module 'deploy_utils' has no attribute 'WorkspaceUtils'

MaxZyantao commented 2 years ago

Hi @bluesatheesh , I just tried the command and worked fine for me. Also the WorkspaceUtils does exist. Could you please pull the latest changes and try again? Thanks.

aws-iot-twinmaker-samples % python3 $GETTING_STARTED_DIR/src/modules/grafana/cleanup_grafana_dashboard_role.py --workspace-id $WORKSPACE_ID --region $AWS_DEFAULT_REGION

No dashboard role to delete was found for workspace CookieFactory.
bluesatheesh commented 2 years ago

@MaxZyantao I've fixed the issue. This is due to the python and pip. Need to use python 3.8 and above

bluesatheesh commented 2 years ago

I've deployed the cookie factory and its working perfect.

MaxZyantao commented 2 years ago

Perfect! I'll close this issue!