“unicode"对象没有“keys"属性 [英] 'unicode' object has no attribute 'keys'

查看:41
本文介绍了“unicode"对象没有“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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆