Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'unicode' object has no attribute 'keys'

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: []

When I tried to deploy the war from ELB console, process completed with error

[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' .

like image 683
Rajan Twanabashu Avatar asked Dec 10 '13 17:12

Rajan Twanabashu


2 Answers

Make sure you have a space between "ImageMagick:" and "[]".

I was able to reproduce this error when I used "ImageMagick:[]" instead:

[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' .

like image 146
Jeff Avatar answered Nov 11 '22 12:11

Jeff


I got same error for

sources:
      /home/ec2-user  http://azxc.net/certs.zip

Forgot to add ":" , This fixed error:

sources:
      /home/ec2-user:  http://azxc.net/certs.zip
like image 1
Denis Astahov Avatar answered Nov 11 '22 10:11

Denis Astahov