[GeoNode-users] GeoNode 2.6.3 installation error from PPA on Ubuntu 16.04.3

Seno Adiwicaksono senoadiw at gmail.com
Mon Oct 30 23:22:22 PDT 2017


Dear list,

I am trying out GeoNode 2.6 installation using the PPA repo with the
commands listed at http://geonode.org/blog/2017/05/17/geonode-2.6-released/.
During the finishing stages of "sudo apt-get install geonode" the following
error appears:

Running GeoNode initial configuration ...
CREATE EXTENSION
CREATE ROLE
Sourcing /usr/share/geonode/config-post.sh as the configuration file
        Step: 'post specified
Running GeoNode postinstall ...
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 21, in <module>
    management.execute_from_command_line()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
354, in execute_from_command_line
    utility.execute()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
328, in execute
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in
setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 85,
in populate
    app_config = AppConfig.create(entry)
  File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 86,
in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/__init__.py",
line 7, in <module>
    from .shortcuts import *  # noqa
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/shortcuts.py",
line 8, in <module>
    from .forms import *
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
438, in <module>
    class ModelForm(six.with_metaclass(*bases)):
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
283, in __new__
    attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 247,
in __new__
    new_class = super(ModelFormMetaclass, mcs).__new__(mcs, name, bases,
attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 91,
in __new__
    .__new__(mcs, name, bases, attrs))
  File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py", line
145, in __new__
    .__new__(mcs, name, bases, attrs))
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a
(non-strict) subclass of the metaclasses of all its bases
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 21, in <module>
    management.execute_from_command_line()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
354, in execute_from_command_line
    utility.execute()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
328, in execute
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in
setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 85,
in populate
    app_config = AppConfig.create(entry)
  File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 86,
in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/__init__.py",
line 7, in <module>
    from .shortcuts import *  # noqa
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/shortcuts.py",
line 8, in <module>
    from .forms import *
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
438, in <module>
    class ModelForm(six.with_metaclass(*bases)):
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
283, in __new__
    attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 247,
in __new__
    new_class = super(ModelFormMetaclass, mcs).__new__(mcs, name, bases,
attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 91,
in __new__
    .__new__(mcs, name, bases, attrs))
  File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py", line
145, in __new__
    .__new__(mcs, name, bases, attrs))
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a
(non-strict) subclass of the metaclasses of all its bases
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 21, in <module>
    management.execute_from_command_line()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
354, in execute_from_command_line
    utility.execute()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
328, in execute
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in
setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 85,
in populate
    app_config = AppConfig.create(entry)
  File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 86,
in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/__init__.py",
line 7, in <module>
    from .shortcuts import *  # noqa
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/shortcuts.py",
line 8, in <module>
    from .forms import *
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
438, in <module>
    class ModelForm(six.with_metaclass(*bases)):
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
283, in __new__
    attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 247,
in __new__
    new_class = super(ModelFormMetaclass, mcs).__new__(mcs, name, bases,
attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 91,
in __new__
    .__new__(mcs, name, bases, attrs))
  File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py", line
145, in __new__
    .__new__(mcs, name, bases, attrs))
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a
(non-strict) subclass of the metaclasses of all its bases
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 21, in <module>
    management.execute_from_command_line()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
354, in execute_from_command_line
    utility.execute()
  File
"/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line
328, in execute
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in
setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 85,
in populate
    app_config = AppConfig.create(entry)
  File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 86,
in create
    module = import_module(entry)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/__init__.py",
line 7, in <module>
    from .shortcuts import *  # noqa
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/shortcuts.py",
line 8, in <module>
    from .forms import *
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
438, in <module>
    class ModelForm(six.with_metaclass(*bases)):
  File "/usr/lib/python2.7/dist-packages/autocomplete_light/forms.py", line
283, in __new__
    attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 247,
in __new__
    new_class = super(ModelFormMetaclass, mcs).__new__(mcs, name, bases,
attrs)
  File "/usr/lib/python2.7/dist-packages/django/forms/forms.py", line 91,
in __new__
    .__new__(mcs, name, bases, attrs))
  File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py", line
145, in __new__
    .__new__(mcs, name, bases, attrs))
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a
(non-strict) subclass of the metaclasses of all its bases
Site 000-default disabled.
To activate the new configuration, you need to run:
  service apache2 reload
Considering dependency proxy for proxy_http:
Enabling module proxy.

It seems like it has something to do with the django autocomplete light
package. Running geonode commands like "geonode createsuperuser" also gives
the same error. Accessing GeoNode in the browser results in 500 Internal
Server Error and the Apache error log also lists the same metaclass
conflict error. Has anyone experienced this issue recently? Much
appreciated for any insights.

Regards,

SN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171031/8b663567/attachment-0001.html>


More information about the geonode-users mailing list