[GeoNode-users] GeoNode-Project: migration and createsuperuser
Paolo Corti
pcorti at gmail.com
Mon Aug 13 11:39:53 PDT 2018
Hi
that means you have gdal-bin on your system. To know if you have also
the Python bindings try running: pip freeze | grep -i gdal and you
should see a line with something like pygdal==1.11.3.3
In case they are not there, install the ones needed by your GDAL version.
kind regards
Paolo
On Wed, Aug 1, 2018 at 12:44 PM Julierme Pinheiro
<juliermeopensourcedeveloper at gmail.com> wrote:
>
> Hi Francesco,
>
> Thank you very much for your reply. Yes I do:
>
> geo at gis:~$ gdal-config --version
> 2.2.1
>
> Kind regards
>
> Julierme
>
> On Wed, Aug 1, 2018 at 1:30 PM, francesco bartoli <xbartolone at gmail.com> wrote:
>>
>> It seems your environment is missing the python binding to the gdal library. Do you have GDAL installed on your system?
>>
>> Il giorno mer 1 ago 2018 alle ore 17:55 Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com> ha scritto:
>>>
>>> [1] http://geonode.org/dev-workshop/#/2/3
>>>
>>> On Wed, Aug 1, 2018 at 12:43 PM, Julierme Pinheiro <juliermeopensourcedeveloper at gmail.com> wrote:
>>>>
>>>> Dear GeoNode Users,
>>>>
>>>> I am trying to install geonode-project at 2.6.x according to [1].
>>>>
>>>> When I run python manage.py migrate I hit the following error:
>>>>
>>>> Traceback (most recent call last):
>>>> File "manage.py", line 29, in <module>
>>>> execute_from_command_line(sys.argv)
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
>>>> utility.execute()
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
>>>> django.setup()
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
>>>> apps.populate(settings.INSTALLED_APPS)
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
>>>> app_config.import_models(all_models)
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
>>>> self.models_module = import_module(models_module_name)
>>>> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
>>>> __import__(name)
>>>> File "/home/sipam_geonode/geonode/geonode/base/models.py", line 56, in <module>
>>>> from geonode.utils import bbox_to_wkt
>>>> File "/home/sipam_geonode/geonode/geonode/utils.py", line 30, in <module>
>>>> from osgeo import ogr
>>>> ImportError: No module named osgeo
>>>>
>>>> Also when I run python manage.py createsuperuser
>>>>
>>>> Traceback (most recent call last):
>>>> File "manage.py", line 29, in <module>
>>>> execute_from_command_line(sys.argv)
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
>>>> utility.execute()
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 328, in execute
>>>> django.setup()
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
>>>> apps.populate(settings.INSTALLED_APPS)
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
>>>> app_config.import_models(all_models)
>>>> File "/home/geo/Envs/sipam_geonode/local/lib/python2.7/site-packages/django/apps/config.py", line 198, in import_models
>>>> self.models_module = import_module(models_module_name)
>>>> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
>>>> __import__(name)
>>>> File "/home/sipam_geonode/geonode/geonode/base/models.py", line 56, in <module>
>>>> from geonode.utils import bbox_to_wkt
>>>> File "/home/sipam_geonode/geonode/geonode/utils.py", line 30, in <module>
>>>> from osgeo import ogr
>>>> ImportError: No module named osgeo
>>>>
>>>> Does anyone has faced this problem before, and could share some hints?
>>>>
>>>> Thank you for your time in advance
>>>>
>>>> Best Regards
>>>>
>>>> Julierme
>>>>
>>>>
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
More information about the geonode-users
mailing list