← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1891615] [NEW] AttributeError: module 'horizon.tables' has no attribute 'PagedTableWithPageMenu'

 

Public bug reported:

My Linux system can only be installed with source code

git clone https://gitee.com/menkeyi/horizon.git  -b stable/train
[root@controller ~]# cd horizon/
[root@controller horizon]# pip3 install -r requirements.txt
[root@controller horizon]# python3 setup.py install

[root@controller01 openstack-dashboard]# ll
total 8
-rwxr-xr-x  1 root apache  830 Aug  5 09:09 manage.py
drwxr-xr-x 20 root apache 4096 Aug  5 09:08 openstack_dashboard
-rw-r--r--  1 root root      0 Aug  5 14:40 README.md
drwxr-xr-x 10 root apache  114 Aug  5 09:12 static
[root@controller01 openstack-dashboard]# ls openstack_dashboard/
api                    defaults.py        __init__.py    policy.py    templatetags       usage
conf                   django_pyscss_fix  karma.conf.js  __pycache__  test               utils
context_processors.py  enabled            local          settings.py  themes             views.py
contrib                exceptions.py      locale         static       theme_settings.py  wsgi
dashboards             hooks.py           management     templates    urls.py            wsgi.py

It's strange to encounter this problem. I don't know how to investigate
it?

[root@controller01 openstack-dashboard]# python3 manage.py  runserver
/usr/local/lib64/python3.7/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  argspec = inspect.getargspec(function)
/usr/local/lib64/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
  ''', re.VERBOSE | re.MULTILINE)
/usr/local/lib64/python3.7/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  argspec = inspect.getargspec(function)
/usr/local/lib64/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
  ''', re.VERBOSE | re.MULTILINE)
Performing system checks...

Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0xfffc08045d40>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run
    self.check(display_num_errors=True)
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 364, in check
    include_deployment_checks=include_deployment_checks,
  File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 351, in _run_checks
    return checks.run_checks(**kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/registry.py", line 73, in run_checks
    new_errors = check(app_configs=app_configs)
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
    return check_resolver(resolver)
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    return check_method()
  File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 400, in check
    warnings.extend(check_resolver(pattern))
  File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    return check_method()
  File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 399, in check
    for pattern in self.url_patterns:
  File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 36, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 542, in url_patterns
    iter(patterns)
  File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 692, in __iter__
    self._setup()
  File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 349, in _setup
    self._wrapped = self._setupfunc()
  File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 858, in url_patterns
    return self._urls()[0]
  File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 892, in _urls
    _wrapped_include(dash._decorated_urls)))
  File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 568, in _decorated_urls
    _wrapped_include(panel._decorated_urls)))
  File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 340, in _decorated_urls
    urlpatterns = self._get_default_urlpatterns()
  File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 142, in _get_default_urlpatterns
    urls_mod = import_module('.urls', package_string)
  File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/volumes/urls.py", line 17, in <module>
    from openstack_dashboard.dashboards.project.backups \
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/backups/views.py", line 38, in <module>
    class BackupsView(tables.PagedTableWithPageMenu, tables.DataTableView,
AttributeError: module 'horizon.tables' has no attribute 'PagedTableWithPageMenu'

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: documentation

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1891615

Title:
  AttributeError: module 'horizon.tables' has no attribute
  'PagedTableWithPageMenu'

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  My Linux system can only be installed with source code

  git clone https://gitee.com/menkeyi/horizon.git  -b stable/train
  [root@controller ~]# cd horizon/
  [root@controller horizon]# pip3 install -r requirements.txt
  [root@controller horizon]# python3 setup.py install

  [root@controller01 openstack-dashboard]# ll
  total 8
  -rwxr-xr-x  1 root apache  830 Aug  5 09:09 manage.py
  drwxr-xr-x 20 root apache 4096 Aug  5 09:08 openstack_dashboard
  -rw-r--r--  1 root root      0 Aug  5 14:40 README.md
  drwxr-xr-x 10 root apache  114 Aug  5 09:12 static
  [root@controller01 openstack-dashboard]# ls openstack_dashboard/
  api                    defaults.py        __init__.py    policy.py    templatetags       usage
  conf                   django_pyscss_fix  karma.conf.js  __pycache__  test               utils
  context_processors.py  enabled            local          settings.py  themes             views.py
  contrib                exceptions.py      locale         static       theme_settings.py  wsgi
  dashboards             hooks.py           management     templates    urls.py            wsgi.py

  It's strange to encounter this problem. I don't know how to
  investigate it?

  [root@controller01 openstack-dashboard]# python3 manage.py  runserver
  /usr/local/lib64/python3.7/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    argspec = inspect.getargspec(function)
  /usr/local/lib64/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
    ''', re.VERBOSE | re.MULTILINE)
  /usr/local/lib64/python3.7/site-packages/scss/namespace.py:172: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    argspec = inspect.getargspec(function)
  /usr/local/lib64/python3.7/site-packages/scss/selector.py:54: FutureWarning: Possible nested set at position 329
    ''', re.VERBOSE | re.MULTILINE)
  Performing system checks...

  Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0xfffc08045d40>
  Traceback (most recent call last):
    File "/usr/local/lib/python3.7/site-packages/django/utils/autoreload.py", line 225, in wrapper
      fn(*args, **kwargs)
    File "/usr/local/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run
      self.check(display_num_errors=True)
    File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 364, in check
      include_deployment_checks=include_deployment_checks,
    File "/usr/local/lib/python3.7/site-packages/django/core/management/base.py", line 351, in _run_checks
      return checks.run_checks(**kwargs)
    File "/usr/local/lib/python3.7/site-packages/django/core/checks/registry.py", line 73, in run_checks
      new_errors = check(app_configs=app_configs)
    File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 13, in check_url_config
      return check_resolver(resolver)
    File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
      return check_method()
    File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 400, in check
      warnings.extend(check_resolver(pattern))
    File "/usr/local/lib/python3.7/site-packages/django/core/checks/urls.py", line 23, in check_resolver
      return check_method()
    File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 399, in check
      for pattern in self.url_patterns:
    File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 36, in __get__
      res = instance.__dict__[self.name] = self.func(instance)
    File "/usr/local/lib/python3.7/site-packages/django/urls/resolvers.py", line 542, in url_patterns
      iter(patterns)
    File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 692, in __iter__
      self._setup()
    File "/usr/local/lib/python3.7/site-packages/django/utils/functional.py", line 349, in _setup
      self._wrapped = self._setupfunc()
    File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 858, in url_patterns
      return self._urls()[0]
    File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 892, in _urls
      _wrapped_include(dash._decorated_urls)))
    File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 568, in _decorated_urls
      _wrapped_include(panel._decorated_urls)))
    File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 340, in _decorated_urls
      urlpatterns = self._get_default_urlpatterns()
    File "/usr/local/lib/python3.7/site-packages/horizon/base.py", line 142, in _get_default_urlpatterns
      urls_mod = import_module('.urls', package_string)
    File "/usr/lib64/python3.7/importlib/__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
    File "<frozen importlib._bootstrap>", line 983, in _find_and_load
    File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 728, in exec_module
    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
    File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/volumes/urls.py", line 17, in <module>
      from openstack_dashboard.dashboards.project.backups \
    File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/backups/views.py", line 38, in <module>
      class BackupsView(tables.PagedTableWithPageMenu, tables.DataTableView,
  AttributeError: module 'horizon.tables' has no attribute 'PagedTableWithPageMenu'

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1891615/+subscriptions


Follow ups