“unicode"对象没有“keys"属性 [英] 'unicode' object has no attribute 'keys'
问题描述
我在 .ebextensions 目录中添加 .config 以在 Elastic Beanstalk 下管理的 Amazon Linux 中安装 imagemagick 包时遇到严重问题.我用过
I am having serious problem while adding .config in .ebextensions directory to install imagemagick package in Amazon Linux managed under Elastic Beanstalk. I used
packages:
yum:
ImageMagick: []
当我尝试从 ELB 控制台部署战争时,过程完成但出错
When I tried to deploy the war from ELB console, process completed with error
[实例:i-531ab77a 模块:AWSEBAutoScalingGroup 配置集:空]命令在实例上失败.返回码:1 输出:发生错误在构建过程中:'unicode' 对象没有属性 'keys'.
[Instance: i-531ab77a Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: Error occurred during build: 'unicode' object has no attribute 'keys' .
推荐答案
确保ImageMagick:"和[]"之间有一个空格.
Make sure you have a space between "ImageMagick:" and "[]".
当我使用ImageMagick:[]"代替时,我能够重现此错误:
I was able to reproduce this error when I used "ImageMagick:[]" instead:
[Instance: i-7079d32d Module: AWSEBAutoScalingGroup ConfigSet: null] 命令在实例上失败.返回码:1 输出:构建期间发生错误:unicode"对象没有属性keys".
[Instance: i-7079d32d Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: Error occurred during build: 'unicode' object has no attribute 'keys' .
这篇关于“unicode"对象没有“keys"属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!