# EDX Instal Error : Populate countries

**URL:** <https://forum.ansible.com/t/edx-instal-error-populate-countries/23840>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [February 28, 2017, 10:18am UTC](https://forum.ansible.com/t/edx-instal-error-populate-countries/23840 "2017-02-28T10:18:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Duffy](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@Luke\_Duffy](https://forum.ansible.com/u/Luke_Duffy)\
**Post date:** [February 28, 2017, 10:18am UTC](https://forum.ansible.com/t/edx-instal-error-populate-countries/23840/1 "2017-02-28T10:18:25Z")

</div>

Hi

In an attempt to get ecommerce working I find I cant even instal edx any more.

Step 1 Install ubuntu 16.04, using all defaults (except add Open SSH)  
Step 2 run the commands:

sudo apt-get update -y  
sudo apt-get upgrade -y  
sudo apt-get install ubuntu-desktop

wget [https://raw.githubusercontent.com/edx/configuration/master/util/install/ansible-bootstrap.sh](https://raw.githubusercontent.com/edx/configuration/master/util/install/ansible-bootstrap.sh) -O - | sudo bash

This is all good

Step 3: run command

wget [https://raw.githubusercontent.com/edx/configuration/master/util/install/sandbox.sh](https://raw.githubusercontent.com/edx/configuration/master/util/install/sandbox.sh) -O - | sudo bash

which fails

TASK [ecommerce : Migrate] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
changed: [localhost]

TASK [ecommerce : Populate countries] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“changed”: true, “cmd”: “DB\_MIGRATION\_USER=migrate DB\_MIGRATION\_PASS=password /edx/app/ecommerce/venvs/ecommerce/bin/python ./manage.py oscar\_populate\_countries”, “delta”: “0:00:01.753737”, “end”: “2017-02-28 20:56:40.462859”, “failed”: true, “failed\_when\_result”: true, “rc”: 1, “start”: “2017-02-28 20:56:38.709122”, “stderr”: “Traceback (most recent call last):\n File "./manage.py", line 10, in \n execute\_from\_command\_line(sys.argv)\n File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/ **init**.py", line 353, in execute\_from\_command\_line\n utility.execute()\n File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/ **init**.py", line 345, in execute\n self.fetch\_command(subcommand).run\_from\_argv(self.argv)\n File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run\_from\_argv\n self.execute(\*args, \*\*cmd\_options)\n File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute\n output = self.handle(\*args, \*\*options)\n File "/edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/oscar/management/commands/oscar\_populate\_countries.py", line 57, in handle\n for country in pycountry.countries]\nAttributeError: ‘Country’ object has no attribute ‘alpha\_2’”, “stdout”: “2017-02-28 09:56:39,481 WARNING 7279 [py.warnings] /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/models/fields/subclassing.py:22 - /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from\_db\_value instead.\n return meta(name, bases, d)”, “stdout\_lines”: [“2017-02-28 09:56:39,481 WARNING 7279 [py.warnings] /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/django/db/models/fields/subclassing.py:22 - /edx/app/ecommerce/venvs/ecommerce/local/lib/python2.7/site-packages/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from\_db\_value instead.”, " return meta(name, bases, d)"], “warnings”: }  
to retry, use: --limit @/var/tmp/configuration/playbooks/edx\_sandbox.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=278 changed=144 unreachable=0 failed=1

Please what am I doing wrong ???
