[GeoNode-devel] geonode-devel Digest, Vol 37, Issue 21

Thomas Gertin tgertin at vt.edu
Wed Feb 14 03:54:48 PST 2018


I ran into the same issue you had today SILVIA. 

I noticed that for for the pypy GeoNode 2.6.1 package (https://pypi.python.org/pypi/GeoNode/2.6.1), the requirements.txt file lists django-polymorphic as

django-polymorphic>=0.9.2

However, as stated in the django-polymorphic GitHub repo, django-polymorphic==1.3 should be installed for Django 1.11.

Can you try uninstalling django-polymorphic, and installing version 1.3?


To all, 

Can we put 'django-polymorphic==1.3' in the requirements.txt for GeoNode 2.6.1?


I am having problems now with awesome-slugify installing correctly, but I need think I need to look into this further.


Thanks,

Tom G.



> On Feb 13, 2018, at 3:00 PM, geonode-devel-request at lists.osgeo.org wrote:
> 
> Send geonode-devel mailing list submissions to
> 	geonode-devel at lists.osgeo.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.osgeo.org/mailman/listinfo/geonode-devel
> or, via email, send a message with subject or body 'help' to
> 	geonode-devel-request at lists.osgeo.org
> 
> You can reach the person managing the list at
> 	geonode-devel-owner at lists.osgeo.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of geonode-devel digest..."
> 
> 
> Today's Topics:
> 
>   1. pkg_resources.VersionConflict when python manage.py	migrate
>      (SILVIA GAMERO)
>   2. Re: pkg_resources.VersionConflict when python manage.py
>      migrate (Simone Dalmasso)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 12 Feb 2018 16:09:15 -0600
> From: SILVIA GAMERO <gamerinsky at gmail.com>
> To: geonode-devel at lists.osgeo.org
> Subject: [GeoNode-devel] pkg_resources.VersionConflict when python
> 	manage.py	migrate
> Message-ID:
> 	<CAKjeEPWFkjQb9_EaOqEMCcdo+19tcZCMJymSQPcEHRdV7SiYZA at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> I have problems with geonode2.6x on Centos7, when migrating the data from
> python manage.py migrate or try to start geonode ..
> 
> Traceback (most recent call last):
>  File "/usr/lib/python2.7/site-packages/django/utils/autoreload.py", line
> 229, in wrapper
>    fn(*args, **kwargs)
>  File
> "/usr/lib/python2.7/site-packages/django/core/management/commands/runserver.py",
> line 107, in inner_run
>    autoreload.raise_last_exception()
>  File "/usr/lib/python2.7/site-packages/django/utils/autoreload.py", line
> 252, in raise_last_exception
>    six.reraise(*_exception)
>  File "/usr/lib/python2.7/site-packages/django/utils/autoreload.py", line
> 229, in wrapper
>    fn(*args, **kwargs)
>  File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in
> setup
>    apps.populate(settings.INSTALLED_APPS)
>  File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 85,
> in populate
>    app_config = AppConfig.create(entry)
>  File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 86,
> in create
>    module = import_module(entry)
>  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in
> import_module
>    __import__(name)
>  File "/usr/lib/python2.7/site-packages/polymorphic/__init__.py", line 13,
> in <module>
>    __version__ = pkg_resources.require("django-polymorphic")[0].version
>  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in
> require
>    needed = self.resolve(parse_requirements(requirements))
>  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 630, in
> resolve
>    raise VersionConflict(dist,req) # XXX put more info here
> pkg_resources.VersionConflict: (Django 1.8.18
> (/usr/lib/python2.7/site-packages), Requirement.parse('Django>=1.11'))
> 
> I followed the steps of the installation guide, although I commented that I
> have not done the process that explain for the development mode, but
> starting from the installation of postgres, tomcat, geoserver and finally
> geonode.
> With these same steps I had done a previous installation but I had problems
> wanting to upload shapes to geonode or geoserver so I had to reinstall
> everything again.
> 
> The version of Django that I am currently observing is the 1.8.18
> 
> I would greatly appreciate the help of someone who has already been able to
> do the installation correctly.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180212/9f36e2e5/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 13 Feb 2018 07:20:16 +0100
> From: Simone Dalmasso <simone.dalmasso at gmail.com>
> To: SILVIA GAMERO <gamerinsky at gmail.com>
> Cc: geonode-devel <geonode-devel at lists.osgeo.org>
> Subject: Re: [GeoNode-devel] pkg_resources.VersionConflict when python
> 	manage.py migrate
> Message-ID:
> 	<CAAHAC+cxy+tG9v3nSS9zLPGPnJhoo7y6HjvQ1NSE6LCbJT4OjQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi, your django version is correct but looks like other libraries are not,
> like polymorphic. I suggest to run pip install -r requirements.txt again.
> 
> 2018-02-12 23:09 GMT+01:00 SILVIA GAMERO <gamerinsky at gmail.com>:
> 
>> I have problems with geonode2.6x on Centos7, when migrating the data from
>> python manage.py migrate or try to start geonode ..
>> 
>> Traceback (most recent call last):
>>  File "/usr/lib/python2.7/site-packages/django/utils/autoreload.py",
>> line 229, in wrapper
>>    fn(*args, **kwargs)
>>  File "/usr/lib/python2.7/site-packages/django/core/
>> management/commands/runserver.py", line 107, in inner_run
>>    autoreload.raise_last_exception()
>>  File "/usr/lib/python2.7/site-packages/django/utils/autoreload.py",
>> line 252, in raise_last_exception
>>    six.reraise(*_exception)
>>  File "/usr/lib/python2.7/site-packages/django/utils/autoreload.py",
>> line 229, in wrapper
>>    fn(*args, **kwargs)
>>  File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in
>> setup
>>    apps.populate(settings.INSTALLED_APPS)
>>  File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line
>> 85, in populate
>>    app_config = AppConfig.create(entry)
>>  File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 86,
>> in create
>>    module = import_module(entry)
>>  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in
>> import_module
>>    __import__(name)
>>  File "/usr/lib/python2.7/site-packages/polymorphic/__init__.py", line
>> 13, in <module>
>>    __version__ = pkg_resources.require("django-polymorphic")[0].version
>>  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in
>> require
>>    needed = self.resolve(parse_requirements(requirements))
>>  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 630, in
>> resolve
>>    raise VersionConflict(dist,req) # XXX put more info here
>> pkg_resources.VersionConflict: (Django 1.8.18 (/usr/lib/python2.7/site-packages),
>> Requirement.parse('Django>=1.11'))
>> 
>> I followed the steps of the installation guide, although I commented that
>> I have not done the process that explain for the development mode, but
>> starting from the installation of postgres, tomcat, geoserver and finally
>> geonode.
>> With these same steps I had done a previous installation but I had
>> problems wanting to upload shapes to geonode or geoserver so I had to
>> reinstall everything again.
>> 
>> The version of Django that I am currently observing is the 1.8.18
>> 
>> I would greatly appreciate the help of someone who has already been able
>> to do the installation correctly.
>> 
>> 
>> _______________________________________________
>> geonode-devel mailing list
>> geonode-devel at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/geonode-devel
>> 
>> 
> 
> 
> -- 
> Simone
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20180213/365c2a0e/attachment-0001.html>
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-devel
> 
> 
> ------------------------------
> 
> End of geonode-devel Digest, Vol 37, Issue 21
> *********************************************



More information about the geonode-devel mailing list