[GeoNode-users] Geonode project problem

Olivier Dalang olivier.dalang at gmail.com
Wed Feb 21 20:48:11 PST 2018


Hi !

Here I use this requirements.txt :

geonode==2.6.3
# Overrides because of loose Geonode dependencies
GDAL~=2.0.1 # Simply missing
six==1.10.0 # workaround for https://github.com/benjaminp/six/issues/210
transifex-client==0.12.5 # fix because 0.13.0 requires python-slugify 1.6.4
which has a bug (shadows awesome 1.6.5)
django-polymorphic~=0.9.2 # instead of django-polymorphic>=0.9.2 pulls 2.x
that doesn't work with Django 1.8

This will get worse over time as there are some other loose dependencies in
Geonode's setup.py (basically, whatever dependency that is defined as >=
will cause trouble if an incompatible release comes out). I think all
dependencies should also set a max version or use ~=.

Let us know if this helps !

Olivier



On Thu, Feb 22, 2018 at 9:31 AM, Ariel Neri <ariel.neriw at gmail.com> wrote:

> I did what Simone suggested:* pip install six==1.10.0*   it was installed
> successfully.
>
> Trying again with* python manage.py *i get this error:
>
> Traceback (most recent call last):
>   File "manage.py", line 11, in <module>
>     execute_from_command_line(sys.argv)
>   File "/home/admin01/.local/lib/python2.7/site-packages/
> django/core/management/__init__.py", line 354, in
> execute_from_command_line
>     utility.execute()
>   File "/home/admin01/.local/lib/python2.7/site-packages/
> django/core/management/__init__.py", line 328, in execute
>     django.setup()
>   File "/home/admin01/.local/lib/python2.7/site-packages/django/__init__.py",
> line 18, in setup
>     apps.populate(settings.INSTALLED_APPS)
>   File "/home/admin01/.local/lib/python2.7/site-packages/django/apps/registry.py",
> line 85, in populate
>     app_config = AppConfig.create(entry)
>   File "/home/admin01/.local/lib/python2.7/site-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 "/home/admin01/.local/lib/python2.7/site-packages/polymorphic/__init__.py",
> line 13, in <module>
>     __version__ = pkg_resources.require("django-polymorphic")[0].version
>   File "/home/admin01/.local/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 984, in require
>     needed = self.resolve(parse_requirements(requirements))
>   File "/home/admin01/.local/lib/python2.7/site-packages/pkg_resources/__init__.py",
> line 875, in resolve
>     raise VersionConflict(dist, req).with_context(dependent_req)
> pkg_resources.ContextualVersionConflict: (Django 1.8.18
> (/home/admin01/.local/lib/python2.7/site-packages),
> Requirement.parse('Django>=1.11'), set(['django-polymorphic']))
>
>
> Francesco, The setps i have followed for creating project are in this
> README.rst:  https://github.com/GeoNode/geonode-project
> I compared both and are not exactly the same. I did edit the geonode.conf
> changing the  WSGIScriptAlias  as it states, wich is not mentioned in the
> link you just send.
> I now edited back to the original files and tried continuing with your
> guide, but I can´t run *python manage.py*, so i´m stuck there.
>
> The error mentions the "requirements". The "requirements.txt" file in the
> geonode-project has only one line:
> geonode==2.6.3
>
> is that fine?
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Libre
> de virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_5822591395361002164_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> 2018-02-21 16:17 GMT-03:00 Francesco Bartoli <xbartolone at gmail.com>:
>
>> Ariel,
>>
>> are you sure to having started from a 2.6 geonode-project as described
>> here http://geonode.org/geonode-workshop/foss4git2017/#/8 ?
>>
>> Please double check.
>> F.
>>
>> Il giorno 21/feb/2018, alle ore 03:34, Ariel Neri <ariel.neriw at gmail.com>
>> ha scritto:
>>
>> Hi, I have just installed a new GeoNode 2.6 (quick install) on ubuntu
>> 16.04 and then followed this instructions to create a new project:
>>
>> https://github.com/GeoNode/geonode-project   ( readme.rst )
>>
>> however, when i run
>>
>> python manage.py collectstatic
>>
>> This error comes up:
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 11, in <module>
>>     execute_from_command_line(sys.argv)
>>   File "/home/admin01/.local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 354, in execute_from_command_line
>>     utility.execute()
>>   File "/home/admin01/.local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 328, in execute
>>     django.setup()
>>   File "/home/admin01/.local/lib/python2.7/site-packages/django/__init__.py",
>> line 18, in setup
>>     apps.populate(settings.INSTALLED_APPS)
>>   File "/home/admin01/.local/lib/python2.7/site-packages/django/apps/registry.py",
>> line 85, in populate
>>     app_config = AppConfig.create(entry)
>>   File "/home/admin01/.local/lib/python2.7/site-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 "/home/admin01/.local/lib/python2.7/site-packages/autocomplete_light/__init__.py",
>> line 7, in <module>
>>     from .shortcuts import *  # noqa
>>   File "/home/admin01/.local/lib/python2.7/site-packages/autocomplete_light/shortcuts.py",
>> line 8, in <module>
>>     from .forms import *
>>   File "/home/admin01/.local/lib/python2.7/site-packages/autocomplete_light/forms.py",
>> line 438, in <module>
>>     class ModelForm(six.with_metaclass(*bases)):
>>   File "/home/admin01/.local/lib/python2.7/site-packages/autocomplete_light/forms.py",
>> line 283, in __new__
>>     attrs)
>>   File "/home/admin01/.local/lib/python2.7/site-packages/django/forms/models.py",
>> line 247, in __new__
>>     new_class = super(ModelFormMetaclass, mcs).__new__(mcs, name, bases,
>> attrs)
>>   File "/home/admin01/.local/lib/python2.7/site-packages/django/forms/forms.py",
>> line 91, in __new__
>>     .__new__(mcs, name, bases, attrs))
>>   File "/home/admin01/.local/lib/python2.7/site-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
>>
>>
>> localhost still points to the default welcome page, and all python
>> manage.py commands throw this same error.
>>
>> I don´t know what this error is about. Any advice will be welcome
>> Thanks
>>
>> Ariel
>>
>>
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Libre
>> de virus. www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>>
>
> _______________________________________________
> 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/20180222/12ba2054/attachment-0001.html>


More information about the geonode-users mailing list