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

Dave Kennewell davekennewell at gmail.com
Mon Oct 30 23:39:48 PDT 2017


Hi Seno,

Do you have any other packages installed on your machine that could be
causing dependency conflicts?

I recently had a similar issue whilst using the boto3 package for Amazon
Web Services. In my case the boto3 installation was upgrading the python
package 'six' to a recently released version that is incompatible with
geonode 2.6. I solved this by downgrading 'six' back to a lower version
with:

sudo pip install 'six<1.11'

regards
Dave

On 31 October 2017 at 10:22, Seno Adiwicaksono [via OSGeo.org] <
ml+s1560n5340622h97 at n6.nabble.com> wrote:

> 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
>
>
> _______________________________________________
> geonode-users mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5340622&i=0>
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://osgeo-org.1560.x6.nabble.com/GeoNode-2-6-3-
> installation-error-from-PPA-on-Ubuntu-16-04-3-tp5340622.html
> To unsubscribe from GeoNode users, click here
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5185389&code=ZGF2ZWtlbm5ld2VsbEBnbWFpbC5jb218NTE4NTM4OXwtOTI1NjEyMTk0>
> .
> NAML
> <http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171031/985f2a39/attachment.html>


More information about the geonode-users mailing list