librelist archives

« back to archive

Re: Geonode 1.1 RC1 Installation problem(s) on Ubuntu 10.04 VM - virtualenv

Re: Geonode 1.1 RC1 Installation problem(s) on Ubuntu 10.04 VM - virtualenv

From:
Vincent Hussey
Date:
2011-09-21 @ 12:12
Hi,
Compliments to the geonode team, this is a great piece of work.

I am installing Geonode 1.1 RC1 on a virtual machine, os is Ubuntu 10.04.

While following the installation instructions at
http://docs.geonode.org/1.1-RC1/deploy/ubuntu.html, the installation falls
over configuring django at the stage where the virtualenv is started.

sudo apt-get update && sudo apt-get install geonode

Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 9, in <module>
    load_entry_point('virtualenv==
1.4.5', 'console_scripts', 'virtualenv')()
  File "/usr/lib/pymodules/python2.6/virtualenv.py", line 537, in main
    use_setuptools=options.use_setuptools)
  File "/usr/lib/pymodules/python2.6/virtualenv.py", line 630, in
create_environment
    install_pip(py_executable)
  File "/usr/lib/pymodules/python2.6/virtualenv.py", line 390, in
install_pip
    filter_stdout=_filter_setup)
  File "/usr/lib/pymodules/python2.6/virtualenv.py", line 598, in
call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /var/lib/geonode/bin/python
/var/lib/geonode/bin/easy_install /usr/lib/pymodules/python2.6/v...ar.gz
failed with error code 1
/usr/share/geonode/install.sh: line 158: bin/activate: No such file or
directory
Unpacking ./geonode-webapp.pybundle
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/pip.py", line 252, in main
    self.run(options, args)
  File "/usr/lib/python2.6/dist-packages/pip.py", line 408, in run
    requirement_set.install_files(finder, force_root_egg_info=self.bundle)
  File "/usr/lib/python2.6/dist-packages/pip.py", line 1769, in
install_files
    for subreq in req_to_install.bundle_requirements():
  File "/usr/lib/python2.6/dist-packages/pip.py", line 1618, in
bundle_requirements
    url, rev = vcs_backend().parse_checkout_text(content)
AttributeError: 'Git' object has no attribute 'parse_checkout_text'

Storing complete log in ./pip-log.txt
SECRET_KEY = 'THE_SECRET_KEY'
ln: creating symbolic link
`/var/lib/geonode/src/GeoNodePy/geonode/local_settings.py': No such file or
directory
/usr/bin/geonode: line 2: /var/lib/geonode/bin/activate: No such file or
directory
/usr/bin/geonode: line 3: django-admin.py: command not found
/usr/bin/geonode: line 2: /var/lib/geonode/bin/activate: No such file or
directory
/usr/bin/geonode: line 3: django-admin.py: command not found
/usr/bin/geonode: line 2: /var/lib/geonode/bin/activate: No such file or
directory
/usr/bin/geonode: line 3: django-admin.py: command not found


To confirm the problem, after the install, activate etc. have not been
installed in the bin directory:
$ cd /var/lib/geonode
$ ls bin/
easy_install  easy_install-2.6  python
$ sudo virtualenv .
$ ls bin
activate          easy_install      pip      python
activate_this.py  easy_install-2.6  pip-2.6

Trying again completes the install:
$ cd /usr/share/geonode
$ sudo ./install.sh -s post config-post.sh
$ geonode createsuperuser

The django admin site is not finding the associated css files.  Need to add
the following to local_settings.py (as root), and restart apache:
ADMIN_MEDIA_PREFIX = "/static/admin/"

Thanks

Re: [geonode] Re: Geonode 1.1 RC1 Installation problem(s) on Ubuntu 10.04 VM - virtualenv

From:
Ariel Nunez
Date:
2011-09-21 @ 12:20
Thanks for the report Vincent, and the tenacity to find your way around the
problems.

I have fixed the two problems you describe in the current master branch and
they will be part of the 1.1RC2 release.

Make sure you follow the guides in the production notes to configure SITEURL
and printing. Also, you can override the templates by copying from their
current location into /etc/geonode/templates , try it with the index.html in
/var/lib/geonode/src/GeoNodePy/geonode/templates.

Ariel.
On Sep 21, 2011 8:12 AM, "Vincent Hussey" <vinhussey@gmail.com> wrote:
> Hi,
> Compliments to the geonode team, this is a great piece of work.
>
> I am installing Geonode 1.1 RC1 on a virtual machine, os is Ubuntu 10.04.
>
> While following the installation instructions at
> http://docs.geonode.org/1.1-RC1/deploy/ubuntu.html, the installation falls
> over configuring django at the stage where the virtualenv is started.
>
> sudo apt-get update && sudo apt-get install geonode
>
> Traceback (most recent call last):
> File "/usr/bin/virtualenv", line 9, in <module>
> load_entry_point('virtualenv==
> 1.4.5', 'console_scripts', 'virtualenv')()
> File "/usr/lib/pymodules/python2.6/virtualenv.py", line 537, in main
> use_setuptools=options.use_setuptools)
> File "/usr/lib/pymodules/python2.6/virtualenv.py", line 630, in
> create_environment
> install_pip(py_executable)
> File "/usr/lib/pymodules/python2.6/virtualenv.py", line 390, in
> install_pip
> filter_stdout=_filter_setup)
> File "/usr/lib/pymodules/python2.6/virtualenv.py", line 598, in
> call_subprocess
> % (cmd_desc, proc.returncode))
> OSError: Command /var/lib/geonode/bin/python
> /var/lib/geonode/bin/easy_install /usr/lib/pymodules/python2.6/v...ar.gz
> failed with error code 1
> /usr/share/geonode/install.sh: line 158: bin/activate: No such file or
> directory
> Unpacking ./geonode-webapp.pybundle
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python2.6/dist-packages/pip.py", line 252, in main
> self.run(options, args)
> File "/usr/lib/python2.6/dist-packages/pip.py", line 408, in run
> requirement_set.install_files(finder, force_root_egg_info=self.bundle)
> File "/usr/lib/python2.6/dist-packages/pip.py", line 1769, in
> install_files
> for subreq in req_to_install.bundle_requirements():
> File "/usr/lib/python2.6/dist-packages/pip.py", line 1618, in
> bundle_requirements
> url, rev = vcs_backend().parse_checkout_text(content)
> AttributeError: 'Git' object has no attribute 'parse_checkout_text'
>
> Storing complete log in ./pip-log.txt
> SECRET_KEY = 'THE_SECRET_KEY'
> ln: creating symbolic link
> `/var/lib/geonode/src/GeoNodePy/geonode/local_settings.py': No such file
or
> directory
> /usr/bin/geonode: line 2: /var/lib/geonode/bin/activate: No such file or
> directory
> /usr/bin/geonode: line 3: django-admin.py: command not found
> /usr/bin/geonode: line 2: /var/lib/geonode/bin/activate: No such file or
> directory
> /usr/bin/geonode: line 3: django-admin.py: command not found
> /usr/bin/geonode: line 2: /var/lib/geonode/bin/activate: No such file or
> directory
> /usr/bin/geonode: line 3: django-admin.py: command not found
>
>
> To confirm the problem, after the install, activate etc. have not been
> installed in the bin directory:
> $ cd /var/lib/geonode
> $ ls bin/
> easy_install easy_install-2.6 python
> $ sudo virtualenv .
> $ ls bin
> activate easy_install pip python
> activate_this.py easy_install-2.6 pip-2.6
>
> Trying again completes the install:
> $ cd /usr/share/geonode
> $ sudo ./install.sh -s post config-post.sh
> $ geonode createsuperuser
>
> The django admin site is not finding the associated css files. Need to add
> the following to local_settings.py (as root), and restart apache:
> ADMIN_MEDIA_PREFIX = "/static/admin/"
>
> Thanks