There was a coding error in the implementation of that command.  I guess you
are the first to try using it since it was developed, congratulations :P

I have corrected the issue in the source repository, you can build from a
recent checkout to get the fix, or just edit the appropriate file by hand if
you need to apply the fix in an existing installation.

Here's the change that needs to be made:
https://github.com/GeoNode/geonode/commit/445fddd226c907e59e1f87da70b679690377501b

--
David Winslow
OpenGeo - http://opengeo.org/

On Wed, Aug 17, 2011 at 3:00 PM, simone balbo <[email protected]> wrote:

> Hello,
>
> I'm trying to perform a data batch import to GeoNode with the django
> command "geonode_import".
> I execute this command with virtual environment activated: python manage.py
> geonode_import <data_path>
> and I keep getting this error:
>
> Traceback (most recent call last):
>   File "manage.py", line 14, in <module>
>     execute_manager(settings)
>   File
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/__init__.py",
> line 438, in execute_manager
>     utility.execute()
>   File
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/__init__.py",
> line 379, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py",
> line 191, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/var/www/geonode/wsgi/geonode/lib/python2.6/site-packages/django/core/management/base.py",
> line 218, in execute
>     output = self.handle(*args, **options)
>   File
> "/var/www/geonode/wsgi/geonode/src/GeoNodePy/geonode/maps/management/commands/geonode_import.py",
> line 26, in handle
>     upload(path, opts['user'], opts['overwrite'], opts['keywords'].split())
> NameError: global name 'upload' is not defined
>
> Is this the correct way to use this command? Can you explain what I'm doing
> wrong?
>
> Thanks
>
> Simone
>

Reply via email to