[GeoNode-users] style management issue

Eugenio Trumpy frippe12573 at hotmail.com
Fri Dec 11 07:13:38 PST 2015


Hello everybody,

I was working with a bit old version of geonode 2.4.dev20151029170512 on ubuntu 14.04 server.
I uploaded 3 different geotiff file. I was dealing with the style of those raster layers.

>From the layer view I was trying to set the style from 'edit layer' style 'manage', but I got this:

UnboundLocalError at /gs/geonode:fav_finale/style/manage
  local variable 'title_node' referenced before assignment
  

    
      Request Method:
      GET
    
    
      Request URL:
      http://my_server_ip/gs/geonode:fav_finale/style/manage
    

    
      Django Version:
      1.6.11
    

    
      Exception Type:
      UnboundLocalError
    


    
      Exception Value:
      local variable 'title_node' referenced before assignment
    


    
      Exception Location:
      /usr/local/lib/python2.7/dist-packages/geoserver/style.py in sld_title, line 83
    

    
      Python Executable:
      /usr/bin/python
    
    
      Python Version:
      2.7.6
    
    
      Python Path:
      ['/dati/.venvs/geonode/lib/python2.7/site-packages',
 '/dati/geonode',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/home/eugenio']
    
    
      Server time:
      ven, 11 Dic 2015 09:12:39 -0600

Looking at apache2 error.log I got:
sudo tail -f /var/log/apache2/error.log
[Fri Dec 11 09:12:39.347828 2015] [:error] [pid 25987:tid 139718709159680]     return view_func(request, *args, **kwargs)
[Fri Dec 11 09:12:39.347833 2015] [:error] [pid 25987:tid 139718709159680]   File "/dati/geonode/geonode/geoserver/views.py", line 169, in layer_style_manage
[Fri Dec 11 09:12:39.347838 2015] [:error] [pid 25987:tid 139718709159680]     set_styles(layer, cat)
[Fri Dec 11 09:12:39.347843 2015] [:error] [pid 25987:tid 139718709159680]   File "/dati/geonode/geonode/geoserver/helpers.py", line 777, in set_styles
[Fri Dec 11 09:12:39.347847 2015] [:error] [pid 25987:tid 139718709159680]     layer.default_style = save_style(default_style)
[Fri Dec 11 09:12:39.347852 2015] [:error] [pid 25987:tid 139718709159680]   File "/dati/geonode/geonode/geoserver/helpers.py", line 792, in save_style
[Fri Dec 11 09:12:39.347857 2015] [:error] [pid 25987:tid 139718709159680]     style.sld_title = gs_style.sld_title
[Fri Dec 11 09:12:39.347861 2015] [:error] [pid 25987:tid 139718709159680]   File "/usr/local/lib/python2.7/dist-packages/geoserver/style.py", line 83, in sld_title
[Fri Dec 11 09:12:39.347866 2015] [:error] [pid 25987:tid 139718709159680]     return title_node.text if title_node is not None else None
[Fri Dec 11 09:12:39.347871 2015] [:error] [pid 25987:tid 139718709159680] UnboundLocalError: local variable 'title_node' referenced before assignment

What does it mean?
Can I solve this issue?

E.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20151211/79c7016c/attachment.html>


More information about the geonode-users mailing list