"AttributeError: 'NoneType' object has no attribute 'makefile'" is
httplib2's somewhat cryptic way of saying that it couldn't connect to a
server to make an HTTP request (not that it got an HTTP error, but that the
network connection itself failed.)

The two most common causes of this situation are:
* GeoServer's not running
* Your *local_settings.py* does have the correct value of the
GEOSERVER_BASE_URL (note that the default is set up for development and uses
a different port from the one most servlet containers use "out of the box".)

Hope this helps.
--
David Winslow
OpenGeo - http://opengeo.org/

On Tue, Apr 12, 2011 at 6:24 AM, lionel b <[email protected]> wrote:

> Hi all
>
> I've just finished install geonode on a debian squeeze. I used
> geonode.1.0 package and followed instructions to install on ubuntu.
> I have a problem with uploading datas. I found this in django logs :
>
> Traceback (most recent call last):
>   File
> "/var/www/geonode/wsgi/geonode/src/GeoNodePy/geonode/maps/views.py",
> line 824, in upload_layer
>     layer, errors = _handle_layer_upload(request)
>   File
> AttributeError: 'NoneType' object has no attribute
> 'makefile'"/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/db/transaction.py",
> line 338, in _commit_manually
>     return func(*args, **kw)
>   File
> "/var/www/geonode/wsgi/geonode/src/GeoNodePy/geonode/maps/views.py",
> line 972, in _handle_layer_upload
>     create_store(name, cfg, overwrite=overwrite)
>   File
> "/var/www/geonode/wsgi/geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line
> 168, in create_featurestore
>     store = self.get_store(name, workspace)
>   File
> "/var/www/geonode/wsgi/geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line
> 116, in get_store
>     stores = [s for s in self.get_stores(workspace) if s.name == name]
>   File
> "/var/www/geonode/wsgi/geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line
> 160, in get_stores
>     for ws in self.get_workspaces():
>   File
> "/var/www/geonode/wsgi/geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line
> 356, in get_workspaces
>     description = self.get_xml("%s/workspaces.xml" % self.service_url)
>   File
> "/var/www/geonode/wsgi/geonode/src/gsconfig.py/src/geoserver/catalog.py",
> line
> 91, in get_xml
>     response, content = self.http.request(url)
>   File
>
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/httplib2/__init__.py",
> line 1129, in request
>     (response, content) = self._request(conn, authority, uri,
> request_uri, method, body, headers, redirections, cachekey)
>   File
>
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/httplib2/__init__.py",
> line 901, in _request
>     (response, content) = self._conn_request(conn, request_uri, method,
> body, headers)
>   File
>
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/httplib2/__init__.py",
> line 871, in _conn_request
>     response = conn.getresponse()
>   File "/usr/lib/python2.6/httplib.py", line 988, in getresponse
>     method=self._method)
>   File "/usr/lib/python2.6/httplib.py", line 330, in __init__
>     self.fp = sock.makefile('rb', 0)
> AttributeError: 'NoneType' object has no attribute 'makefile'
>
> Any idea ?
> thx
> Lionel
>

Reply via email to