[GeoNode-devel] "ImportError: No module named django" when executing "paver setup"
Michael Härtel
haerta at haerta.de
Sat May 18 10:22:36 PDT 2019
Hello List,
this is yet another try to get working geonode installation. I guess mz
fifth attempt...
I followed this instruction but on a linux 18.04
host:http://docs.geonode.org/en/latest/tutorials/install_and_admin/geonode_install/create_geonode_db.html
when it comes to "paver setup" it first didn't find paver but an apt-get
install python-paver corrected this.
Now I want to succeed "paver setup". My virtualEnv "virtenv_geonode" is
active but it says:
(virtenv_geonode) user at geoportal:/home/geonodeuser/geonode_project$
paver setup
Traceback (most recent call last):
File "/usr/bin/paver", line 5, in <module>
main()
File "/usr/lib/python2.7/dist-packages/paver/tasks.py", line 883, in main
_launch_pavement(args)
File "/usr/lib/python2.7/dist-packages/paver/tasks.py", line 851, in
_launch_pavement
exec(compile(source, environment.pavement_file, 'exec'), mod.__dict__)
File "pavement.py", line 21, in <module>
import django
ImportError: No module named django
Django not installed? Let's try to install:
(virtenv_geonode) user at geoportal:/home/geonodeuser/geonode_project$ pip
install django
DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 won't be maintained after
that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: django in
*/home/user/Envs/virtenv_geonode/lib/python2.7/site-packages* (1.11.20)
Requirement already satisfied: pytz in
/home/user/Envs/virtenv_geonode/lib/python2.7/site-packages (from
django) (2019.1)
How surprising, Django is there! Lets check the python path:
(virtenv_geonode) user at geoportal:/home/geonodeuser/geonode_project$ python
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/home/user/Envs/virtenv_geonode/lib/python2.7',
'/home/user/Envs/virtenv_geonode/lib/python2.7/plat-x86_64-linux-gnu',
'/home/user/Envs/virtenv_geonode/lib/python2.7/lib-tk',
'/home/user/Envs/virtenv_geonode/lib/python2.7/lib-old',
'/home/user/Envs/virtenv_geonode/lib/python2.7/lib-dynload',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/home/user/Envs/virtenv_geonode/local/lib/python2.7/site-packages',
'*/home/user/Envs/virtenv_geonode/lib/python2.7/site-packages*']
Oh, well, django is in
"/home/user/Envs/virtenv_geonode/lib/python2.7/site-packages" and the
last element of the python path is
"/home/user/Envs/virtenv_geonode/lib/python2.7/site-packages"
Well, as I noted before, I have no experience with python at all but
this software really drives my crazy.
Does anyone have a clue?
Thank you very much,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20190518/f592d9fa/attachment-0001.html>
More information about the geonode-devel
mailing list