[GeoNode-devel] [GeoNode-users] updatelayers not working: NoneType object has no attribute find

Alessio Fabiani alessio.fabiani at geo-solutions.it
Fri Oct 30 08:14:04 PDT 2015


There should be a fix for SLDs on latest gsconfig versions.

Try to update the dependencies with

pip install -e .

from the GeoNode updated folder.

I'll check the issue though.

Regards,
Alessio.



==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39  331 6233686

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

On Thu, Oct 29, 2015 at 4:00 PM, Jeffrey Johnson <ortelius at gmail.com> wrote:

> Lets keep this on the list. Ill update the ticket and see if the
> GeoSolutions guys have any ideas since they have been working on both
> gsconfig and the imagemosaic plugin.
>
> Jeff
>
> On Thu, Oct 29, 2015 at 5:00 AM, Florian Hoedt <florian.hoedt at hs-owl.de>
> wrote:
> > Hello Jeffrey,
> > I tried to reopen the ticket but it seems like I am not allowed to do it
> (or I just do not know exactly what to click).
> > Nevertheless here is the stacktrace:
> > https://gist.github.com/gannebamm/1e1cd8442f90769d4c31
> >
> > The Layer is an imagemosaic datastore with the geoserver raster style as
> default style.
> >
> > mit freundlichen Grüßen
> > Florian Hoedt
> >
> > B.Sc. Florian Hoedt
> > Hochschule Ostwestfalen-Lippe / Campus Höxter
> > FB 9 Landschaftsarchitektur und Umweltplanung
> > An der Wilhelmshöhe 44
> > 37671 Höxter
> > Tel.: 05271-687-7478
> > E-Mail: florian.hoedt at hs-owl.de
> > www.hs-owl.de/fb9
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Jeffrey Johnson [mailto:ortelius at gmail.com]
> > Gesendet: Montag, 26. Oktober 2015 17:34
> > An: Florian Hoedt
> > Cc: geonode-users at lists.osgeo.org; geonode-devel at lists.osgeo.org
> > Betreff: Re: [GeoNode-users] updatelayers not working: NoneType object
> has no attribute find
> >
> > Florian,
> >
> > Can you add your stack trace to the ticket and re-open?
> >
> > Jeff
> >
> > On Mon, Oct 26, 2015 at 2:44 AM, Florian Hoedt <florian.hoedt at hs-owl.de>
> wrote:
> >> Hello List,
> >> Seems like this error still is present:
> >> https://github.com/GeoNode/geonode/issues/869
> >>
> >> I have created and deleted a lot of datastores in GeoServer (still
> learning) and after beeing happy with my aerials tried to:
> >> sudo geonode updatelayers --skip-geonode-registered
> >>
> >> which gave me:
> >> --
> >> Traceback (most recent call last):
> >>   File "/usr/bin/django-admin", line 5, in <module>
> >>     management.execute_from_command_line()
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
> >>     utility.execute()
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line 392, in execute
> >>     self.fetch_command(subcommand).run_from_argv(self.argv)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
> line 242, in run_from_argv
> >>     self.execute(*args, **options.__dict__)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
> line 285, in execute
> >>     output = self.handle(*args, **options)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py",
> line 108, in handle
> >>     remove_deleted=remove_deleted)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 458, in gs_slurp
> >>     "bbox_y1": Decimal(resource.latlon_bbox[3])
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
> 154, in get_or_create
> >>     return self.get_queryset().get_or_create(**kwargs)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/modeltranslation/manager.py", line
> 341, in get_or_create
> >>     return super(MultilingualQuerySet, self).get_or_create(**kwargs)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line
> 383, in get_or_create
> >>     obj.save(force_insert=True, using=self.db)
> >>   File
> "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line
> 90, in save
> >>     return super(PolymorphicModel, self).save(*args, **kwargs)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line
> 545, in save
> >>     force_update=force_update, update_fields=update_fields)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line
> 582, in save_base
> >>     update_fields=update_fields, raw=raw, using=using)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py",
> line 185, in send
> >>     response = receiver(signal=self, sender=sender, **named)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line
> 470, in geoserver_post_save
> >>     set_styles(instance, gs_catalog)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 777, in set_styles
> >>     layer.default_style = save_style(default_style)
> >>   File
> "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line
> 792, in save_style
> >>     style.sld_title = gs_style.sld_title
> >>   File "/usr/lib/python2.7/dist-packages/geoserver/style.py", line 49,
> in sld_title
> >>     title_node = user_style.find("{http://www.opengis.net/sld}Title")
> >> Exception: ('Failed to process DOP Hx 2014', AttributeError("'NoneType'
> object has no attribute 'find'",))
> >> --
> >>
> >> I use the raster sld as default renderer. The layer DOP Hx 2014 is an
> RGB ImageMosaic Datastore.
> >> _______________________________________________
> >> geonode-users mailing list
> >> geonode-users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20151030/bb16aa5e/attachment.html>


More information about the geonode-devel mailing list