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

Seno Adiwicaksono senoadiw at gmail.com
Tue Oct 31 02:23:06 PDT 2017


Hi Dave,

Thanks for the suggestion. Indeed I attempted the installation on a base VM
that just had the following packages installed:

        user at ubuntu:~$ pip list
        apt-select (2.0.0)
        beautifulsoup4 (4.6.0)
        certifi (2017.7.27.1)
        chardet (3.0.4)
        idna (2.6)
        pbr (3.1.1)
        pip (8.1.1)
        requests (2.18.4)
        setuptools (20.7.0)
        six (1.11.0)
        stevedore (1.27.1)
        urllib3 (1.22)
        virtualenv (15.1.0)
        virtualenv-clone (0.2.6)
        virtualenvwrapper (4.8.2)
        wheel (0.29.0)

I believe I only sudo installed apt-select and virtualenvwrapper. I tried
installing again on a clean VM and the GeoNode installation completed with
just the following warnings:

WARNINGS:
?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django
1.8 and the TEMPLATES dictionary takes precedence. You must put the values
of the following settings into your default TEMPLATES dict: TEMPLATE_DIRS.
base.ResourceBase.tkeywords: (fields.W340) null has no effect on
ManyToManyField


Much appreciated,

SN



On Tue, Oct 31, 2017 at 1:39 PM, Dave Kennewell <davekennewell at gmail.com>
wrote:

> 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/0
>> 5/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-installati
>> on-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>
>>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171031/8cf6b9c8/attachment-0001.html>


More information about the geonode-users mailing list