[GeoNode-users] Shapefile Upload error 'NoneType' object has no attribute 'name'

Alpha Ogilo alphaogilo at gmail.com
Thu Feb 9 01:35:28 PST 2017


Hi,
I have installed geonode 2.4 on ubuntu 14.04.i seem not to be able to
upload a shapefile. The error i receive is 'NoneType' object has no
attribute 'name'

The full stacktrace is:

Traceback (most recent call last):
 File "/usr/local/lib/python2.7/dist-packages/geonode/layers/views.py",
line 160, in layer_upload
 title=form.cleaned_data["layer_title"],
 File "/usr/local/lib/python2.7/dist-packages/geonode/layers/utils.py",
line 470, in file_upload
  defaults=defaults
 File "/usr/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/lib/python2.7/dist-packages/modeltranslation/manager.py", line
341, in get_or_create
return super(MultilingualQuerySet, self).get_or_create(**kwargs)
 File "/usr/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/lib/python2.7/dist-packages/django/db/models/base.py", line
545, in save
 force_update=force_update, update_fields=update_fields)
 File "/usr/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/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 791, in save_style
style, created = Style.objects.get_or_create(name=gs_style.name)
AttributeError: 'NoneType' object has no attribute 'name'


Kindly help me with this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170209/328030c2/attachment.html>


More information about the geonode-users mailing list