我的目标是访问存储在Looker文件夹中的视图或图表,并将其自动添加到Powerpoint幻灯片中。我正在关注的教程就是这个: https://discourse.looker.com/t/generating-a-powerpoint-presentation-from-all-looks-in-a-space/8191。
我的问题是在#Generate PowerPoint(根据教程)的时候。当我运行该命令时,失败消息指出:
103 chart_test
Look failed 103: chart_test
Failed to add image to slide
This corresponds to this piece of code where it fails:
try:
image = looker_client.LookApi(client).run_look(**look_request)
image_file = ''.join([str(look.id),'.png'])
shutil.move(image,image_file)
except:
print(f'Look failed {look.id}: {look.title}')
image_file = None
当我打印'image_file'时,它为空('None'),尽管我在此文件夹2703中保存了一个折线图,称为'chart_test'。
有人可以帮忙吗?