[GeoNode-users] GeoNode-Project: migration and createsuperuser (Julierme Pinheiro)

Julierme Pinheiro juliermeopensourcedeveloper at gmail.com
Tue Aug 7 15:28:00 PDT 2018


Dear Francesco,

Thank you very much for your reply. I see. That was one of my mistakes. I
was settings  different environments for GeoNode Production (GP at 2.8.0) and
GeoNode Development (GD at 2.8.0).

Now, Because I already have GP running smoothly, I assumed that the GP and
GD requirements are installed  and I checked one by one and I got only two
requirements mismatching.

requirements already installed for GP
requirements for GD not installed                        (requirements GP x
GD)
pip freeze | grep -i Django
Django==1.8.19
Django==1.8.19                                                 Match

pip freeze | grep -i six
six==1.10.0
six==1.10.0                                                        Match
django-cuser==201
django-cuser==2017.3.16                                   Match
django-model-utils==3.1.1
django-model-utils==3.1.1                                  Match
Shapely==1.5.17.post1
Shapely==1.5.17                                                Match
*OWSLib==0.15.0
OWSLib==0.16.0    *                                           *MisMatch*
pyshp==1.2.12
pyshp==1.2.12                                                    Match
celery==4.1.0
celery==4.1.0                                                      Match
numpy==1.13.1
numpy==1.13.1                                                   Match
proj==0.1.0
proj==0.1.0                                                         Match
*pyproj==1.9.5.1
pyproj==1.9.3 *                                                 *MisMatch*
pygdal==2.2.1.3
pygdal==2.2.1.3                                                  Match
inflection==0.3.1
inflection==0.3.1                                                 Match
backports.functools-lru-cache==1.5
backports.functools-lru-cache>=1.2.1                  Attend
arrow==0.12.1
arrow==0.12.1                                                    Match
django-haystack==2.7.0
django-haystack==2.7.0                                      Match
django-oauth-toolkit==0.12.0
django-oauth-toolkit==0.12.0                               Match
django-autocomplete-light==2.3.3
django-autocomplete-light==2.3.3                         Match
oauthlib==2.0.1
oauthlib==2.0.1                                                   Match
pycsw==2.0.3
pycsw==2.0.3                                                      Match
lxml==3.6.2
lxml==3.6.2                                                         Match
flake8==2.5.4
flake8==2.5.4                                                      Match
pyflakes==0.8.1
pyflakes==0.8.1                                                      Match
python-dateutil==2.6.1
python-dateutil==2.6.1                                            Match

Assuming that the requirements for GD were installed based on the list
above, I went straight to the command line (pip install -e .
--no-warn-conflicts).

The command ran well. Successfully installed my-geonode


With GP and GD virrtualenv activated I am trying to run paver reset and
hitting the following error:

(geonode) geo at gis:/home/my_geonode/my_geonode$ paver reset
---> pavement.reset
---> pavement.stop
---> pavement.stop_geoserver
Stopping geoserver (process number 20499)
sleep 30
Stopping geoserver (process number 20501)
[Errno 3] No such process
---> pavement.stop_qgis_server
Stopping GeoNode ...
---> pavement.stop_django
rm -rf
/home/geo/Envs/geonode/local/lib/python2.7/site-packages/geonode/development.db
rm -rf my_geonode/development.db
rm -rf my_geonode/uploaded/*
[Errno 2] No such file or directory: path('geoserver/data/global.xml')
[Errno 2] No such file or directory:
path('geoserver/data/security/filter/geonode-oauth2/config.xml')
[Errno 2] No such file or directory:
path('geoserver/data/security/role/geonode REST role service/config.xml')

Any hint in what is causing these errors will be very appreciated.

Thank you very much for your time in advance

Kind regards

Julierme



























On Thu, Aug 2, 2018 at 1:27 PM, francesco bartoli <xbartolone at gmail.com>
wrote:

> Sorry blame myself to made a direct reply in the previous message!
>
> I think probably you have started with too many geonode setups but now
> just to figure out this once forever the trick for inheritance is based on
> the concept to have geonode (as a library) and geonode-project installed
> together in the same virtual environment.
> Once you get this then you can replace the geonode references with the
> same from the geonode-project.
>
> Hope this helps
> Francesco
>
> Il giorno gio 2 ago 2018 alle ore 18:06 Julierme Pinheiro <
> juliermeopensourcedeveloper at gmail.com> ha scritto:
>
>> Dear Francesco,
>>
>> Sorry, I am just amazed the way GeoNode is built. You all do a wonderful
>> work. I used the term bridge because I have to environments GeoNode
>> Production and GeoNode-Project, and I have to connect ( please take the
>> term "bridge" out of consideration) these two environments through Apache2
>> configuration.
>>
>> Just to make sure that I was not doing anything wrong, I installed
>> geonode-project at 2.8.0 and geonode-project at 2.6.3.
>>
>> I did just one change in site_base.css --> .home .jumbotron {
>> background: yellow }
>>
>> I ran python manage.py collectstatic
>>
>> And Lastly, I did as in <http://geonode.org/dev-workshop/#/8/3>,
>> geonode.conf
>>
>>  WSGIScriptAlias / /home/sipam_geonode/geonode/geonode/wsgi.py  #
>> According to the third line after second "Warning" in
>> http://docs.geonode.org/en/master/tutorials/admin/
>> customize_lookfeel/customize/setup_admin.html
>>
>>      <Directory "/home/sipam_geonode/geonode/geonode/"> # According to
>> the fourth bullet point in http://geonode.org/dev-workshop/#/8/3
>> #     <Directory "/home/geonode/my_geonode/my_geonode/">
>>          <Files wsgi.py>
>>              Order deny,allow
>>              Allow from all
>>              Require all granted
>>          </Files>
>>
>>         Order allow,deny
>>         Options Indexes FollowSymLinks
>>         Allow from all
>>         IndexOptions FancyIndexing
>>     </Directory>
>>
>>   <Directory "/home/sipam_geonode/"> # According to the fifth bullet
>> point in http://geonode.org/dev-workshop/#/8/3
>>         Order allow,deny
>>         Options Indexes FollowSymLinks
>>         Allow from all
>>         Require all granted
>>     </Directory>
>>
>>
>> Within this configuration, GeoNode Production goes up and runs, but I do
>> not see inheritance.  So, I am not connecting them correctly.
>>
>> Again I apologize for the term bridge.
>>
>> Thank you very much for your time and help.
>>
>> Kind regards
>>
>> Julierme
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Aug 2, 2018 at 12:17 PM, francesco bartoli <xbartolone at gmail.com>
>> wrote:
>>
>>> Responses inline.
>>>
>>> Il giorno gio 2 ago 2018 alle ore 15:22 Julierme Pinheiro <
>>> juliermeopensourcedeveloper at gmail.com> ha scritto:
>>>
>>>> Dear Francesco,
>>>>
>>>> Thank you very much for your reply and resource suggestion. I am taking
>>>> a python course and as soon as I finished it, I will devour the information
>>>> in http://www.paolocorti.net/foss4g_2017_geonode_solr/.
>>>> <http://www.paolocorti.net/foss4g_2017_geonode_solr/>
>>>>
>>>> Regarding Gdalinfo, I have gdal at 2.2.1 and pygdal at 2.2.1.3
>>>>
>>>> geo at gis:~$ gdal-config --version
>>>> 2.2.1
>>>> geo at gis:~$ gdal-config --version
>>>> 2.2.1
>>>> geo at gis:~$ pip show pygdal
>>>> Name: pygdal
>>>> Version: 2.2.1.3
>>>>
>>>
>>> According to your command you have pygdal installed systemwide which
>>> doesn't mean you have it in each of the virtual environments. So for
>>> instance:
>>>
>>> (sipam_geonode) geo at gis: /home/sipam_geonode/my_geonode$ pip freeze
>>> |grep -i gdal
>>>
>>> should tell you that no entry is listed. This means you have to run "pip
>>> install pygdal==2.2.1.3"
>>>
>>>
>>>>
>>>> Before entering to the resource you sent me, let me just give some more
>>>> information about what I am trying to do. I created three virtualenv for
>>>> GeoNode-Project named by: my_geonode, geonode_project, and sipam_geonode.
>>>> Sorry if I am misunderstanding, but I think I can do that without mixing
>>>> the requirements  (requirements.txt) for each GeoNode vesrion. Also I
>>>> created three users /home/my_geonode; /home/geonode_project and
>>>> /home/sipam_geonode.
>>>>
>>>> (my_geonode) geo at gis: /home/my_geonode/my_geonode  # contains
>>>> GeoNode-Project at 2.8.0. installed according to the pdf in attached.
>>>>
>>>> Fine. GeoNode is up and running.
>>>>
>>>> One issue only: I collected the static directory by running python
>>>> manage.py collectstatic, but I did not see css changes on the index.html.
>>>>
>>>> site_base.css ---> .home .jumbotron { background: yellow }
>>>>
>>>> (geonode_project) geo at gis: /home/geonode_project/my_geonode  #
>>>> contains GeoNode-Project at 2.9.0. installed according to
>>>> https://github.com/geosolutions-it/geonode-project
>>>>
>>>> Issue1: paver sync
>>>>
>>>>
>>>> Response:
>>>>
>>>>  pavement.sync
>>>>  python -W ignore manage.py makemigrations --noinput
>>>> Traceback (most recent call last):
>>>>   File "manage.py", line 31, in <module>
>>>>     execute_from_command_line(sys.argv)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/__init__.py", line 364, in
>>>> execute_from_command_line
>>>>     utility.execute()
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/__init__.py", line 356, in execute
>>>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/base.py", line 283, in
>>>> run_from_argv
>>>>     self.execute(*args, **cmd_options)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/base.py", line 327, in execute
>>>>     self.check()
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/base.py", line 359, in check
>>>>     include_deployment_checks=include_deployment_checks,
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/base.py", line 346, in _run_checks
>>>>     return checks.run_checks(**kwargs)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/checks/registry.py", line 81, in run_checks
>>>>     new_errors = check(app_configs=app_configs)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/checks/urls.py", line 16, in check_url_config
>>>>     return check_resolver(resolver)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/checks/urls.py", line 26, in check_resolver
>>>>     return check_method()
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/urls/resolvers.py", line 254, in check
>>>>     for pattern in self.url_patterns:
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/utils/functional.py", line 35, in __get__
>>>>     res = instance.__dict__[self.name] = self.func(instance)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/urls/resolvers.py", line 405, in url_patterns
>>>>     patterns = getattr(self.urlconf_module, "urlpatterns",
>>>> self.urlconf_module)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/utils/functional.py", line 35, in __get__
>>>>     res = instance.__dict__[self.name] = self.func(instance)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/urls/resolvers.py", line 398, in urlconf_module
>>>>     return import_module(self.urlconf_name)
>>>>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
>>>> import_module
>>>>     __import__(name)
>>>>   File "/home/geonode_project/my_geonode/my_geonode/urls.py", line 24,
>>>> in <module>
>>>>     from geonode.urls import urlpatterns
>>>>   File "/home/geo/Envs/geonode_project/src/geonode/geonode/urls.py",
>>>> line 89, in <module>
>>>>     url(r'^catalogue/', include('geonode.catalogue.urls')),
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/conf/urls/__init__.py", line 50, in include
>>>>     urlconf_module = import_module(urlconf_module)
>>>>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
>>>> import_module
>>>>     __import__(name)
>>>>   File "/home/geo/Envs/geonode_project/src/geonode/geonode/catalogue/urls.py",
>>>> line 22, in <module>
>>>>     from . import views
>>>>   File "/home/geo/Envs/geonode_project/src/geonode/geonode/catalogue/views.py",
>>>> line 29, in <module>
>>>>     from pycsw import server
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/pycsw/__init__.py", line 35, in <module>
>>>>     __version__ = pkg_resources.require("pycsw")[0].version
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/pkg_resources/__init__.py", line 892, in require
>>>>     needed = self.resolve(parse_requirements(requirements))
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/pkg_resources/__init__.py", line 783, in resolve
>>>>     raise VersionConflict(dist, req).with_context(dependent_req)
>>>> pkg_resources.ContextualVersionConflict: (xmltodict 0.9.2
>>>> (/home/geo/Envs/geonode_project/lib/python2.7/site-packages),
>>>> Requirement.parse('xmltodict==0.10.2'), set(['pycsw']))
>>>>
>>>>
>>>> Captured Task Output:
>>>> ---------------------
>>>>
>>>> ---> pavement.sync
>>>>  python -W ignore manage.py makemigrations --noinput
>>>>
>>>> Build failed running pavement.sync: Subprocess return code: 1
>>>>
>>>>
>>>> Issue2: paver start
>>>>
>>>> *Note*: The issue seems to be related to xmltodict version. It is
>>>> installed xmltodict 0.9.2, but it requires xmltodict 0.10.2. My concern is
>>>> to try to upgrade the requirements version and get everything messed up.
>>>>
>>>> (geonode_project) geo at gis:/home/geonode_project/my_geonode$ pip show
>>>> xmltodict
>>>> Name: xmltodict
>>>> Version: 0.9.2
>>>>
>>>>
>>>>
>>>> Traceback (most recent call last):
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/utils/autoreload.py", line 228, in wrapper
>>>>     fn(*args, **kwargs)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/commands/runserver.py", line 124,
>>>> in inner_run
>>>>     self.check(display_num_errors=True)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/base.py", line 359, in check
>>>>     include_deployment_checks=include_deployment_checks,
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/management/base.py", line 346, in _run_checks
>>>>     return checks.run_checks(**kwargs)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/checks/registry.py", line 81, in run_checks
>>>>     new_errors = check(app_configs=app_configs)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/checks/urls.py", line 16, in check_url_config
>>>>     return check_resolver(resolver)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/core/checks/urls.py", line 26, in check_resolver
>>>>     return check_method()
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/urls/resolvers.py", line 254, in check
>>>>     for pattern in self.url_patterns:
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/utils/functional.py", line 35, in __get__
>>>>     res = instance.__dict__[self.name] = self.func(instance)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/urls/resolvers.py", line 405, in url_patterns
>>>>     patterns = getattr(self.urlconf_module, "urlpatterns",
>>>> self.urlconf_module)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/utils/functional.py", line 35, in __get__
>>>>     res = instance.__dict__[self.name] = self.func(instance)
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/urls/resolvers.py", line 398, in urlconf_module
>>>>     return import_module(self.urlconf_name)
>>>>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
>>>> import_module
>>>>     __import__(name)
>>>>   File "/home/geonode_project/my_geonode/my_geonode/urls.py", line 24,
>>>> in <module>
>>>>     from geonode.urls import urlpatterns
>>>>   File "/home/geo/Envs/geonode_project/src/geonode/geonode/urls.py",
>>>> line 89, in <module>
>>>>     url(r'^catalogue/', include('geonode.catalogue.urls')),
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/django/conf/urls/__init__.py", line 50, in include
>>>>     urlconf_module = import_module(urlconf_module)
>>>>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
>>>> import_module
>>>>     __import__(name)
>>>>   File "/home/geo/Envs/geonode_project/src/geonode/geonode/catalogue/urls.py",
>>>> line 22, in <module>
>>>>     from . import views
>>>>   File "/home/geo/Envs/geonode_project/src/geonode/geonode/catalogue/views.py",
>>>> line 29, in <module>
>>>>     from pycsw import server
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/pycsw/__init__.py", line 35, in <module>
>>>>     __version__ = pkg_resources.require("pycsw")[0].version
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/pkg_resources/__init__.py", line 892, in require
>>>>     needed = self.resolve(parse_requirements(requirements))
>>>>   File "/home/geo/Envs/geonode_project/local/lib/python2.7/
>>>> site-packages/pkg_resources/__init__.py", line 783, in resolve
>>>>     raise VersionConflict(dist, req).with_context(dependent_req)
>>>> pkg_resources.ContextualVersionConflict: (xmltodict 0.9.2
>>>> (/home/geo/Envs/geonode_project/lib/python2.7/site-packages),
>>>> Requirement.parse('xmltodict==0.10.2'), set(['pycsw']))
>>>> GeoNode is now available.
>>>>
>>>>
>>>> (sipam_geonode) geo at gis: /home/sipam_geonode/my_geonode  # contains
>>>> GeoNode-Project at 2.6.x. installed according to http://geonode.org/dev-
>>>> workshop/#/2/3
>>>>
>>>> Issues: python manage.py migrate
>>>>            python manage.py createsuperuser
>>>>            python manage.py shell
>>>>
>>>> Response:
>>>>
>>>> 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
>>>>
>>>>
>>>> What I am doing seems to be crazy (;. But I separated my project in two
>>>> parts, in one side I have GeoNode Production working fine and on the other,
>>>> I need to have GeoNode-project. My goal is to have geonode-project working
>>>> fine and make the connection between them. A bridge project started from
>>>> its land edges (;
>>>>
>>>
>>> Regardless of the version you have chosen and the corresponding virtual
>>> environment please note that you definitively don't need the bridge at all.
>>> The scope of geonode-project is right to ease the life of a developer
>>> and basically everything is already bridged ;).
>>>
>>> Just to let's figure out if somehow the workshop is gone to make it
>>> confusing can you tell us where did you find such information to the need
>>> of a bridge?
>>> Maybe we can consider to rewrite that part.
>>>
>>>
>>>>
>>>> Kind regards
>>>>
>>>> Julierme
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Aug 2, 2018 at 7:51 AM, francesco bartoli <xbartolone at gmail.com
>>>> > wrote:
>>>>
>>>>> Hi Julierme,
>>>>>
>>>>> just to give you some quick ways to check what could be wrong.
>>>>>
>>>>> Check what GDAL version is installed or it isn't
>>>>> -----------------------------------------------------
>>>>> $ gdalinfo --version
>>>>>
>>>>> Check if the python bindings for GDAL are installed
>>>>> --------------------------------------------------------------------
>>>>> (virtual environment)
>>>>> $ python manage.py shell
>>>>>
>>>>> (geonode installed systemwide)
>>>>> $ geonode shell
>>>>>
>>>>> then in the interactive python shell
>>>>>
>>>>> >>>from osgeo import ogr
>>>>>
>>>>> Remember to make sure to match the GDAL binary version when you
>>>>> install the python bindings pygdal as already suggested by Toni.
>>>>>
>>>>> A great resource to improve your confidence to programming GeoNode
>>>>> with the interactive shell is the workshop from Paolo Corti:
>>>>>
>>>>> http://www.paolocorti.net/foss4g_2017_geonode_solr/
>>>>>
>>>>>
>>>>> Il giorno gio 2 ago 2018 alle ore 12:27 Julierme Pinheiro <
>>>>> juliermeopensourcedeveloper at gmail.com> ha scritto:
>>>>>
>>>>>> Hi Toni,
>>>>>>
>>>>>> Thank you very much for your reply. The problem remains even after
>>>>>> your suggested command lines. I will separate a brand new Ubuntu at 16.04LTS
>>>>>> machine and see what happens.
>>>>>>
>>>>>> I appreciated your time and help.
>>>>>>
>>>>>> Kind regards
>>>>>>
>>>>>> Julierme
>>>>>>
>>>>>> 2018-08-02 6:07 GMT-03:00 Toni Schönbuchner <
>>>>>> toni.schoenbuchner at csgis.de>:
>>>>>>
>>>>>>> Hi Julierme,
>>>>>>>
>>>>>>>    from osgeo import ogr
>>>>>>> ImportError: No module named osgeo
>>>>>>>
>>>>>>>
>>>>>>> you´re on ubuntu, right? can you check:
>>>>>>>
>>>>>>> $ sudo apt-get install python-gdal gdal-bin libgdal20 libgdal-dev libgdal-devpython-gdal –y
>>>>>>>
>>>>>>> $ pip install pygdal==2.2.1.3
>>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>>
>>>>>>> Toni
>>>>>>>
>>>>>>> -----------------------------------------------
>>>>>>> CSGIS
>>>>>>>
>>>>>>> -----------------------------------------------
>>>>>>> Kolonnadenstraße 1
>>>>>>> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
>>>>>>> 04109 Leipzig
>>>>>>> <https://maps.google.com/?q=Kolonnadenstra%C3%9Fe+1+04109+Leipzig&entry=gmail&source=g>
>>>>>>> -----------------------------------------------
>>>>>>> Mobil +49/ (0) 176 6680 3198
>>>>>>> Tel  +49/ (0) 341 24 04 738
>>>>>>> Fax  +49/ (0) 341 24 04 73
>>>>>>> Web http://csgis.de
>>>>>>> -----------------------------------------------
>>>>>>>
>>>>>>> Hinweis gemäß § 33 BDSG
>>>>>>> Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument
>>>>>>> ist ausschließlich für den
>>>>>>> Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls
>>>>>>> Sie diese E-Mail versehentlich
>>>>>>> erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und
>>>>>>> löschen Sie diese Nachricht
>>>>>>> von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung,
>>>>>>> Vervielfältigung, Veränderung,
>>>>>>> Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.
>>>>>>>
>>>>>>> Am 01.08.2018 um 19:12 schrieb geonode-users-request at lists.osgeo.org
>>>>>>> :
>>>>>>>
>>>>>>> ImportError: No module named osgeo
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> _______________________________________________
>>>>>> geonode-users mailing list
>>>>>> geonode-users at lists.osgeo.org
>>>>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>>>>
>>>>>
>>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180807/f5208d1a/attachment-0001.html>


More information about the geonode-users mailing list