Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-3199

ImportError: cannot import name get_cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.20
    • Fix Version/s: None
    • Component/s: Backend: Local Storage
    • Labels:
      None

      Description

      centos7.6, kernel 3.10.0-957.el7.x86_64
      I install openattic according https://docs.openattic.org/en/2.x/install_guides/post_installation.html#post-installation-configuration
      when run "oaconfig --allow-broken-hostname install " it's show below
      Traceback (most recent call last):
      File "manage.py", line 26, in <module>
      execute_from_command_line(sys.argv)
      File "/usr/lib/python2.7/site-packages/django/core/management/_init_.py", line 364, in execute_from_command_line
      utility.execute()
      File "/usr/lib/python2.7/site-packages/django/core/management/_init_.py", line 338, in execute
      django.setup()
      File "/usr/lib/python2.7/site-packages/django/_init_.py", line 27, in setup
      apps.populate(settings.INSTALLED_APPS)
      File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
      app_config.import_models()
      File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
      self.models_module = import_module(models_module_name)
      File "/usr/lib64/python2.7/importlib/_init_.py", line 37, in import_module
      _import_(name)
      File "/usr/share/openattic/lvm/models.py", line 24, in <module>
      from django.core.cache import get_cache
      ImportError: cannot import name get_cache

      lists of packages:
      openattic-module-cron-2.0.20-1.noarch
      openattic-module-samba-2.0.20-1.noarch
      openattic-module-nfs-2.0.20-1.noarch
      openattic-release-2.0.20-1.noarch
      openattic-base-2.0.20-1.noarch
      openattic-module-lvm-2.0.20-1.noarch
      openattic-module-nagios-2.0.20-1.noarch
      openattic-pgsql-2.0.20-1.noarch
      openattic-module-lio-2.0.20-1.noarch
      openattic-2.0.20-1.noarch
      openattic-module-http-2.0.20-1.noarch
      openattic-module-mailaliases-2.0.20-1.noarch
      openattic-gui-2.0.20-1.noarch
      python-django-bash-completion-1.11.21-2.el7.noarch
      djangorestframework-bulk-0.2-1.noarch
      django-filter-0.9.2-1.noarch
      djangorestframework-2.4.3-1.noarch
      python2-django-1.11.21-2.el7.noarch

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            zhanrongzhen rongzhen zhan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: