AttributeError: 'module' object has no attribute 'list'

Issue #4 new
Former user created an issue

Using django==1.8.12 Using django-international==0.0.6

Babel doesn't appear to be installed by default and throws an import warning:

WARNING, language names will not be available

When pip install babel this happens:

./manage.py migrate
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
    django.setup()
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
    self.models_module = import_module(models_module_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/silver/models.py", line 42, in <module>
    from international.models import countries, currencies
  File "/Users/jasonsparks/Desktop/wizevalue/.venv/lib/python2.7/site-packages/international/models.py", line 480, in <module>
    locales = babel.localedata.list()
AttributeError: 'module' object has no attribute 'list'

Comments (1)

  1. Flavius Mecea

    @brankovukelic can you please merge the pull requests that fix this, and update it? Thank you!

  2. Log in to comment