<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Arial Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hello Alessio,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for your help!
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I´ve used this python snippet:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">import pip<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">from subprocess import call<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">for dist in pip.get_installed_distributions():<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> call("pip install --upgrade " + dist.project_name, shell=True)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">to upgrade all my pip packages and this made the updatelayers command work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">mit freundlichen Grüßen<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Florian Hoedt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">B.Sc. Florian Hoedt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">Hochschule Ostwestfalen-Lippe / Campus Höxter<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">FB 9 Landschaftsarchitektur und Umweltplanung<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">An der Wilhelmshöhe 44<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">37671 Höxter<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">Tel.: 05271-687-7478<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:gray">E-Mail:</span><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:#999999">
</span><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="mailto:florian.hoedt@hs-owl.de"><span style="font-family:"Arial Narrow","sans-serif"">florian.hoedt@hs-owl.de</span></a></span><span style="font-size:9.0pt;font-family:"Arial Narrow","sans-serif";color:#999999"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><a href="http://www.hs-owl.de/fb9"><span style="font-family:"Arial Narrow","sans-serif"">www.hs-owl.de/fb9</span></a></span><span style="font-size:9.0pt;font-family:"Courier New";color:#000099"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> alessio.fabiani@gmail.com [mailto:alessio.fabiani@gmail.com]
<b>Im Auftrag von </b>Alessio Fabiani<br>
<b>Gesendet:</b> Freitag, 30. Oktober 2015 16:14<br>
<b>An:</b> Jeffrey Johnson<br>
<b>Cc:</b> Florian Hoedt; geonode-devel@lists.osgeo.org<br>
<b>Betreff:</b> Re: [GeoNode-users] updatelayers not working: NoneType object has no attribute find<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">There should be a fix for SLDs on latest gsconfig versions.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Try to update the dependencies with<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">pip install -e .<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">from the GeoNode updated folder.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I'll check the issue though.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Alessio.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">==<br>
GeoServer Professional Services from the experts! Visit<br>
<a href="http://goo.gl/NWWaa2" target="_blank"><span style="color:#1155CC">http://goo.gl/NWWaa2</span></a> for more information.<br>
==<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Ing. Alessio Fabiani<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">@alfa7691<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Founder/Technical Lead<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">GeoSolutions S.A.S.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Via Poggio alle Viti 1187<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">55054 Massarosa (LU)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Italy<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">phone: +39 0584 962313<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">fax: +39 0584 1660272<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">mob: +39 331 6233686<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-------------------------------------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p><b><span lang="IT" style="font-size:7.5pt">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</span></b><o:p></o:p></p>
<p><span lang="IT" style="font-size:7.5pt">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.</span><o:p></o:p></p>
<p><span lang="IT" style="font-size:7.5pt"> </span><o:p></o:p></p>
<p><span style="font-size:7.5pt">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.</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Thu, Oct 29, 2015 at 4:00 PM, Jeffrey Johnson <<a href="mailto:ortelius@gmail.com" target="_blank">ortelius@gmail.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Lets keep this on the list. Ill update the ticket and see if the<br>
GeoSolutions guys have any ideas since they have been working on both<br>
gsconfig and the imagemosaic plugin.<br>
<br>
Jeff<br>
<br>
On Thu, Oct 29, 2015 at 5:00 AM, Florian Hoedt <<a href="mailto:florian.hoedt@hs-owl.de">florian.hoedt@hs-owl.de</a>> wrote:<br>
> Hello Jeffrey,<br>
> 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).<br>
> Nevertheless here is the stacktrace:<br>
> <a href="https://gist.github.com/gannebamm/1e1cd8442f90769d4c31" target="_blank">
https://gist.github.com/gannebamm/1e1cd8442f90769d4c31</a><br>
><br>
> The Layer is an imagemosaic datastore with the geoserver raster style as default style.<br>
><br>
> mit freundlichen Grüßen<br>
> Florian Hoedt<br>
><br>
> B.Sc. Florian Hoedt<br>
> Hochschule Ostwestfalen-Lippe / Campus Höxter<br>
> FB 9 Landschaftsarchitektur und Umweltplanung<br>
> An der Wilhelmshöhe 44<br>
> 37671 Höxter<br>
> Tel.: 05271-687-7478<br>
> E-Mail: <a href="mailto:florian.hoedt@hs-owl.de">florian.hoedt@hs-owl.de</a><br>
> <a href="http://www.hs-owl.de/fb9" target="_blank">www.hs-owl.de/fb9</a><br>
><br>
> -----Ursprüngliche Nachricht-----<br>
> Von: Jeffrey Johnson [mailto:<a href="mailto:ortelius@gmail.com">ortelius@gmail.com</a>]<br>
> Gesendet: Montag, 26. Oktober 2015 17:34<br>
> An: Florian Hoedt<br>
> Cc: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a>;
<a href="mailto:geonode-devel@lists.osgeo.org">geonode-devel@lists.osgeo.org</a><br>
> Betreff: Re: [GeoNode-users] updatelayers not working: NoneType object has no attribute find<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">><br>
> Florian,<br>
><br>
> Can you add your stack trace to the ticket and re-open?<br>
><br>
> Jeff<br>
><br>
> On Mon, Oct 26, 2015 at 2:44 AM, Florian Hoedt <<a href="mailto:florian.hoedt@hs-owl.de">florian.hoedt@hs-owl.de</a>> wrote:<br>
>> Hello List,<br>
>> Seems like this error still is present:<br>
>> <a href="https://github.com/GeoNode/geonode/issues/869" target="_blank">https://github.com/GeoNode/geonode/issues/869</a><br>
>><br>
>> I have created and deleted a lot of datastores in GeoServer (still learning) and after beeing happy with my aerials tried to:<br>
>> sudo geonode updatelayers --skip-geonode-registered<br>
>><br>
>> which gave me:<br>
>> --<br>
>> Traceback (most recent call last):<br>
>> File "/usr/bin/django-admin", line 5, in <module><br>
>> management.execute_from_command_line()<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line<br>
>> utility.execute()<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute<br>
>> self.fetch_command(subcommand).run_from_argv(self.argv)<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv<br>
>> self.execute(*args, **options.__dict__)<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute<br>
>> output = self.handle(*args, **options)<br>
>> File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/management/commands/updatelayers.py", line 108, in handle<br>
>> remove_deleted=remove_deleted)<br>
>> File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 458, in gs_slurp<br>
>> "bbox_y1": Decimal(resource.latlon_bbox[3])<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line 154, in get_or_create<br>
>> return self.get_queryset().get_or_create(**kwargs)<br>
>> File "/usr/local/lib/python2.7/dist-packages/modeltranslation/manager.py", line 341, in get_or_create<br>
>> return super(MultilingualQuerySet, self).get_or_create(**kwargs)<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 383, in get_or_create<br>
>> obj.save(force_insert=True, using=self.db)<br>
>> File "/usr/lib/python2.7/dist-packages/polymorphic/polymorphic_model.py", line 90, in save<br>
>> return super(PolymorphicModel, self).save(*args, **kwargs)<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 545, in save<br>
>> force_update=force_update, update_fields=update_fields)<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 582, in save_base<br>
>> update_fields=update_fields, raw=raw, using=using)<br>
>> File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py", line 185, in send<br>
>> response = receiver(signal=self, sender=sender, **named)<br>
>> File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/signals.py", line 470, in geoserver_post_save<br>
>> set_styles(instance, gs_catalog)<br>
>> File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 777, in set_styles<br>
>> layer.default_style = save_style(default_style)<br>
>> File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py", line 792, in save_style<br>
>> style.sld_title = gs_style.sld_title<br>
>> File "/usr/lib/python2.7/dist-packages/geoserver/style.py", line 49, in sld_title<br>
>> title_node = user_style.find("{<a href="http://www.opengis.net/sld%7dTitle" target="_blank">http://www.opengis.net/sld}Title</a>")<br>
>> Exception: ('Failed to process DOP Hx 2014', AttributeError("'NoneType' object has no attribute 'find'",))<br>
>> --<br>
>><br>
>> I use the raster sld as default renderer. The layer DOP Hx 2014 is an RGB ImageMosaic Datastore.<br>
>> _______________________________________________<br>
>> geonode-users mailing list<br>
>> <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" target="_blank">
http://lists.osgeo.org/mailman/listinfo/geonode-users</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>