Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with running geonode setup_data #1230

Closed
prabhamatta opened this issue Oct 15, 2013 · 8 comments
Closed

problem with running geonode setup_data #1230

prabhamatta opened this issue Oct 15, 2013 · 8 comments

Comments

@prabhamatta
Copy link

When I run geoserver using the following command, it runs perfectly:
paver setup
paver start

However, when I try to run using testdata with the following command:
paver setup_data

It gives the following error error:
---> pavement.setup_data
python manage.py importlayers /home/prabha/.venvs/geonode/local/lib/python2.7/site-packages/gisdata/data/good -v2
Verifying that GeoNode is running ...
AssertionError: Cannot connect to the GeoServer at http://localhost:8080/geoserver/
Please make sure you have started it.
.
.
Build failed running pavement.setup_data: Subprocess return code: 1

Why is it giving error to verify if Geonode is running already? Shouldn't the "setup" be run before "start"? Is there some obvious knowledge I am missing here?

@simod
Copy link
Member

simod commented Oct 15, 2013

Hi you have to have geoserver running.
Use paver start_geoserver first and then paver setup_data.

Cheers

2013/10/15 Prabha notifications@github.com

When I run geoserver using the following command, it runs perfectly:
paver setup
paver start

However, when I try to run using testdata with the following command:
paver setup_data

It gives the following error error:
---> pavement.setup_data
python manage.py importlayers
/home/prabha/.venvs/geonode/local/lib/python2.7/site-packages/gisdata/data/good
-v2
Verifying that GeoNode is running ...
AssertionError: Cannot connect to the GeoServer at
http://localhost:8080/geoserver/
Please make sure you have started it.
.
.
Build failed running pavement.setup_data: Subprocess return code: 1

Why is it giving error to verify if Geonode is running already? Shouldn't
the "setup" be run before "start"? Is there some obvious knowledge I am
missing here?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1230
.

Simone

@simod
Copy link
Member

simod commented Apr 16, 2014

Closing as not valid

@simod simod closed this as completed Apr 16, 2014
@rainalopes
Copy link

Please help.After running paver setup command i get the following error.I am running this within a virtual environment:
---> pavement.setup
---> pavement.setup_geoserver
makedirs path('downloaded')
Downloading geoserver binary
Downloading jetty runner
makedirs path('geoserver')
extracting geoserver
---> pavement.setup_qgis_server
---> pavement.updategeoip
python manage.py updategeoip -o
Traceback (most recent call last):
File "manage.py", line 29, in
execute_from_command_line(sys.argv)
File "/home/raina/Desktop/env/lib/python2.7/site-packages/django/core/management/init.py", line 354, in execute_from_command_line
utility.execute()
File "/home/raina/Desktop/env/lib/python2.7/site-packages/django/core/management/init.py", line 328, in execute
django.setup()
File "/home/raina/Desktop/env/lib/python2.7/site-packages/django/init.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/raina/Desktop/env/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/home/raina/Desktop/env/lib/python2.7/site-packages/django/apps/config.py", line 112, in create
mod = import_module(mod_path)
File "/home/raina/anaconda2/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/home/raina/Desktop/geonode/geonode/services/apps.py", line 25, in
from ..layers.models import Layer
File "/home/raina/Desktop/geonode/geonode/layers/models.py", line 34, in
from geonode.base.models import ResourceBase, ResourceBaseManager, resourcebase_post_save
File "/home/raina/Desktop/geonode/geonode/base/models.py", line 32, in
from geonode.decorators import on_ogc_backend
File "/home/raina/Desktop/geonode/geonode/decorators.py", line 24, in
from geonode.utils import check_ogc_backend
File "/home/raina/Desktop/geonode/geonode/utils.py", line 33, in
from osgeo import ogr
ImportError: No module named osgeo

Captured Task Output:

---> pavement.setup
---> pavement.setup_geoserver
makedirs path('downloaded')
makedirs path('geoserver')
---> pavement.setup_qgis_server
---> pavement.updategeoip
python manage.py updategeoip -o

Build failed running pavement.setup: Subprocess return code: 1

@capooti
Copy link
Member

capooti commented Jan 4, 2018 via email

@rainalopes
Copy link

I am installing geonode on a virtual environment.
I figured out that I have gdal version 2.2.2 installed in my system whereas pip install in virtual environment doesnt support this gdal version and there is a version conflict.Therefore the build fails.
Can anyone tell me how to downgrade or uninstall system gdal and install a lower version?

@capooti
Copy link
Member

capooti commented Jan 4, 2018

Yours is a correct explanation. Find out which gdal version you have (for example, gdalinfo --version) and then use same version to install gdal with pip: pip install gdal==yourversion
Which way did you install gdal? which OS do you use?

@rainalopes
Copy link

I am using Ubuntu 16.04.I have gdal version 2.2.2 installed in my system.
pip install gdal==2.2.2 within virtual environment gives me the following error:
Traceback (most recent call last):
File "/home/raina/Desktop/env/bin/pip", line 7, in
from pip import main
File "/home/raina/Desktop/env/lib/python2.7/site-packages/pip/init.py", line 2, in
from future import absolute_import
ImportError: No module named future

@nasrosoft
Copy link

Hi, when i run paver setup i get the following error

---> pavement.setup
---> pavement.setup_geoserver
rmtree path('geoserver/data')
---> pavement.setup_qgis_server
---> pavement.updategeoip
python -W ignore manage.py updategeoip -o
Traceback (most recent call last):
File "manage.py", line 29, in
execute_from_command_line(sys.argv)
File "/home/nasrosoft/.virtualenvs/geonode/lib/python3.8/site-packages/django/core/management/init.py", line 381, in execute_from_command_line
utility.execute()
File "/home/nasrosoft/.virtualenvs/geonode/lib/python3.8/site-packages/django/core/management/init.py", line 357, in execute
django.setup()
File "/home/nasrosoft/.virtualenvs/geonode/lib/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/nasrosoft/.virtualenvs/geonode/lib/python3.8/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/home/nasrosoft/.virtualenvs/geonode/lib/python3.8/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mapstore2_adapter'

Captured Task Output:

---> pavement.setup
---> pavement.setup_geoserver
rmtree path('geoserver/data')
---> pavement.setup_qgis_server
---> pavement.updategeoip
python -W ignore manage.py updategeoip -o

Build failed running pavement.setup: Subprocess return code: 1

geonode 3.1.x , ubuntu 20.04 , the geoserver is runnig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants