Re: [geonode] Error installing GeoNode from source
- From:
-
- Date:
- 2010-11-02 @ 16:30
Doesn't work for me (I changed shared/dev-paste.ini,
use paver host --bind=0.0.0.0), after deleting the port
forwarding and restarting the guest. Could this be due
to firewall setting on the host? I use the NAT setting.
I am neither a network nor firewall buff, but read a bit
on VirtualBox (Chp 6 and 8). Nowhere there is a suggestion
to use binding to 0.0.0.0.
Guido
>-- Original Message --
>Date: Tue, 2 Nov 2010 11:01:41 -0400
>From: Christian Spanring <cspanring@gmail.com>
>Reply-To: geonode@librelist.com
>Subject: Re: [geonode] Error installing GeoNode from source
>To: geonode@librelist.com
>
>
>you also need to modify shared/dev-paste.ini
>http://github.com/cspanring/geonode/blob/develop/shared/dev-paste.ini#L6
>to access GeoNode's dev server from your host.
>
>On Tue, Nov 2, 2010 at 10:56 AM, Ariel Nunez <ingenieroariel@gmail.com>
wrote:
>> Guido,
>>
>> Did you bind the geonode server to the 0.0.0.0 IP address? I've never
>> had the need to setup port forwarding when using VMs for GeoNode, with
>> Bridge or NAT configurations I would just visit http://GUEST_IP:8000
>> from the host.
>>
>> If you are using paver host you can do that like:
>>
>> paver host --bind=0.0.0.0
>>
>> Cheers,
>> Ariel.
>>
>> On Tue, Nov 2, 2010 at 9:50 AM, <guido.lemoine@jrc.ec.europa.eu> wrote:
>>> Further to installation, did anyone succeed in using port
>>> forwarding to be able to reach geonode running in an Ubuntu
>>> guest on a Windows 7 host?
>>>
>>> I am using:
>>>
>>> vboxmanage modifyvm Hagar --natpf1 "guestweb,tcp,,7000,,8000"
>>>
>>> (Hagar is the name of the Ubuntu guest)
>>>
>>> to try to reach geonode via http://localhost:7000 in a browser
>>> on the host (where all my files are for uploading).
>>> This appears to be the standard procedure for port forwarding,
>>> but I don't get any response (while geonode works fine in the
>>> guest via localhost:8000).
>>>
>>> The "VirtualBox SetUp" instructions in the README.rst seem to
>>> address another scenario (running different browsers in
>>> VirtualBox guests). Also, my guest froze when I did step 1
>>> (switching to "Host-only adapter" and then back to "NAT")
>>>
>>> GL
>>>
>>>
>>>>-- Original Message --
>>>>Date: Tue, 2 Nov 2010 10:10:42 -0400
>>>>From: David Winslow <dwinslow@opengeo.org>
>>>>Reply-To: geonode@librelist.com
>>>>Subject: Re: [geonode] Error installing GeoNode from source
>>>>To: geonode@librelist.com
>>>>
>>>>
>>>>If you are *installing*, setting up a Geonode site on a server for remote
>>>>access, then you should follow the instructions from docs/source/deploy/,
>>>>there are reasonably complete Ubuntu and CentOS instructions there.
The
>>>>Ubuntu instructions have been tested recently against a fresh installation
>>>>of Ubuntu 10.04 LTS.
>>>>
>>>>For setting up a development environment, the README is all there is.
>>> I'll
>>>>comment inline on your specific issues...
>>>>
>>>>On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen
<ole.moller.nielsen@gmail.com>wrote:
>>>>
>>>>> Thanks for all your engagement and suggestions. Meanwhile, I upgraded
>>> my
>>>>> systems to see if that was the problem.
>>>>> Here's the status:
>>>>>
>>>>>
>>>>> - I still need to omit --no-site-packages in bootstrap for paver
>build
>>>>> to find urlgrabber. I do not know if this omission leads to other
>>> issues.
>>>>>
>>>>> --no-site-packages is recommended to avoid problems with incompatible
>>>>versions of GeoNode's python dependencies installed in the system's
>>>>site-packages. On a fresh Ubuntu system this should not be a problem.
>>>>
>>>>>
>>>>> - On Ubuntu 10.04 LTS, I get the following error from the command
>>> paver
>>>>> build (full output log below):
>>>>> - error: cannot open .git/FETCH_HEAD: Permission denied
>>>>>
>>>>> This is a regular, run-of-the-mill filesystem permissions error. One
>>> way
>>>>this might happen is if you had been trying to build as the root user
>>>>(perhaps inadvertently after forgetting to log out of a 'sudo su -'
session)
>>>>and are now trying to build under an unprivileged user account. You
can
>>>>fix
>>>>it with sudo chown $(whoami) -R /path/to/geonode-sources/
>>>>
>>>>>
>>>>> - On Ubuntu 10.10, it gets a bit further but there are lots of
failed
>>>>> checksums when downloading from repo.opengeo.org. I don't know
if
>>> this
>>>>> matters, but it doesn't seem right.
>>>>>
>>>>> Yes, I've brought this checksum issue up with the maintainer of the
>opengeo
>>>>maven repo. For now, it's safe to ignore.
>>>>
>>>>>
>>>>> - Anyway, paver build eventually stops because it is Unable to
locate
>>>>> the Javac compiler. It appears that since Ubuntu ships with open-jre
>>>>(since
>>>>> Lucid) rather than Sun Java one must install the latter manually
>(I
>>>>followed
>>>>> the instructions at
>>>>>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
>>>>the obvious modification for Maverick), agree to the license terms and
>>>>> set JAVA_HOME=/usr/lib/jvm/java-6-sun.
>>>>>
>>>>> The problem is not that you have openjdk (while Sun Java is recommended
>>>>for
>>>>performance reasons, OpenJDK works fine as well.) The problem is that
>>> the
>>>>openjdk-jre package does not provide javac (the Java Compiler, part
of
>>> the
>>>>JDK, or Java Development Kit).
>>>>
>>>>
>>>>>
>>>>> - After that the installation completed succesfully, but when I
>>>>> proceeded to run paver host it hung for a while at 'Jetty is starting
>>>>up,
>>>>> please wait...' , then complained about a missing file
(local_settings.py)
>>>>> and shut itself down. There was no connection at localhost:8000
or
>>> 8001.
>>>>Log
>>>>> is included at the end of this mail.
>>>>>
>>>>> The output you report above seems to indicate that maven is still
looking
>>>>in openjdk and still not finding javac. Without a JDK in the path you
>>> won't
>>>>be able to get GeoServer running, and that means you won't be able to
>run
>>>>GeoNode.
>>>>
>>>>The local_settings.py bit is a red herring, it's just there to warn
you
>>> that
>>>>you're running with the default settings and, at least for deployment
>>>>purposes, they are going to be incorrect.
>>>>
>>>>
>>>>> One problem we are having in Indonesia is that this installation takes
>>>>> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes
>>> very
>>>>> slow.
>>>>> I would really like to know if anyone has installed GeoNode on a fresh
>>>>> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>>>>>
>>>>> Many thanks
>>>>> Ole Nielsen
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>> - Output from paver build on Ubuntu 10.04:
>>>>>
>>>>>
>>>>> - nielso@shiva:~/sandpit/geonode$ source bin/activate
>>>>> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
>>>>> ---> pavement.auto
>>>>> ---> pavement.build
>>>>> ---> pavement.install_deps
>>>>> Installing from requirements file. Use "paver bundle_deps" to create
>>>>an
>>>>> install bundle
>>>>> bin/pip install --download-cache=./build -r shared/core-libs.txt
>>>>> Downloading/unpacking
>>>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
(from
>>>>> -r shared/core-libs.txt (line 2))
>>>>> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
>>>>> %2Fftp%2Freportlab-2.3.tar.gz
>>>>> Running setup.py egg_info for package from
>>>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
>>>>>
>>>>> ################################################
>>>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>>>> ################################################
>>>>> ################################################
>>>>> #Attempting install of _renderPM
>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>>>
>>>>> # installing with freetype version 21
>>>>> ################################################
>>>>>
>>>>> ########## SUMMARY INFO #########
>>>>> ################################################
>>>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>>>> ################################################
>>>>> ################################################
>>>>> #Attempting install of _renderPM
>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>>>
>>>>> # installing with freetype version 21
>>>>> ################################################
>>>>> Obtaining gsconfig.py from git+git://
>>>>> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
>>>>> shared/core-libs.txt (line 5))
>>>>> Updating ./src/gsconfig.py clone
>>>>> Complete output from command /usr/bin/git fetch -q:
>>>>>
>>>>> ----------------------------------------
>>>>> Command /usr/bin/git fetch -q failed with error code 255
>>>>> Storing complete log in ./pip-log.txt
>>>>> error: cannot open .git/FETCH_HEAD: Permission denied
>>>>>
>>>>>
>>>>> Build failed: Subprocess return code: 1
>>>>>
>>>>> (geonode)nielso@shiva:~/sandpit/geonode$
>>>>>
>>>>>
>>>>>
>>>>> - ============================================
>>>>> - Error message regarding Java environment on Ubuntu 10.10
>>>>> - ---> pavement.setup_webapps
>>>>> ---> pavement.setup_geoserver
>>>>> ---> pavement.setup_gs_data
>>>>> cd src/geoserver-geonode-ext
>>>>> mvn clean install
>>>>> [INFO] Scanning for projects...
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Building GeoNode GeoServer Extensions
>>>>> [INFO] task-segment: [clean, install]
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] [clean:clean {execution: default-clean}]
>>>>> [INFO] Deleting file set:
>>>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
>>>>> [**], excluded: [])
>>>>> [INFO] [resources:resources {execution: default-resources}]
>>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>> [INFO] Copying 4 resources
>>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>>> [INFO] Compiling 41 source files to
>>>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [ERROR] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Compilation failure
>>>>> Unable to locate the Javac Compiler in:
>>>>> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
>>>>> Please ensure you are using JDK 1.4 or above and
>>>>> not a JRE (the com.sun.tools.javac.Main class is required).
>>>>> In most cases you can change the location of your Java
>>>>> installation by setting the JAVA_HOME environment variable.
>>>>>
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] For more information, run Maven with the -e switch
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>> [INFO] Total time: 3 seconds
>>>>> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
>>>>> [INFO] Final Memory: 34M/252M
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> Build failed: Subprocess return code: 1
>>>>>
>>>>>
>>>>> ======= Failure to start after succesful build ========
>>>>>
>>>>> Installed 10 object(s) from 1 fixture(s)
>>>>> GeoNode development environment successfully set up.
>>>>> If you have not set up an administrative account, please do so now.
>>>>> Use "paver host" to start up the server.
>>>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
>>>>> ---> pavement.auto
>>>>> ---> pavement.host
>>>>> cd src/geoserver-geonode-ext
>>>>> cd /home/aifdr/sandpit/geonode
>>>>> Django is starting up, please wait...
>>>>> Logging servlet output to jetty.log and django output to django.log...
>>>>> Jetty is starting up, please wait...
>>>>> django-admin.py updatelayers --settings=geonode.settings
>>>>> File local_settings.py is not found. Continuing with default settings
>>>>> Shutting down...
>>>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez
<ingenieroariel@gmail.com>wrote:
>>>>>
>>>>>> I had to do the same for my install yesterday, in my case it was
>>>>>> because the curl version I had was 1.15 and the latest pycurl required
>>>>>> 1.17. I had to first install a new curl and then run (inside the
>>>>>> venv):
>>>>>>
>>>>>> pip install pycurl
>>>>>> pip install
>>>>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>>>
>>>>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>>>>> avoiding the rewrite of the build script.
>>>>>>
>>>>>> Best,
>>>>>> Ariel.
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>>>>>> wrote:
>>>>>> > I haven't looked very hard but I can't find any information about
>>> the
>>>>>> > removal of urlgrabber from the python package repository. I think
>>> it
>>>>>> would
>>>>>> > probably be a good idea for us to start mirroring our dependencies
>>> in
>>>>a
>>>>>> > repository of our own to avoid this sort of thing.
>>>>>> > In the shorter term I would be open to rewriting the build script
>>> to
>>>>>> avoid
>>>>>> > requiring urlgrabber.
>>>>>> > --
>>>>>> > David Winslow
>>>>>> > OpenGeo - http://opengeo.org/
>>>>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
>>>>>> cspanring@gmail.com>
>>>>>> > wrote:
>>>>>> >>
>>>>>> >> Ole,
>>>>>> >>
>>>>>> >> the problem is that easy_install can't find urlgrabber at
>>>>>> pypi.python.org
>>>>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>>>>> >>
>>>>>> >> download and unpack it from http://urlgrabber.baseurl.org/
>>>>>> >>
>>>>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>>>>> >>
>>>>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>>>>> >>
>>>>>> >> $ . bin/activate
>>>>>> >> (geonode) $ cd urlgrabber-3.9.1
>>>>>> >> (geonode) $ python setup.py install
>>>>>> >>
>>>>>> >> in my case it asked for pycurl, which I had to install first
>>>>>> >> (geonode) $ easy_install pycurl
>>>>>> >>
>>>>>> >> That should to it.
>>>>>> >>
>>>>>> >> Christian
>>>>>> >>
>>>>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>>>>> >>
>>>>>> >> > Dear all
>>>>>> >> > I am trying to install GeoNode according to the instructions
at
>>>>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and
>have
>>>>>> gotten as
>>>>>> >> > far as paver build.
>>>>>> >> >
>>>>>> >> > However, paver build fails with the following error: ImportError:
>>>>No
>>>>>> >> > module named urlgrabber.grabber
>>>>>> >> > However, if I start Python normally (i.e. without virtual
>>>>>> environment)
>>>>>> >> > and try it works just fine:
>>>>>> >> >
>>>>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>>>>> >> > [GCC 4.3.3] on linux2
>>>>>> >> > Type "help", "copyright", "credits" or "license" for more
>>>>>> information.
>>>>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>>>>> >> > >>>
>>>>>> >> >
>>>>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>>>>> >> >
>>>>>> >> > The tail of the paver output follows below.
>>>>>> >> > Cheers and thanks for any help
>>>>>> >> > Ole Nielsen
>>>>>> >> >
>>>>>> >> > -- output from paver build --
>>>>>> >> >
>>>>>> >> > ########## SUMMARY INFO #########
>>>>>> >> > ################################################
>>>>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>>>>> >> > ################################################
>>>>>> >> > ################################################
>>>>>> >> > #Attempting install of _renderPM
>>>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>>>>> >> > # installing with freetype version 21
>>>>>> >> > ################################################
>>>>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>>>>> >> > ---> pavement.setup_webapps
>>>>>> >> > ---> pavement.setup_geoserver
>>>>>> >> > ---> pavement.setup_gs_data
>>>>>> >> > Traceback (most recent call last):
>>>>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in
<module>
>>>>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 615, in main
>>>>>> >> > _launch_pavement(args)
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 598, in _launch_pavement
>>>>>> >> > _process_commands(args, auto_pending=auto_pending)
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 563, in _process_commands
>>>>>> >> > task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 241, in __call__
>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 181, in _run_task
>>>>>> >> > return do_task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 160, in do_task
>>>>>> >> > task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 241, in __call__
>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 181, in _run_task
>>>>>> >> > return do_task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 160, in do_task
>>>>>> >> > task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 241, in __call__
>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 181, in _run_task
>>>>>> >> > return do_task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 160, in do_task
>>>>>> >> > task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 241, in __call__
>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 181, in _run_task
>>>>>> >> > return do_task()
>>>>>> >> > File
>>>>>> >> >
>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>> >> > line 161, in do_task
>>>>>> >> > return func(**kw)
>>>>>> >> > File "pavement.py", line 186, in setup_gs_data
>>>>>> >> > grab(src_url, dst_url)
>>>>>> >> > File "pavement.py", line 159, in grab
>>>>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>>>>> >> > ImportError: No module named urlgrabber.grabber
>>>>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>>>>> >> >
>>>>>> >> >
>>>>>> >> >
>>>>>> >> >
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>
Re: [geonode] Error installing GeoNode from source
- From:
- Christian Spanring
- Date:
- 2010-11-02 @ 16:36
I'm actually binding to my guest IP, as mentioned in the README.rst
$ paver host -b GUEST-IP
On Tue, Nov 2, 2010 at 12:30 PM, <guido.lemoine@jrc.ec.europa.eu> wrote:
> Doesn't work for me (I changed shared/dev-paste.ini,
> use paver host --bind=0.0.0.0), after deleting the port
> forwarding and restarting the guest. Could this be due
> to firewall setting on the host? I use the NAT setting.
>
> I am neither a network nor firewall buff, but read a bit
> on VirtualBox (Chp 6 and 8). Nowhere there is a suggestion
> to use binding to 0.0.0.0.
>
> Guido
>
>>-- Original Message --
>>Date: Tue, 2 Nov 2010 11:01:41 -0400
>>From: Christian Spanring <cspanring@gmail.com>
>>Reply-To: geonode@librelist.com
>>Subject: Re: [geonode] Error installing GeoNode from source
>>To: geonode@librelist.com
>>
>>
>>you also need to modify shared/dev-paste.ini
>>http://github.com/cspanring/geonode/blob/develop/shared/dev-paste.ini#L6
>>to access GeoNode's dev server from your host.
>>
>>On Tue, Nov 2, 2010 at 10:56 AM, Ariel Nunez <ingenieroariel@gmail.com>
> wrote:
>>> Guido,
>>>
>>> Did you bind the geonode server to the 0.0.0.0 IP address? I've never
>>> had the need to setup port forwarding when using VMs for GeoNode, with
>>> Bridge or NAT configurations I would just visit http://GUEST_IP:8000
>>> from the host.
>>>
>>> If you are using paver host you can do that like:
>>>
>>> paver host --bind=0.0.0.0
>>>
>>> Cheers,
>>> Ariel.
>>>
>>> On Tue, Nov 2, 2010 at 9:50 AM, <guido.lemoine@jrc.ec.europa.eu> wrote:
>>>> Further to installation, did anyone succeed in using port
>>>> forwarding to be able to reach geonode running in an Ubuntu
>>>> guest on a Windows 7 host?
>>>>
>>>> I am using:
>>>>
>>>> vboxmanage modifyvm Hagar --natpf1 "guestweb,tcp,,7000,,8000"
>>>>
>>>> (Hagar is the name of the Ubuntu guest)
>>>>
>>>> to try to reach geonode via http://localhost:7000 in a browser
>>>> on the host (where all my files are for uploading).
>>>> This appears to be the standard procedure for port forwarding,
>>>> but I don't get any response (while geonode works fine in the
>>>> guest via localhost:8000).
>>>>
>>>> The "VirtualBox SetUp" instructions in the README.rst seem to
>>>> address another scenario (running different browsers in
>>>> VirtualBox guests). Also, my guest froze when I did step 1
>>>> (switching to "Host-only adapter" and then back to "NAT")
>>>>
>>>> GL
>>>>
>>>>
>>>>>-- Original Message --
>>>>>Date: Tue, 2 Nov 2010 10:10:42 -0400
>>>>>From: David Winslow <dwinslow@opengeo.org>
>>>>>Reply-To: geonode@librelist.com
>>>>>Subject: Re: [geonode] Error installing GeoNode from source
>>>>>To: geonode@librelist.com
>>>>>
>>>>>
>>>>>If you are *installing*, setting up a Geonode site on a server for remote
>>>>>access, then you should follow the instructions from docs/source/deploy/,
>>>>>there are reasonably complete Ubuntu and CentOS instructions there.
> The
>>>>>Ubuntu instructions have been tested recently against a fresh installation
>>>>>of Ubuntu 10.04 LTS.
>>>>>
>>>>>For setting up a development environment, the README is all there is.
>>>> I'll
>>>>>comment inline on your specific issues...
>>>>>
>>>>>On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen
<ole.moller.nielsen@gmail.com>wrote:
>>>>>
>>>>>> Thanks for all your engagement and suggestions. Meanwhile, I upgraded
>>>> my
>>>>>> systems to see if that was the problem.
>>>>>> Here's the status:
>>>>>>
>>>>>>
>>>>>> - I still need to omit --no-site-packages in bootstrap for paver
>>build
>>>>>> to find urlgrabber. I do not know if this omission leads to other
>>>> issues.
>>>>>>
>>>>>> --no-site-packages is recommended to avoid problems with incompatible
>>>>>versions of GeoNode's python dependencies installed in the system's
>>>>>site-packages. On a fresh Ubuntu system this should not be a problem.
>>>>>
>>>>>>
>>>>>> - On Ubuntu 10.04 LTS, I get the following error from the command
>>>> paver
>>>>>> build (full output log below):
>>>>>> - error: cannot open .git/FETCH_HEAD: Permission denied
>>>>>>
>>>>>> This is a regular, run-of-the-mill filesystem permissions error. One
>>>> way
>>>>>this might happen is if you had been trying to build as the root user
>>>>>(perhaps inadvertently after forgetting to log out of a 'sudo su -'
> session)
>>>>>and are now trying to build under an unprivileged user account. You
> can
>>>>>fix
>>>>>it with sudo chown $(whoami) -R /path/to/geonode-sources/
>>>>>
>>>>>>
>>>>>> - On Ubuntu 10.10, it gets a bit further but there are lots of
> failed
>>>>>> checksums when downloading from repo.opengeo.org. I don't know
> if
>>>> this
>>>>>> matters, but it doesn't seem right.
>>>>>>
>>>>>> Yes, I've brought this checksum issue up with the maintainer of the
>>opengeo
>>>>>maven repo. For now, it's safe to ignore.
>>>>>
>>>>>>
>>>>>> - Anyway, paver build eventually stops because it is Unable to
> locate
>>>>>> the Javac compiler. It appears that since Ubuntu ships with open-jre
>>>>>(since
>>>>>> Lucid) rather than Sun Java one must install the latter manually
>>(I
>>>>>followed
>>>>>> the instructions at
>>>>>>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
>>>>>the obvious modification for Maverick), agree to the license terms and
>>>>>> set JAVA_HOME=/usr/lib/jvm/java-6-sun.
>>>>>>
>>>>>> The problem is not that you have openjdk (while Sun Java is recommended
>>>>>for
>>>>>performance reasons, OpenJDK works fine as well.) The problem is that
>>>> the
>>>>>openjdk-jre package does not provide javac (the Java Compiler, part
> of
>>>> the
>>>>>JDK, or Java Development Kit).
>>>>>
>>>>>
>>>>>>
>>>>>> - After that the installation completed succesfully, but when I
>>>>>> proceeded to run paver host it hung for a while at 'Jetty is starting
>>>>>up,
>>>>>> please wait...' , then complained about a missing file
(local_settings.py)
>>>>>> and shut itself down. There was no connection at localhost:8000
> or
>>>> 8001.
>>>>>Log
>>>>>> is included at the end of this mail.
>>>>>>
>>>>>> The output you report above seems to indicate that maven is still
> looking
>>>>>in openjdk and still not finding javac. Without a JDK in the path you
>>>> won't
>>>>>be able to get GeoServer running, and that means you won't be able to
>>run
>>>>>GeoNode.
>>>>>
>>>>>The local_settings.py bit is a red herring, it's just there to warn
> you
>>>> that
>>>>>you're running with the default settings and, at least for deployment
>>>>>purposes, they are going to be incorrect.
>>>>>
>>>>>
>>>>>> One problem we are having in Indonesia is that this installation takes
>>>>>> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes
>>>> very
>>>>>> slow.
>>>>>> I would really like to know if anyone has installed GeoNode on a fresh
>>>>>> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>>>>>>
>>>>>> Many thanks
>>>>>> Ole Nielsen
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> - Output from paver build on Ubuntu 10.04:
>>>>>>
>>>>>>
>>>>>> - nielso@shiva:~/sandpit/geonode$ source bin/activate
>>>>>> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
>>>>>> ---> pavement.auto
>>>>>> ---> pavement.build
>>>>>> ---> pavement.install_deps
>>>>>> Installing from requirements file. Use "paver bundle_deps" to create
>>>>>an
>>>>>> install bundle
>>>>>> bin/pip install --download-cache=./build -r shared/core-libs.txt
>>>>>> Downloading/unpacking
>>>>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
> (from
>>>>>> -r shared/core-libs.txt (line 2))
>>>>>> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
>>>>>> %2Fftp%2Freportlab-2.3.tar.gz
>>>>>> Running setup.py egg_info for package from
>>>>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
>>>>>>
>>>>>> ################################################
>>>>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>>>>> ################################################
>>>>>> ################################################
>>>>>> #Attempting install of _renderPM
>>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>>>>
>>>>>> # installing with freetype version 21
>>>>>> ################################################
>>>>>>
>>>>>> ########## SUMMARY INFO #########
>>>>>> ################################################
>>>>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>>>>> ################################################
>>>>>> ################################################
>>>>>> #Attempting install of _renderPM
>>>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>>>>
>>>>>> # installing with freetype version 21
>>>>>> ################################################
>>>>>> Obtaining gsconfig.py from git+git://
>>>>>> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
>>>>>> shared/core-libs.txt (line 5))
>>>>>> Updating ./src/gsconfig.py clone
>>>>>> Complete output from command /usr/bin/git fetch -q:
>>>>>>
>>>>>> ----------------------------------------
>>>>>> Command /usr/bin/git fetch -q failed with error code 255
>>>>>> Storing complete log in ./pip-log.txt
>>>>>> error: cannot open .git/FETCH_HEAD: Permission denied
>>>>>>
>>>>>>
>>>>>> Build failed: Subprocess return code: 1
>>>>>>
>>>>>> (geonode)nielso@shiva:~/sandpit/geonode$
>>>>>>
>>>>>>
>>>>>>
>>>>>> - ============================================
>>>>>> - Error message regarding Java environment on Ubuntu 10.10
>>>>>> - ---> pavement.setup_webapps
>>>>>> ---> pavement.setup_geoserver
>>>>>> ---> pavement.setup_gs_data
>>>>>> cd src/geoserver-geonode-ext
>>>>>> mvn clean install
>>>>>> [INFO] Scanning for projects...
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Building GeoNode GeoServer Extensions
>>>>>> [INFO] task-segment: [clean, install]
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] [clean:clean {execution: default-clean}]
>>>>>> [INFO] Deleting file set:
>>>>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
>>>>>> [**], excluded: [])
>>>>>> [INFO] [resources:resources {execution: default-resources}]
>>>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>> [INFO] Copying 4 resources
>>>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>>>> [INFO] Compiling 41 source files to
>>>>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [ERROR] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Compilation failure
>>>>>> Unable to locate the Javac Compiler in:
>>>>>> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
>>>>>> Please ensure you are using JDK 1.4 or above and
>>>>>> not a JRE (the com.sun.tools.javac.Main class is required).
>>>>>> In most cases you can change the location of your Java
>>>>>> installation by setting the JAVA_HOME environment variable.
>>>>>>
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>> [INFO] Total time: 3 seconds
>>>>>> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
>>>>>> [INFO] Final Memory: 34M/252M
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> Build failed: Subprocess return code: 1
>>>>>>
>>>>>>
>>>>>> ======= Failure to start after succesful build ========
>>>>>>
>>>>>> Installed 10 object(s) from 1 fixture(s)
>>>>>> GeoNode development environment successfully set up.
>>>>>> If you have not set up an administrative account, please do so now.
>>>>>> Use "paver host" to start up the server.
>>>>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
>>>>>> ---> pavement.auto
>>>>>> ---> pavement.host
>>>>>> cd src/geoserver-geonode-ext
>>>>>> cd /home/aifdr/sandpit/geonode
>>>>>> Django is starting up, please wait...
>>>>>> Logging servlet output to jetty.log and django output to django.log...
>>>>>> Jetty is starting up, please wait...
>>>>>> django-admin.py updatelayers --settings=geonode.settings
>>>>>> File local_settings.py is not found. Continuing with default settings
>>>>>> Shutting down...
>>>>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez
<ingenieroariel@gmail.com>wrote:
>>>>>>
>>>>>>> I had to do the same for my install yesterday, in my case it was
>>>>>>> because the curl version I had was 1.15 and the latest pycurl required
>>>>>>> 1.17. I had to first install a new curl and then run (inside the
>>>>>>> venv):
>>>>>>>
>>>>>>> pip install pycurl
>>>>>>> pip install
>>>>>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>>>>
>>>>>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>>>>>> avoiding the rewrite of the build script.
>>>>>>>
>>>>>>> Best,
>>>>>>> Ariel.
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>>>>>>> wrote:
>>>>>>> > I haven't looked very hard but I can't find any information about
>>>> the
>>>>>>> > removal of urlgrabber from the python package repository. I think
>>>> it
>>>>>>> would
>>>>>>> > probably be a good idea for us to start mirroring our dependencies
>>>> in
>>>>>a
>>>>>>> > repository of our own to avoid this sort of thing.
>>>>>>> > In the shorter term I would be open to rewriting the build script
>>>> to
>>>>>>> avoid
>>>>>>> > requiring urlgrabber.
>>>>>>> > --
>>>>>>> > David Winslow
>>>>>>> > OpenGeo - http://opengeo.org/
>>>>>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
>>>>>>> cspanring@gmail.com>
>>>>>>> > wrote:
>>>>>>> >>
>>>>>>> >> Ole,
>>>>>>> >>
>>>>>>> >> the problem is that easy_install can't find urlgrabber at
>>>>>>> pypi.python.org
>>>>>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>>>>>> >>
>>>>>>> >> download and unpack it from http://urlgrabber.baseurl.org/
>>>>>>> >>
>>>>>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>>>>>> >>
>>>>>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>>>>>> >>
>>>>>>> >> $ . bin/activate
>>>>>>> >> (geonode) $ cd urlgrabber-3.9.1
>>>>>>> >> (geonode) $ python setup.py install
>>>>>>> >>
>>>>>>> >> in my case it asked for pycurl, which I had to install first
>>>>>>> >> (geonode) $ easy_install pycurl
>>>>>>> >>
>>>>>>> >> That should to it.
>>>>>>> >>
>>>>>>> >> Christian
>>>>>>> >>
>>>>>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>>>>>> >>
>>>>>>> >> > Dear all
>>>>>>> >> > I am trying to install GeoNode according to the instructions
> at
>>>>>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and
>>have
>>>>>>> gotten as
>>>>>>> >> > far as paver build.
>>>>>>> >> >
>>>>>>> >> > However, paver build fails with the following error: ImportError:
>>>>>No
>>>>>>> >> > module named urlgrabber.grabber
>>>>>>> >> > However, if I start Python normally (i.e. without virtual
>>>>>>> environment)
>>>>>>> >> > and try it works just fine:
>>>>>>> >> >
>>>>>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>>>>>> >> > [GCC 4.3.3] on linux2
>>>>>>> >> > Type "help", "copyright", "credits" or "license" for more
>>>>>>> information.
>>>>>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>>>>>> >> > >>>
>>>>>>> >> >
>>>>>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>>>>>> >> >
>>>>>>> >> > The tail of the paver output follows below.
>>>>>>> >> > Cheers and thanks for any help
>>>>>>> >> > Ole Nielsen
>>>>>>> >> >
>>>>>>> >> > -- output from paver build --
>>>>>>> >> >
>>>>>>> >> > ########## SUMMARY INFO #########
>>>>>>> >> > ################################################
>>>>>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>>>>>> >> > ################################################
>>>>>>> >> > ################################################
>>>>>>> >> > #Attempting install of _renderPM
>>>>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>>>>>> >> > # installing with freetype version 21
>>>>>>> >> > ################################################
>>>>>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>>>>>> >> > ---> pavement.setup_webapps
>>>>>>> >> > ---> pavement.setup_geoserver
>>>>>>> >> > ---> pavement.setup_gs_data
>>>>>>> >> > Traceback (most recent call last):
>>>>>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in
> <module>
>>>>>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 615, in main
>>>>>>> >> > _launch_pavement(args)
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 598, in _launch_pavement
>>>>>>> >> > _process_commands(args, auto_pending=auto_pending)
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 563, in _process_commands
>>>>>>> >> > task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 241, in __call__
>>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 181, in _run_task
>>>>>>> >> > return do_task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 160, in do_task
>>>>>>> >> > task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 241, in __call__
>>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 181, in _run_task
>>>>>>> >> > return do_task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 160, in do_task
>>>>>>> >> > task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 241, in __call__
>>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 181, in _run_task
>>>>>>> >> > return do_task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 160, in do_task
>>>>>>> >> > task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 241, in __call__
>>>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 181, in _run_task
>>>>>>> >> > return do_task()
>>>>>>> >> > File
>>>>>>> >> >
>>>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>>>> >> > line 161, in do_task
>>>>>>> >> > return func(**kw)
>>>>>>> >> > File "pavement.py", line 186, in setup_gs_data
>>>>>>> >> > grab(src_url, dst_url)
>>>>>>> >> > File "pavement.py", line 159, in grab
>>>>>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>>>>>> >> > ImportError: No module named urlgrabber.grabber
>>>>>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>>>>>> >> >
>>>>>>> >> >
>>>>>>> >> >
>>>>>>> >> >
>>>>>>> >>
>>>>>>> >
>>>>>>> >
>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>>
>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
-
- Date:
- 2010-11-02 @ 14:50
Further to installation, did anyone succeed in using port
forwarding to be able to reach geonode running in an Ubuntu
guest on a Windows 7 host?
I am using:
vboxmanage modifyvm Hagar --natpf1 "guestweb,tcp,,7000,,8000"
(Hagar is the name of the Ubuntu guest)
to try to reach geonode via http://localhost:7000 in a browser
on the host (where all my files are for uploading).
This appears to be the standard procedure for port forwarding,
but I don't get any response (while geonode works fine in the
guest via localhost:8000).
The "VirtualBox SetUp" instructions in the README.rst seem to
address another scenario (running different browsers in
VirtualBox guests). Also, my guest froze when I did step 1
(switching to "Host-only adapter" and then back to "NAT")
GL
>-- Original Message --
>Date: Tue, 2 Nov 2010 10:10:42 -0400
>From: David Winslow <dwinslow@opengeo.org>
>Reply-To: geonode@librelist.com
>Subject: Re: [geonode] Error installing GeoNode from source
>To: geonode@librelist.com
>
>
>If you are *installing*, setting up a Geonode site on a server for remote
>access, then you should follow the instructions from docs/source/deploy/,
>there are reasonably complete Ubuntu and CentOS instructions there. The
>Ubuntu instructions have been tested recently against a fresh installation
>of Ubuntu 10.04 LTS.
>
>For setting up a development environment, the README is all there is.
I'll
>comment inline on your specific issues...
>
>On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen <ole.moller.nielsen@gmail.com>wrote:
>
>> Thanks for all your engagement and suggestions. Meanwhile, I upgraded
my
>> systems to see if that was the problem.
>> Here's the status:
>>
>>
>> - I still need to omit --no-site-packages in bootstrap for paver build
>> to find urlgrabber. I do not know if this omission leads to other
issues.
>>
>> --no-site-packages is recommended to avoid problems with incompatible
>versions of GeoNode's python dependencies installed in the system's
>site-packages. On a fresh Ubuntu system this should not be a problem.
>
>>
>> - On Ubuntu 10.04 LTS, I get the following error from the command
paver
>> build (full output log below):
>> - error: cannot open .git/FETCH_HEAD: Permission denied
>>
>> This is a regular, run-of-the-mill filesystem permissions error. One
way
>this might happen is if you had been trying to build as the root user
>(perhaps inadvertently after forgetting to log out of a 'sudo su -' session)
>and are now trying to build under an unprivileged user account. You can
>fix
>it with sudo chown $(whoami) -R /path/to/geonode-sources/
>
>>
>> - On Ubuntu 10.10, it gets a bit further but there are lots of failed
>> checksums when downloading from repo.opengeo.org. I don't know if
this
>> matters, but it doesn't seem right.
>>
>> Yes, I've brought this checksum issue up with the maintainer of the opengeo
>maven repo. For now, it's safe to ignore.
>
>>
>> - Anyway, paver build eventually stops because it is Unable to locate
>> the Javac compiler. It appears that since Ubuntu ships with open-jre
>(since
>> Lucid) rather than Sun Java one must install the latter manually (I
>followed
>> the instructions at
>>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
>the obvious modification for Maverick), agree to the license terms and
>> set JAVA_HOME=/usr/lib/jvm/java-6-sun.
>>
>> The problem is not that you have openjdk (while Sun Java is recommended
>for
>performance reasons, OpenJDK works fine as well.) The problem is that
the
>openjdk-jre package does not provide javac (the Java Compiler, part of
the
>JDK, or Java Development Kit).
>
>
>>
>> - After that the installation completed succesfully, but when I
>> proceeded to run paver host it hung for a while at 'Jetty is starting
>up,
>> please wait...' , then complained about a missing file (local_settings.py)
>> and shut itself down. There was no connection at localhost:8000 or
8001.
>Log
>> is included at the end of this mail.
>>
>> The output you report above seems to indicate that maven is still looking
>in openjdk and still not finding javac. Without a JDK in the path you
won't
>be able to get GeoServer running, and that means you won't be able to run
>GeoNode.
>
>The local_settings.py bit is a red herring, it's just there to warn you
that
>you're running with the default settings and, at least for deployment
>purposes, they are going to be incorrect.
>
>
>> One problem we are having in Indonesia is that this installation takes
>> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes
very
>> slow.
>> I would really like to know if anyone has installed GeoNode on a fresh
>> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>>
>> Many thanks
>> Ole Nielsen
>>
>> ---------------------------------------------------------------------
>>
>> - Output from paver build on Ubuntu 10.04:
>>
>>
>> - nielso@shiva:~/sandpit/geonode$ source bin/activate
>> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
>> ---> pavement.auto
>> ---> pavement.build
>> ---> pavement.install_deps
>> Installing from requirements file. Use "paver bundle_deps" to create
>an
>> install bundle
>> bin/pip install --download-cache=./build -r shared/core-libs.txt
>> Downloading/unpacking
>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from
>> -r shared/core-libs.txt (line 2))
>> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
>> %2Fftp%2Freportlab-2.3.tar.gz
>> Running setup.py egg_info for package from
>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
>>
>> ################################################
>> #Attempting install of _rl_accel, sgmlop & pyHnj
>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>> ################################################
>> ################################################
>> #Attempting install of _renderPM
>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>
>> # installing with freetype version 21
>> ################################################
>>
>> ########## SUMMARY INFO #########
>> ################################################
>> #Attempting install of _rl_accel, sgmlop & pyHnj
>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>> ################################################
>> ################################################
>> #Attempting install of _renderPM
>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>
>> # installing with freetype version 21
>> ################################################
>> Obtaining gsconfig.py from git+git://
>> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
>> shared/core-libs.txt (line 5))
>> Updating ./src/gsconfig.py clone
>> Complete output from command /usr/bin/git fetch -q:
>>
>> ----------------------------------------
>> Command /usr/bin/git fetch -q failed with error code 255
>> Storing complete log in ./pip-log.txt
>> error: cannot open .git/FETCH_HEAD: Permission denied
>>
>>
>> Build failed: Subprocess return code: 1
>>
>> (geonode)nielso@shiva:~/sandpit/geonode$
>>
>>
>>
>> - ============================================
>> - Error message regarding Java environment on Ubuntu 10.10
>> - ---> pavement.setup_webapps
>> ---> pavement.setup_geoserver
>> ---> pavement.setup_gs_data
>> cd src/geoserver-geonode-ext
>> mvn clean install
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building GeoNode GeoServer Extensions
>> [INFO] task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting file set:
>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
>> [**], excluded: [])
>> [INFO] [resources:resources {execution: default-resources}]
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 4 resources
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] Compiling 41 source files to
>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>> Unable to locate the Javac Compiler in:
>> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
>> Please ensure you are using JDK 1.4 or above and
>> not a JRE (the com.sun.tools.javac.Main class is required).
>> In most cases you can change the location of your Java
>> installation by setting the JAVA_HOME environment variable.
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 3 seconds
>> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
>> [INFO] Final Memory: 34M/252M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> Build failed: Subprocess return code: 1
>>
>>
>> ======= Failure to start after succesful build ========
>>
>> Installed 10 object(s) from 1 fixture(s)
>> GeoNode development environment successfully set up.
>> If you have not set up an administrative account, please do so now.
>> Use "paver host" to start up the server.
>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
>> ---> pavement.auto
>> ---> pavement.host
>> cd src/geoserver-geonode-ext
>> cd /home/aifdr/sandpit/geonode
>> Django is starting up, please wait...
>> Logging servlet output to jetty.log and django output to django.log...
>> Jetty is starting up, please wait...
>> django-admin.py updatelayers --settings=geonode.settings
>> File local_settings.py is not found. Continuing with default settings
>> Shutting down...
>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
>>
>>> I had to do the same for my install yesterday, in my case it was
>>> because the curl version I had was 1.15 and the latest pycurl required
>>> 1.17. I had to first install a new curl and then run (inside the
>>> venv):
>>>
>>> pip install pycurl
>>> pip install
>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>
>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>> avoiding the rewrite of the build script.
>>>
>>> Best,
>>> Ariel.
>>>
>>>
>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>>> wrote:
>>> > I haven't looked very hard but I can't find any information about
the
>>> > removal of urlgrabber from the python package repository. I think
it
>>> would
>>> > probably be a good idea for us to start mirroring our dependencies
in
>a
>>> > repository of our own to avoid this sort of thing.
>>> > In the shorter term I would be open to rewriting the build script
to
>>> avoid
>>> > requiring urlgrabber.
>>> > --
>>> > David Winslow
>>> > OpenGeo - http://opengeo.org/
>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
>>> cspanring@gmail.com>
>>> > wrote:
>>> >>
>>> >> Ole,
>>> >>
>>> >> the problem is that easy_install can't find urlgrabber at
>>> pypi.python.org
>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>> >>
>>> >> download and unpack it from http://urlgrabber.baseurl.org/
>>> >>
>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>> >>
>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>> >>
>>> >> $ . bin/activate
>>> >> (geonode) $ cd urlgrabber-3.9.1
>>> >> (geonode) $ python setup.py install
>>> >>
>>> >> in my case it asked for pycurl, which I had to install first
>>> >> (geonode) $ easy_install pycurl
>>> >>
>>> >> That should to it.
>>> >>
>>> >> Christian
>>> >>
>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>> >>
>>> >> > Dear all
>>> >> > I am trying to install GeoNode according to the instructions at
>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
>>> gotten as
>>> >> > far as paver build.
>>> >> >
>>> >> > However, paver build fails with the following error: ImportError:
>No
>>> >> > module named urlgrabber.grabber
>>> >> > However, if I start Python normally (i.e. without virtual
>>> environment)
>>> >> > and try it works just fine:
>>> >> >
>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>> >> > [GCC 4.3.3] on linux2
>>> >> > Type "help", "copyright", "credits" or "license" for more
>>> information.
>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>> >> > >>>
>>> >> >
>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>> >> >
>>> >> > The tail of the paver output follows below.
>>> >> > Cheers and thanks for any help
>>> >> > Ole Nielsen
>>> >> >
>>> >> > -- output from paver build --
>>> >> >
>>> >> > ########## SUMMARY INFO #########
>>> >> > ################################################
>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>> >> > ################################################
>>> >> > ################################################
>>> >> > #Attempting install of _renderPM
>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>> >> > # installing with freetype version 21
>>> >> > ################################################
>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>> >> > ---> pavement.setup_webapps
>>> >> > ---> pavement.setup_geoserver
>>> >> > ---> pavement.setup_gs_data
>>> >> > Traceback (most recent call last):
>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 615, in main
>>> >> > _launch_pavement(args)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 598, in _launch_pavement
>>> >> > _process_commands(args, auto_pending=auto_pending)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 563, in _process_commands
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 160, in do_task
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 160, in do_task
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 160, in do_task
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 161, in do_task
>>> >> > return func(**kw)
>>> >> > File "pavement.py", line 186, in setup_gs_data
>>> >> > grab(src_url, dst_url)
>>> >> > File "pavement.py", line 159, in grab
>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>> >> > ImportError: No module named urlgrabber.grabber
>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >
>>> >
>>>
>>
>>
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-11-02 @ 14:56
Guido,
Did you bind the geonode server to the 0.0.0.0 IP address? I've never
had the need to setup port forwarding when using VMs for GeoNode, with
Bridge or NAT configurations I would just visit http://GUEST_IP:8000
from the host.
If you are using paver host you can do that like:
paver host --bind=0.0.0.0
Cheers,
Ariel.
On Tue, Nov 2, 2010 at 9:50 AM, <guido.lemoine@jrc.ec.europa.eu> wrote:
> Further to installation, did anyone succeed in using port
> forwarding to be able to reach geonode running in an Ubuntu
> guest on a Windows 7 host?
>
> I am using:
>
> vboxmanage modifyvm Hagar --natpf1 "guestweb,tcp,,7000,,8000"
>
> (Hagar is the name of the Ubuntu guest)
>
> to try to reach geonode via http://localhost:7000 in a browser
> on the host (where all my files are for uploading).
> This appears to be the standard procedure for port forwarding,
> but I don't get any response (while geonode works fine in the
> guest via localhost:8000).
>
> The "VirtualBox SetUp" instructions in the README.rst seem to
> address another scenario (running different browsers in
> VirtualBox guests). Also, my guest froze when I did step 1
> (switching to "Host-only adapter" and then back to "NAT")
>
> GL
>
>
>>-- Original Message --
>>Date: Tue, 2 Nov 2010 10:10:42 -0400
>>From: David Winslow <dwinslow@opengeo.org>
>>Reply-To: geonode@librelist.com
>>Subject: Re: [geonode] Error installing GeoNode from source
>>To: geonode@librelist.com
>>
>>
>>If you are *installing*, setting up a Geonode site on a server for remote
>>access, then you should follow the instructions from docs/source/deploy/,
>>there are reasonably complete Ubuntu and CentOS instructions there. The
>>Ubuntu instructions have been tested recently against a fresh installation
>>of Ubuntu 10.04 LTS.
>>
>>For setting up a development environment, the README is all there is.
> I'll
>>comment inline on your specific issues...
>>
>>On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen <ole.moller.nielsen@gmail.com>wrote:
>>
>>> Thanks for all your engagement and suggestions. Meanwhile, I upgraded
> my
>>> systems to see if that was the problem.
>>> Here's the status:
>>>
>>>
>>> - I still need to omit --no-site-packages in bootstrap for paver build
>>> to find urlgrabber. I do not know if this omission leads to other
> issues.
>>>
>>> --no-site-packages is recommended to avoid problems with incompatible
>>versions of GeoNode's python dependencies installed in the system's
>>site-packages. On a fresh Ubuntu system this should not be a problem.
>>
>>>
>>> - On Ubuntu 10.04 LTS, I get the following error from the command
> paver
>>> build (full output log below):
>>> - error: cannot open .git/FETCH_HEAD: Permission denied
>>>
>>> This is a regular, run-of-the-mill filesystem permissions error. One
> way
>>this might happen is if you had been trying to build as the root user
>>(perhaps inadvertently after forgetting to log out of a 'sudo su -' session)
>>and are now trying to build under an unprivileged user account. You can
>>fix
>>it with sudo chown $(whoami) -R /path/to/geonode-sources/
>>
>>>
>>> - On Ubuntu 10.10, it gets a bit further but there are lots of failed
>>> checksums when downloading from repo.opengeo.org. I don't know if
> this
>>> matters, but it doesn't seem right.
>>>
>>> Yes, I've brought this checksum issue up with the maintainer of the opengeo
>>maven repo. For now, it's safe to ignore.
>>
>>>
>>> - Anyway, paver build eventually stops because it is Unable to locate
>>> the Javac compiler. It appears that since Ubuntu ships with open-jre
>>(since
>>> Lucid) rather than Sun Java one must install the latter manually (I
>>followed
>>> the instructions at
>>>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
>>the obvious modification for Maverick), agree to the license terms and
>>> set JAVA_HOME=/usr/lib/jvm/java-6-sun.
>>>
>>> The problem is not that you have openjdk (while Sun Java is recommended
>>for
>>performance reasons, OpenJDK works fine as well.) The problem is that
> the
>>openjdk-jre package does not provide javac (the Java Compiler, part of
> the
>>JDK, or Java Development Kit).
>>
>>
>>>
>>> - After that the installation completed succesfully, but when I
>>> proceeded to run paver host it hung for a while at 'Jetty is starting
>>up,
>>> please wait...' , then complained about a missing file (local_settings.py)
>>> and shut itself down. There was no connection at localhost:8000 or
> 8001.
>>Log
>>> is included at the end of this mail.
>>>
>>> The output you report above seems to indicate that maven is still looking
>>in openjdk and still not finding javac. Without a JDK in the path you
> won't
>>be able to get GeoServer running, and that means you won't be able to run
>>GeoNode.
>>
>>The local_settings.py bit is a red herring, it's just there to warn you
> that
>>you're running with the default settings and, at least for deployment
>>purposes, they are going to be incorrect.
>>
>>
>>> One problem we are having in Indonesia is that this installation takes
>>> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes
> very
>>> slow.
>>> I would really like to know if anyone has installed GeoNode on a fresh
>>> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>>>
>>> Many thanks
>>> Ole Nielsen
>>>
>>> ---------------------------------------------------------------------
>>>
>>> - Output from paver build on Ubuntu 10.04:
>>>
>>>
>>> - nielso@shiva:~/sandpit/geonode$ source bin/activate
>>> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
>>> ---> pavement.auto
>>> ---> pavement.build
>>> ---> pavement.install_deps
>>> Installing from requirements file. Use "paver bundle_deps" to create
>>an
>>> install bundle
>>> bin/pip install --download-cache=./build -r shared/core-libs.txt
>>> Downloading/unpacking
>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from
>>> -r shared/core-libs.txt (line 2))
>>> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
>>> %2Fftp%2Freportlab-2.3.tar.gz
>>> Running setup.py egg_info for package from
>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
>>>
>>> ################################################
>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>> ################################################
>>> ################################################
>>> #Attempting install of _renderPM
>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>
>>> # installing with freetype version 21
>>> ################################################
>>>
>>> ########## SUMMARY INFO #########
>>> ################################################
>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>> ################################################
>>> ################################################
>>> #Attempting install of _renderPM
>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>
>>> # installing with freetype version 21
>>> ################################################
>>> Obtaining gsconfig.py from git+git://
>>> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
>>> shared/core-libs.txt (line 5))
>>> Updating ./src/gsconfig.py clone
>>> Complete output from command /usr/bin/git fetch -q:
>>>
>>> ----------------------------------------
>>> Command /usr/bin/git fetch -q failed with error code 255
>>> Storing complete log in ./pip-log.txt
>>> error: cannot open .git/FETCH_HEAD: Permission denied
>>>
>>>
>>> Build failed: Subprocess return code: 1
>>>
>>> (geonode)nielso@shiva:~/sandpit/geonode$
>>>
>>>
>>>
>>> - ============================================
>>> - Error message regarding Java environment on Ubuntu 10.10
>>> - ---> pavement.setup_webapps
>>> ---> pavement.setup_geoserver
>>> ---> pavement.setup_gs_data
>>> cd src/geoserver-geonode-ext
>>> mvn clean install
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building GeoNode GeoServer Extensions
>>> [INFO] task-segment: [clean, install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [clean:clean {execution: default-clean}]
>>> [INFO] Deleting file set:
>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
>>> [**], excluded: [])
>>> [INFO] [resources:resources {execution: default-resources}]
>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>> [INFO] Copying 4 resources
>>> [INFO] [compiler:compile {execution: default-compile}]
>>> [INFO] Compiling 41 source files to
>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Compilation failure
>>> Unable to locate the Javac Compiler in:
>>> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
>>> Please ensure you are using JDK 1.4 or above and
>>> not a JRE (the com.sun.tools.javac.Main class is required).
>>> In most cases you can change the location of your Java
>>> installation by setting the JAVA_HOME environment variable.
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 3 seconds
>>> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
>>> [INFO] Final Memory: 34M/252M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> Build failed: Subprocess return code: 1
>>>
>>>
>>> ======= Failure to start after succesful build ========
>>>
>>> Installed 10 object(s) from 1 fixture(s)
>>> GeoNode development environment successfully set up.
>>> If you have not set up an administrative account, please do so now.
>>> Use "paver host" to start up the server.
>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
>>> ---> pavement.auto
>>> ---> pavement.host
>>> cd src/geoserver-geonode-ext
>>> cd /home/aifdr/sandpit/geonode
>>> Django is starting up, please wait...
>>> Logging servlet output to jetty.log and django output to django.log...
>>> Jetty is starting up, please wait...
>>> django-admin.py updatelayers --settings=geonode.settings
>>> File local_settings.py is not found. Continuing with default settings
>>> Shutting down...
>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
>>>
>>>> I had to do the same for my install yesterday, in my case it was
>>>> because the curl version I had was 1.15 and the latest pycurl required
>>>> 1.17. I had to first install a new curl and then run (inside the
>>>> venv):
>>>>
>>>> pip install pycurl
>>>> pip install
>>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>
>>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>>> avoiding the rewrite of the build script.
>>>>
>>>> Best,
>>>> Ariel.
>>>>
>>>>
>>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>>>> wrote:
>>>> > I haven't looked very hard but I can't find any information about
> the
>>>> > removal of urlgrabber from the python package repository. I think
> it
>>>> would
>>>> > probably be a good idea for us to start mirroring our dependencies
> in
>>a
>>>> > repository of our own to avoid this sort of thing.
>>>> > In the shorter term I would be open to rewriting the build script
> to
>>>> avoid
>>>> > requiring urlgrabber.
>>>> > --
>>>> > David Winslow
>>>> > OpenGeo - http://opengeo.org/
>>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
>>>> cspanring@gmail.com>
>>>> > wrote:
>>>> >>
>>>> >> Ole,
>>>> >>
>>>> >> the problem is that easy_install can't find urlgrabber at
>>>> pypi.python.org
>>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>>> >>
>>>> >> download and unpack it from http://urlgrabber.baseurl.org/
>>>> >>
>>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>>> >>
>>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>>> >>
>>>> >> $ . bin/activate
>>>> >> (geonode) $ cd urlgrabber-3.9.1
>>>> >> (geonode) $ python setup.py install
>>>> >>
>>>> >> in my case it asked for pycurl, which I had to install first
>>>> >> (geonode) $ easy_install pycurl
>>>> >>
>>>> >> That should to it.
>>>> >>
>>>> >> Christian
>>>> >>
>>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>>> >>
>>>> >> > Dear all
>>>> >> > I am trying to install GeoNode according to the instructions at
>>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
>>>> gotten as
>>>> >> > far as paver build.
>>>> >> >
>>>> >> > However, paver build fails with the following error: ImportError:
>>No
>>>> >> > module named urlgrabber.grabber
>>>> >> > However, if I start Python normally (i.e. without virtual
>>>> environment)
>>>> >> > and try it works just fine:
>>>> >> >
>>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>>> >> > [GCC 4.3.3] on linux2
>>>> >> > Type "help", "copyright", "credits" or "license" for more
>>>> information.
>>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>>> >> > >>>
>>>> >> >
>>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>>> >> >
>>>> >> > The tail of the paver output follows below.
>>>> >> > Cheers and thanks for any help
>>>> >> > Ole Nielsen
>>>> >> >
>>>> >> > -- output from paver build --
>>>> >> >
>>>> >> > ########## SUMMARY INFO #########
>>>> >> > ################################################
>>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>>> >> > ################################################
>>>> >> > ################################################
>>>> >> > #Attempting install of _renderPM
>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>>> >> > # installing with freetype version 21
>>>> >> > ################################################
>>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>>> >> > ---> pavement.setup_webapps
>>>> >> > ---> pavement.setup_geoserver
>>>> >> > ---> pavement.setup_gs_data
>>>> >> > Traceback (most recent call last):
>>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 615, in main
>>>> >> > _launch_pavement(args)
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 598, in _launch_pavement
>>>> >> > _process_commands(args, auto_pending=auto_pending)
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 563, in _process_commands
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 160, in do_task
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 160, in do_task
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 160, in do_task
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 161, in do_task
>>>> >> > return func(**kw)
>>>> >> > File "pavement.py", line 186, in setup_gs_data
>>>> >> > grab(src_url, dst_url)
>>>> >> > File "pavement.py", line 159, in grab
>>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>>> >> > ImportError: No module named urlgrabber.grabber
>>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >>
>>>> >
>>>> >
>>>>
>>>
>>>
>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Christian Spanring
- Date:
- 2010-11-02 @ 15:01
you also need to modify shared/dev-paste.ini
http://github.com/cspanring/geonode/blob/develop/shared/dev-paste.ini#L6
to access GeoNode's dev server from your host.
On Tue, Nov 2, 2010 at 10:56 AM, Ariel Nunez <ingenieroariel@gmail.com> wrote:
> Guido,
>
> Did you bind the geonode server to the 0.0.0.0 IP address? I've never
> had the need to setup port forwarding when using VMs for GeoNode, with
> Bridge or NAT configurations I would just visit http://GUEST_IP:8000
> from the host.
>
> If you are using paver host you can do that like:
>
> paver host --bind=0.0.0.0
>
> Cheers,
> Ariel.
>
> On Tue, Nov 2, 2010 at 9:50 AM, <guido.lemoine@jrc.ec.europa.eu> wrote:
>> Further to installation, did anyone succeed in using port
>> forwarding to be able to reach geonode running in an Ubuntu
>> guest on a Windows 7 host?
>>
>> I am using:
>>
>> vboxmanage modifyvm Hagar --natpf1 "guestweb,tcp,,7000,,8000"
>>
>> (Hagar is the name of the Ubuntu guest)
>>
>> to try to reach geonode via http://localhost:7000 in a browser
>> on the host (where all my files are for uploading).
>> This appears to be the standard procedure for port forwarding,
>> but I don't get any response (while geonode works fine in the
>> guest via localhost:8000).
>>
>> The "VirtualBox SetUp" instructions in the README.rst seem to
>> address another scenario (running different browsers in
>> VirtualBox guests). Also, my guest froze when I did step 1
>> (switching to "Host-only adapter" and then back to "NAT")
>>
>> GL
>>
>>
>>>-- Original Message --
>>>Date: Tue, 2 Nov 2010 10:10:42 -0400
>>>From: David Winslow <dwinslow@opengeo.org>
>>>Reply-To: geonode@librelist.com
>>>Subject: Re: [geonode] Error installing GeoNode from source
>>>To: geonode@librelist.com
>>>
>>>
>>>If you are *installing*, setting up a Geonode site on a server for remote
>>>access, then you should follow the instructions from docs/source/deploy/,
>>>there are reasonably complete Ubuntu and CentOS instructions there. The
>>>Ubuntu instructions have been tested recently against a fresh installation
>>>of Ubuntu 10.04 LTS.
>>>
>>>For setting up a development environment, the README is all there is.
>> I'll
>>>comment inline on your specific issues...
>>>
>>>On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen
<ole.moller.nielsen@gmail.com>wrote:
>>>
>>>> Thanks for all your engagement and suggestions. Meanwhile, I upgraded
>> my
>>>> systems to see if that was the problem.
>>>> Here's the status:
>>>>
>>>>
>>>> - I still need to omit --no-site-packages in bootstrap for paver build
>>>> to find urlgrabber. I do not know if this omission leads to other
>> issues.
>>>>
>>>> --no-site-packages is recommended to avoid problems with incompatible
>>>versions of GeoNode's python dependencies installed in the system's
>>>site-packages. On a fresh Ubuntu system this should not be a problem.
>>>
>>>>
>>>> - On Ubuntu 10.04 LTS, I get the following error from the command
>> paver
>>>> build (full output log below):
>>>> - error: cannot open .git/FETCH_HEAD: Permission denied
>>>>
>>>> This is a regular, run-of-the-mill filesystem permissions error. One
>> way
>>>this might happen is if you had been trying to build as the root user
>>>(perhaps inadvertently after forgetting to log out of a 'sudo su -' session)
>>>and are now trying to build under an unprivileged user account. You can
>>>fix
>>>it with sudo chown $(whoami) -R /path/to/geonode-sources/
>>>
>>>>
>>>> - On Ubuntu 10.10, it gets a bit further but there are lots of failed
>>>> checksums when downloading from repo.opengeo.org. I don't know if
>> this
>>>> matters, but it doesn't seem right.
>>>>
>>>> Yes, I've brought this checksum issue up with the maintainer of the opengeo
>>>maven repo. For now, it's safe to ignore.
>>>
>>>>
>>>> - Anyway, paver build eventually stops because it is Unable to locate
>>>> the Javac compiler. It appears that since Ubuntu ships with open-jre
>>>(since
>>>> Lucid) rather than Sun Java one must install the latter manually (I
>>>followed
>>>> the instructions at
>>>>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
>>>the obvious modification for Maverick), agree to the license terms and
>>>> set JAVA_HOME=/usr/lib/jvm/java-6-sun.
>>>>
>>>> The problem is not that you have openjdk (while Sun Java is recommended
>>>for
>>>performance reasons, OpenJDK works fine as well.) The problem is that
>> the
>>>openjdk-jre package does not provide javac (the Java Compiler, part of
>> the
>>>JDK, or Java Development Kit).
>>>
>>>
>>>>
>>>> - After that the installation completed succesfully, but when I
>>>> proceeded to run paver host it hung for a while at 'Jetty is starting
>>>up,
>>>> please wait...' , then complained about a missing file (local_settings.py)
>>>> and shut itself down. There was no connection at localhost:8000 or
>> 8001.
>>>Log
>>>> is included at the end of this mail.
>>>>
>>>> The output you report above seems to indicate that maven is still looking
>>>in openjdk and still not finding javac. Without a JDK in the path you
>> won't
>>>be able to get GeoServer running, and that means you won't be able to run
>>>GeoNode.
>>>
>>>The local_settings.py bit is a red herring, it's just there to warn you
>> that
>>>you're running with the default settings and, at least for deployment
>>>purposes, they are going to be incorrect.
>>>
>>>
>>>> One problem we are having in Indonesia is that this installation takes
>>>> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes
>> very
>>>> slow.
>>>> I would really like to know if anyone has installed GeoNode on a fresh
>>>> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>>>>
>>>> Many thanks
>>>> Ole Nielsen
>>>>
>>>> ---------------------------------------------------------------------
>>>>
>>>> - Output from paver build on Ubuntu 10.04:
>>>>
>>>>
>>>> - nielso@shiva:~/sandpit/geonode$ source bin/activate
>>>> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
>>>> ---> pavement.auto
>>>> ---> pavement.build
>>>> ---> pavement.install_deps
>>>> Installing from requirements file. Use "paver bundle_deps" to create
>>>an
>>>> install bundle
>>>> bin/pip install --download-cache=./build -r shared/core-libs.txt
>>>> Downloading/unpacking
>>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from
>>>> -r shared/core-libs.txt (line 2))
>>>> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
>>>> %2Fftp%2Freportlab-2.3.tar.gz
>>>> Running setup.py egg_info for package from
>>>> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
>>>>
>>>> ################################################
>>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>>> ################################################
>>>> ################################################
>>>> #Attempting install of _renderPM
>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>>
>>>> # installing with freetype version 21
>>>> ################################################
>>>>
>>>> ########## SUMMARY INFO #########
>>>> ################################################
>>>> #Attempting install of _rl_accel, sgmlop & pyHnj
>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
>>>> ################################################
>>>> ################################################
>>>> #Attempting install of _renderPM
>>>> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>>>>
>>>> # installing with freetype version 21
>>>> ################################################
>>>> Obtaining gsconfig.py from git+git://
>>>> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
>>>> shared/core-libs.txt (line 5))
>>>> Updating ./src/gsconfig.py clone
>>>> Complete output from command /usr/bin/git fetch -q:
>>>>
>>>> ----------------------------------------
>>>> Command /usr/bin/git fetch -q failed with error code 255
>>>> Storing complete log in ./pip-log.txt
>>>> error: cannot open .git/FETCH_HEAD: Permission denied
>>>>
>>>>
>>>> Build failed: Subprocess return code: 1
>>>>
>>>> (geonode)nielso@shiva:~/sandpit/geonode$
>>>>
>>>>
>>>>
>>>> - ============================================
>>>> - Error message regarding Java environment on Ubuntu 10.10
>>>> - ---> pavement.setup_webapps
>>>> ---> pavement.setup_geoserver
>>>> ---> pavement.setup_gs_data
>>>> cd src/geoserver-geonode-ext
>>>> mvn clean install
>>>> [INFO] Scanning for projects...
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Building GeoNode GeoServer Extensions
>>>> [INFO] task-segment: [clean, install]
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] [clean:clean {execution: default-clean}]
>>>> [INFO] Deleting file set:
>>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
>>>> [**], excluded: [])
>>>> [INFO] [resources:resources {execution: default-resources}]
>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>> [INFO] Copying 4 resources
>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>> [INFO] Compiling 41 source files to
>>>> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Compilation failure
>>>> Unable to locate the Javac Compiler in:
>>>> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
>>>> Please ensure you are using JDK 1.4 or above and
>>>> not a JRE (the com.sun.tools.javac.Main class is required).
>>>> In most cases you can change the location of your Java
>>>> installation by setting the JAVA_HOME environment variable.
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] For more information, run Maven with the -e switch
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 3 seconds
>>>> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
>>>> [INFO] Final Memory: 34M/252M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> Build failed: Subprocess return code: 1
>>>>
>>>>
>>>> ======= Failure to start after succesful build ========
>>>>
>>>> Installed 10 object(s) from 1 fixture(s)
>>>> GeoNode development environment successfully set up.
>>>> If you have not set up an administrative account, please do so now.
>>>> Use "paver host" to start up the server.
>>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
>>>> ---> pavement.auto
>>>> ---> pavement.host
>>>> cd src/geoserver-geonode-ext
>>>> cd /home/aifdr/sandpit/geonode
>>>> Django is starting up, please wait...
>>>> Logging servlet output to jetty.log and django output to django.log...
>>>> Jetty is starting up, please wait...
>>>> django-admin.py updatelayers --settings=geonode.settings
>>>> File local_settings.py is not found. Continuing with default settings
>>>> Shutting down...
>>>> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
>>>>
>>>>> I had to do the same for my install yesterday, in my case it was
>>>>> because the curl version I had was 1.15 and the latest pycurl required
>>>>> 1.17. I had to first install a new curl and then run (inside the
>>>>> venv):
>>>>>
>>>>> pip install pycurl
>>>>> pip install
>>>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>>
>>>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>>>> avoiding the rewrite of the build script.
>>>>>
>>>>> Best,
>>>>> Ariel.
>>>>>
>>>>>
>>>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>>>>> wrote:
>>>>> > I haven't looked very hard but I can't find any information about
>> the
>>>>> > removal of urlgrabber from the python package repository. I think
>> it
>>>>> would
>>>>> > probably be a good idea for us to start mirroring our dependencies
>> in
>>>a
>>>>> > repository of our own to avoid this sort of thing.
>>>>> > In the shorter term I would be open to rewriting the build script
>> to
>>>>> avoid
>>>>> > requiring urlgrabber.
>>>>> > --
>>>>> > David Winslow
>>>>> > OpenGeo - http://opengeo.org/
>>>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
>>>>> cspanring@gmail.com>
>>>>> > wrote:
>>>>> >>
>>>>> >> Ole,
>>>>> >>
>>>>> >> the problem is that easy_install can't find urlgrabber at
>>>>> pypi.python.org
>>>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>>>> >>
>>>>> >> download and unpack it from http://urlgrabber.baseurl.org/
>>>>> >>
>>>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>>>> >>
>>>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>>>> >>
>>>>> >> $ . bin/activate
>>>>> >> (geonode) $ cd urlgrabber-3.9.1
>>>>> >> (geonode) $ python setup.py install
>>>>> >>
>>>>> >> in my case it asked for pycurl, which I had to install first
>>>>> >> (geonode) $ easy_install pycurl
>>>>> >>
>>>>> >> That should to it.
>>>>> >>
>>>>> >> Christian
>>>>> >>
>>>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>>>> >>
>>>>> >> > Dear all
>>>>> >> > I am trying to install GeoNode according to the instructions at
>>>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
>>>>> gotten as
>>>>> >> > far as paver build.
>>>>> >> >
>>>>> >> > However, paver build fails with the following error: ImportError:
>>>No
>>>>> >> > module named urlgrabber.grabber
>>>>> >> > However, if I start Python normally (i.e. without virtual
>>>>> environment)
>>>>> >> > and try it works just fine:
>>>>> >> >
>>>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>>>> >> > [GCC 4.3.3] on linux2
>>>>> >> > Type "help", "copyright", "credits" or "license" for more
>>>>> information.
>>>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>>>> >> > >>>
>>>>> >> >
>>>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>>>> >> >
>>>>> >> > The tail of the paver output follows below.
>>>>> >> > Cheers and thanks for any help
>>>>> >> > Ole Nielsen
>>>>> >> >
>>>>> >> > -- output from paver build --
>>>>> >> >
>>>>> >> > ########## SUMMARY INFO #########
>>>>> >> > ################################################
>>>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>>>> >> > ################################################
>>>>> >> > ################################################
>>>>> >> > #Attempting install of _renderPM
>>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>>>> >> > # installing with freetype version 21
>>>>> >> > ################################################
>>>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>>>> >> > ---> pavement.setup_webapps
>>>>> >> > ---> pavement.setup_geoserver
>>>>> >> > ---> pavement.setup_gs_data
>>>>> >> > Traceback (most recent call last):
>>>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>>>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 615, in main
>>>>> >> > _launch_pavement(args)
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 598, in _launch_pavement
>>>>> >> > _process_commands(args, auto_pending=auto_pending)
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 563, in _process_commands
>>>>> >> > task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 241, in __call__
>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 181, in _run_task
>>>>> >> > return do_task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 160, in do_task
>>>>> >> > task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 241, in __call__
>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 181, in _run_task
>>>>> >> > return do_task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 160, in do_task
>>>>> >> > task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 241, in __call__
>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 181, in _run_task
>>>>> >> > return do_task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 160, in do_task
>>>>> >> > task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 241, in __call__
>>>>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 181, in _run_task
>>>>> >> > return do_task()
>>>>> >> > File
>>>>> >> >
>>>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>>> >> > line 161, in do_task
>>>>> >> > return func(**kw)
>>>>> >> > File "pavement.py", line 186, in setup_gs_data
>>>>> >> > grab(src_url, dst_url)
>>>>> >> > File "pavement.py", line 159, in grab
>>>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>>>> >> > ImportError: No module named urlgrabber.grabber
>>>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>>>> >> >
>>>>> >> >
>>>>> >> >
>>>>> >> >
>>>>> >>
>>>>> >
>>>>> >
>>>>>
>>>>
>>>>
>>
>>
>>
>
Re: [geonode] Error installing GeoNode from source
- From:
-
- Date:
- 2010-10-30 @ 09:58
David,
I manage to install GeoNode now on Ubuntu 10.06 running in VirtualBox.
Installation is somewhat challenging, esp. for the casual tester, but
doable.
I tested the upload with my vector set, and it works fine locally. In
fact, I retried the public demo version, and that one works now as well.
Someone must have tweaked it between last week and now.
It's great! Just what we are looking for. I am going to read up on Django
and Python a bit to see if we can contrib in other ways.
I read that you mentioned to drop dependency on PIL. I saw that during
the install JAI is installed (as part of geoserver). I would be interested
to understand what is done in PIL that could most likely be done in JAI.
I use Groovy with JAI a lot, which is a nice way to java-script for image
processing.
Guido
>-- Original Message --
>Date: Fri, 29 Oct 2010 09:02:22 -0400
>From: David Winslow <dwinslow@opengeo.org>
>Reply-To: geonode@librelist.com
>Subject: Re: [geonode] Error installing GeoNode from source
>To: geonode@librelist.com
>
>
>I haven't looked very hard but I can't find any information about the
>removal of urlgrabber from the python package repository. I think it would
>probably be a good idea for us to start mirroring our dependencies in a
>repository of our own to avoid this sort of thing.
>
>In the shorter term I would be open to rewriting the build script to avoid
>requiring urlgrabber.
>
>--
>David Winslow
>OpenGeo - http://opengeo.org/
>
>On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com>wrote:
>
>> Ole,
>>
>> the problem is that easy_install can't find urlgrabber at
pypi.python.organymore,
>so you have to install urlgrabber manually as workaround:
>>
>> download and unpack it from http://urlgrabber.baseurl.org/
>>
>> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>
>> install urlgrabber in GeoNode's Virtual Environment:
>>
>> $ . bin/activate
>> (geonode) $ cd urlgrabber-3.9.1
>> (geonode) $ python setup.py install
>>
>> in my case it asked for pycurl, which I had to install first
>> (geonode) $ easy_install pycurl
>>
>> That should to it.
>>
>> Christian
>>
>> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>
>> > Dear all
>> > I am trying to install GeoNode according to the instructions at
>> http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have gotten
>> as far as paver build.
>> >
>> > However, paver build fails with the following error: ImportError: No
>> module named urlgrabber.grabber
>> > However, if I start Python normally (i.e. without virtual environment)
>> and try it works just fine:
>> >
>> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>> > [GCC 4.3.3] on linux2
>> > Type "help", "copyright", "credits" or "license" for more information.
>> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>> > >>>
>> >
>> > I am running Ubuntu 9.04 - 64 bit.
>> >
>> > The tail of the paver output follows below.
>> > Cheers and thanks for any help
>> > Ole Nielsen
>> >
>> > -- output from paver build --
>> >
>> > ########## SUMMARY INFO #########
>> > ################################################
>> > #Attempting install of _rl_accel, sgmlop & pyHnj
>> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>> > ################################################
>> > ################################################
>> > #Attempting install of _renderPM
>> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>> > # installing with freetype version 21
>> > ################################################
>> > Successfully installed avatar gsconfig.py OWSLib reportlab
>> > ---> pavement.setup_webapps
>> > ---> pavement.setup_geoserver
>> > ---> pavement.setup_gs_data
>> > Traceback (most recent call last):
>> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 615, in main
>> > _launch_pavement(args)
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 598, in _launch_pavement
>> > _process_commands(args, auto_pending=auto_pending)
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 563, in _process_commands
>> > task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 181, in _run_task
>> > return do_task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 160, in do_task
>> > task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 181, in _run_task
>> > return do_task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 160, in do_task
>> > task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 181, in _run_task
>> > return do_task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 160, in do_task
>> > task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 181, in _run_task
>> > return do_task()
>> > File
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> line 161, in do_task
>> > return func(**kw)
>> > File "pavement.py", line 186, in setup_gs_data
>> > grab(src_url, dst_url)
>> > File "pavement.py", line 159, in grab
>> > from urlgrabber.grabber import urlgrab, URLGrabError
>> > ImportError: No module named urlgrabber.grabber
>> > (geonode)nielso@shiva:~/sandpit/geonode$
>> >
>> >
>> >
>> >
>>
>>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-01 @ 14:25
On Sat, Oct 30, 2010 at 5:58 AM, <guido.lemoine@jrc.ec.europa.eu> wrote:
> David,
>
> I manage to install GeoNode now on Ubuntu 10.06 running in VirtualBox.
> Installation is somewhat challenging, esp. for the casual tester, but
> doable.
>
Do you have any suggestions for improving this situation? I'd be interested
in working on making installation simpler. I should note that OpenGeo
currently has a contract to work on Ubuntu packages for GeoNode, which
should simplify the installation process considerably for that platform.
However, since customized GeoNodes will (hopefully) be common I think the
"from-scratch" install should be as easy as possible as well.
I tested the upload with my vector set, and it works fine locally. In
> fact, I retried the public demo version, and that one works now as well.
> Someone must have tweaked it between last week and now.
>
Yes, at the time of the RC2
<http://geonode.org/2010/10/geonode-1-0-rc2/>release I updated the
demo site with the latest version of the code.
> It's great! Just what we are looking for. I am going to read up on Django
> and Python a bit to see if we can contrib in other ways.
>
> I read that you mentioned to drop dependency on PIL. I saw that during
> the install JAI is installed (as part of geoserver). I would be interested
> to understand what is done in PIL that could most likely be done in JAI.
> I use Groovy with JAI a lot, which is a nice way to java-script for image
> processing.
>
No code in GeoNode itself actually uses PIL, but a third-party library we
are using for user profiles uses it to resize uploaded profile avatars.
ReportLab, which we have discussed using for some map reports, also uses
PIL. So, all our usage of PIL is in libraries that aren't maintained by the
GeoNode project.
I think there is some interest in having a GeoNode variant that is
Jython-compatible, which is the only reasonable way I see us replacing PIL
with JAI for this purpose. (I am also aware of
JPype<http://jpype.sourceforge.net/>,
but I think that using that would actually worsen the installation story,
while still requiring us to modify code.) If you are interested in working
or funding work on a Jython port of GeoNode let me know, I can help you
assess what's keeping GeoNode from running on Jython as-is.
--
David Winslow
OpenGeo - http://opengeo.org/
Guido
>
>
> >-- Original Message --
> >Date: Fri, 29 Oct 2010 09:02:22 -0400
> >From: David Winslow <dwinslow@opengeo.org>
> >Reply-To: geonode@librelist.com
> >Subject: Re: [geonode] Error installing GeoNode from source
> >To: geonode@librelist.com
> >
> >
> >I haven't looked very hard but I can't find any information about the
> >removal of urlgrabber from the python package repository. I think it
> would
> >probably be a good idea for us to start mirroring our dependencies in a
> >repository of our own to avoid this sort of thing.
> >
> >In the shorter term I would be open to rewriting the build script to avoid
> >requiring urlgrabber.
> >
> >--
> >David Winslow
> >OpenGeo - http://opengeo.org/
> >
> >On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com
> >wrote:
> >
> >> Ole,
> >>
> >> the problem is that easy_install can't find urlgrabber at
> pypi.python.organymore,
> >so you have to install urlgrabber manually as workaround:
> >>
> >> download and unpack it from http://urlgrabber.baseurl.org/
> >>
> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> >>
> >> install urlgrabber in GeoNode's Virtual Environment:
> >>
> >> $ . bin/activate
> >> (geonode) $ cd urlgrabber-3.9.1
> >> (geonode) $ python setup.py install
> >>
> >> in my case it asked for pycurl, which I had to install first
> >> (geonode) $ easy_install pycurl
> >>
> >> That should to it.
> >>
> >> Christian
> >>
> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> >>
> >> > Dear all
> >> > I am trying to install GeoNode according to the instructions at
> >> http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
> gotten
> >> as far as paver build.
> >> >
> >> > However, paver build fails with the following error: ImportError: No
> >> module named urlgrabber.grabber
> >> > However, if I start Python normally (i.e. without virtual environment)
> >> and try it works just fine:
> >> >
> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> >> > [GCC 4.3.3] on linux2
> >> > Type "help", "copyright", "credits" or "license" for more information.
> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> >> > >>>
> >> >
> >> > I am running Ubuntu 9.04 - 64 bit.
> >> >
> >> > The tail of the paver output follows below.
> >> > Cheers and thanks for any help
> >> > Ole Nielsen
> >> >
> >> > -- output from paver build --
> >> >
> >> > ########## SUMMARY INFO #########
> >> > ################################################
> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> >> > ################################################
> >> > ################################################
> >> > #Attempting install of _renderPM
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> >> > # installing with freetype version 21
> >> > ################################################
> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> >> > ---> pavement.setup_webapps
> >> > ---> pavement.setup_geoserver
> >> > ---> pavement.setup_gs_data
> >> > Traceback (most recent call last):
> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 615, in main
> >> > _launch_pavement(args)
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 598, in _launch_pavement
> >> > _process_commands(args, auto_pending=auto_pending)
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 563, in _process_commands
> >> > task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 181, in _run_task
> >> > return do_task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 160, in do_task
> >> > task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 181, in _run_task
> >> > return do_task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 160, in do_task
> >> > task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 181, in _run_task
> >> > return do_task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 160, in do_task
> >> > task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 181, in _run_task
> >> > return do_task()
> >> > File
> >>
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> line 161, in do_task
> >> > return func(**kw)
> >> > File "pavement.py", line 186, in setup_gs_data
> >> > grab(src_url, dst_url)
> >> > File "pavement.py", line 159, in grab
> >> > from urlgrabber.grabber import urlgrab, URLGrabError
> >> > ImportError: No module named urlgrabber.grabber
> >> > (geonode)nielso@shiva:~/sandpit/geonode$
> >> >
> >> >
> >> >
> >> >
> >>
> >>
>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-10-29 @ 13:02
I haven't looked very hard but I can't find any information about the
removal of urlgrabber from the python package repository. I think it would
probably be a good idea for us to start mirroring our dependencies in a
repository of our own to avoid this sort of thing.
In the shorter term I would be open to rewriting the build script to avoid
requiring urlgrabber.
--
David Winslow
OpenGeo - http://opengeo.org/
On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com>wrote:
> Ole,
>
> the problem is that easy_install can't find urlgrabber at
pypi.python.organymore, so you have to install urlgrabber manually as
workaround:
>
> download and unpack it from http://urlgrabber.baseurl.org/
>
> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> $ tar xvzf urlgrabber-3.9.1.tar.gz
>
> install urlgrabber in GeoNode's Virtual Environment:
>
> $ . bin/activate
> (geonode) $ cd urlgrabber-3.9.1
> (geonode) $ python setup.py install
>
> in my case it asked for pycurl, which I had to install first
> (geonode) $ easy_install pycurl
>
> That should to it.
>
> Christian
>
> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>
> > Dear all
> > I am trying to install GeoNode according to the instructions at
> http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have gotten
> as far as paver build.
> >
> > However, paver build fails with the following error: ImportError: No
> module named urlgrabber.grabber
> > However, if I start Python normally (i.e. without virtual environment)
> and try it works just fine:
> >
> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> > [GCC 4.3.3] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> > >>>
> >
> > I am running Ubuntu 9.04 - 64 bit.
> >
> > The tail of the paver output follows below.
> > Cheers and thanks for any help
> > Ole Nielsen
> >
> > -- output from paver build --
> >
> > ########## SUMMARY INFO #########
> > ################################################
> > #Attempting install of _rl_accel, sgmlop & pyHnj
> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> > ################################################
> > ################################################
> > #Attempting install of _renderPM
> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> > # installing with freetype version 21
> > ################################################
> > Successfully installed avatar gsconfig.py OWSLib reportlab
> > ---> pavement.setup_webapps
> > ---> pavement.setup_geoserver
> > ---> pavement.setup_gs_data
> > Traceback (most recent call last):
> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 615, in main
> > _launch_pavement(args)
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 598, in _launch_pavement
> > _process_commands(args, auto_pending=auto_pending)
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 563, in _process_commands
> > task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 241, in __call__
> > retval = environment._run_task(self.name, self.needs, self.func)
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 181, in _run_task
> > return do_task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 160, in do_task
> > task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 241, in __call__
> > retval = environment._run_task(self.name, self.needs, self.func)
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 181, in _run_task
> > return do_task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 160, in do_task
> > task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 241, in __call__
> > retval = environment._run_task(self.name, self.needs, self.func)
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 181, in _run_task
> > return do_task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 160, in do_task
> > task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 241, in __call__
> > retval = environment._run_task(self.name, self.needs, self.func)
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 181, in _run_task
> > return do_task()
> > File
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> line 161, in do_task
> > return func(**kw)
> > File "pavement.py", line 186, in setup_gs_data
> > grab(src_url, dst_url)
> > File "pavement.py", line 159, in grab
> > from urlgrabber.grabber import urlgrab, URLGrabError
> > ImportError: No module named urlgrabber.grabber
> > (geonode)nielso@shiva:~/sandpit/geonode$
> >
> >
> >
> >
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-10-29 @ 13:20
I had to do the same for my install yesterday, in my case it was
because the curl version I had was 1.15 and the latest pycurl required
1.17. I had to first install a new curl and then run (inside the
venv):
pip install pycurl
pip install http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
I fully support the idea of setting up our own PyPi mirror, hopefully
avoiding the rewrite of the build script.
Best,
Ariel.
On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org> wrote:
> I haven't looked very hard but I can't find any information about the
> removal of urlgrabber from the python package repository. I think it would
> probably be a good idea for us to start mirroring our dependencies in a
> repository of our own to avoid this sort of thing.
> In the shorter term I would be open to rewriting the build script to avoid
> requiring urlgrabber.
> --
> David Winslow
> OpenGeo - http://opengeo.org/
> On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com>
> wrote:
>>
>> Ole,
>>
>> the problem is that easy_install can't find urlgrabber at pypi.python.org
>> anymore, so you have to install urlgrabber manually as workaround:
>>
>> download and unpack it from http://urlgrabber.baseurl.org/
>>
>> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>
>> install urlgrabber in GeoNode's Virtual Environment:
>>
>> $ . bin/activate
>> (geonode) $ cd urlgrabber-3.9.1
>> (geonode) $ python setup.py install
>>
>> in my case it asked for pycurl, which I had to install first
>> (geonode) $ easy_install pycurl
>>
>> That should to it.
>>
>> Christian
>>
>> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>
>> > Dear all
>> > I am trying to install GeoNode according to the instructions at
>> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have gotten as
>> > far as paver build.
>> >
>> > However, paver build fails with the following error: ImportError: No
>> > module named urlgrabber.grabber
>> > However, if I start Python normally (i.e. without virtual environment)
>> > and try it works just fine:
>> >
>> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>> > [GCC 4.3.3] on linux2
>> > Type "help", "copyright", "credits" or "license" for more information.
>> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>> > >>>
>> >
>> > I am running Ubuntu 9.04 - 64 bit.
>> >
>> > The tail of the paver output follows below.
>> > Cheers and thanks for any help
>> > Ole Nielsen
>> >
>> > -- output from paver build --
>> >
>> > ########## SUMMARY INFO #########
>> > ################################################
>> > #Attempting install of _rl_accel, sgmlop & pyHnj
>> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>> > ################################################
>> > ################################################
>> > #Attempting install of _renderPM
>> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>> > # installing with freetype version 21
>> > ################################################
>> > Successfully installed avatar gsconfig.py OWSLib reportlab
>> > ---> pavement.setup_webapps
>> > ---> pavement.setup_geoserver
>> > ---> pavement.setup_gs_data
>> > Traceback (most recent call last):
>> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 615, in main
>> > _launch_pavement(args)
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 598, in _launch_pavement
>> > _process_commands(args, auto_pending=auto_pending)
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 563, in _process_commands
>> > task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 181, in _run_task
>> > return do_task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 160, in do_task
>> > task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 181, in _run_task
>> > return do_task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 160, in do_task
>> > task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 181, in _run_task
>> > return do_task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 160, in do_task
>> > task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 241, in __call__
>> > retval = environment._run_task(self.name, self.needs, self.func)
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 181, in _run_task
>> > return do_task()
>> > File
>> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> > line 161, in do_task
>> > return func(**kw)
>> > File "pavement.py", line 186, in setup_gs_data
>> > grab(src_url, dst_url)
>> > File "pavement.py", line 159, in grab
>> > from urlgrabber.grabber import urlgrab, URLGrabError
>> > ImportError: No module named urlgrabber.grabber
>> > (geonode)nielso@shiva:~/sandpit/geonode$
>> >
>> >
>> >
>> >
>>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ole Nielsen
- Date:
- 2010-11-02 @ 10:27
Thanks for all your engagement and suggestions. Meanwhile, I upgraded my
systems to see if that was the problem.
Here's the status:
- I still need to omit --no-site-packages in bootstrap for paver build to
find urlgrabber. I do not know if this omission leads to other issues.
- On Ubuntu 10.04 LTS, I get the following error from the command paver
build (full output log below):
- error: cannot open .git/FETCH_HEAD: Permission denied
- On Ubuntu 10.10, it gets a bit further but there are lots of failed
checksums when downloading from repo.opengeo.org. I don't know if this
matters, but it doesn't seem right. Anyway, paver build eventually stops
because it is Unable to locate the Javac compiler. It appears that since
Ubuntu ships with open-jre (since Lucid) rather than Sun Java one must
install the latter manually (I followed the instructions at
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
the obvious modification for Maverick), agree to the license terms and
set JAVA_HOME=/usr/lib/jvm/java-6-sun. After that the installation completed
succesfully, but when I proceeded to run paver host it hung for a while at
'Jetty is starting up, please wait...' , then complained about a missing
file (local_settings.py) and shut itself down. There was no connection at
localhost:8000 or 8001. Log is included at the end of this mail.
One problem we are having in Indonesia is that this installation takes
several hours with our bandwitdth (~7MB/s) so troubleshooting becomes very
slow.
I would really like to know if anyone has installed GeoNode on a fresh
Ubuntu installation (10.04 or 10.10) and get the exact steps required.
Many thanks
Ole Nielsen
---------------------------------------------------------------------
- Output from paver build on Ubuntu 10.04:
- nielso@shiva:~/sandpit/geonode$ source bin/activate
(geonode)nielso@shiva:~/sandpit/geonode$ paver build
---> pavement.auto
---> pavement.build
---> pavement.install_deps
Installing from requirements file. Use "paver bundle_deps" to create an
install bundle
bin/pip install --download-cache=./build -r shared/core-libs.txt
Downloading/unpacking
http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from -r
shared/core-libs.txt (line 2))
Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
%2Fftp%2Freportlab-2.3.tar.gz
Running setup.py egg_info for package from
http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
################################################
#Attempting install of _rl_accel, sgmlop & pyHnj
#extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
# installing with freetype version 21
################################################
########## SUMMARY INFO #########
################################################
#Attempting install of _rl_accel, sgmlop & pyHnj
#extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
# installing with freetype version 21
################################################
Obtaining gsconfig.py from git+git://
github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
shared/core-libs.txt (line 5))
Updating ./src/gsconfig.py clone
Complete output from command /usr/bin/git fetch -q:
----------------------------------------
Command /usr/bin/git fetch -q failed with error code 255
Storing complete log in ./pip-log.txt
error: cannot open .git/FETCH_HEAD: Permission denied
Build failed: Subprocess return code: 1
(geonode)nielso@shiva:~/sandpit/geonode$
- ============================================
- Error message regarding Java environment on Ubuntu 10.10
- ---> pavement.setup_webapps
---> pavement.setup_geoserver
---> pavement.setup_gs_data
cd src/geoserver-geonode-ext
mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building GeoNode GeoServer Extensions
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set:
/home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
[**], excluded: [])
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 41 source files to
/home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
[INFO] Final Memory: 34M/252M
[INFO]
------------------------------------------------------------------------
Build failed: Subprocess return code: 1
======= Failure to start after succesful build ========
Installed 10 object(s) from 1 fixture(s)
GeoNode development environment successfully set up.
If you have not set up an administrative account, please do so now.
Use "paver host" to start up the server.
(geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
---> pavement.auto
---> pavement.host
cd src/geoserver-geonode-ext
cd /home/aifdr/sandpit/geonode
Django is starting up, please wait...
Logging servlet output to jetty.log and django output to django.log...
Jetty is starting up, please wait...
django-admin.py updatelayers --settings=geonode.settings
File local_settings.py is not found. Continuing with default settings
Shutting down...
(geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> I had to do the same for my install yesterday, in my case it was
> because the curl version I had was 1.15 and the latest pycurl required
> 1.17. I had to first install a new curl and then run (inside the
> venv):
>
> pip install pycurl
> pip install http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>
> I fully support the idea of setting up our own PyPi mirror, hopefully
> avoiding the rewrite of the build script.
>
> Best,
> Ariel.
>
>
> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
> wrote:
> > I haven't looked very hard but I can't find any information about the
> > removal of urlgrabber from the python package repository. I think it
> would
> > probably be a good idea for us to start mirroring our dependencies in a
> > repository of our own to avoid this sort of thing.
> > In the shorter term I would be open to rewriting the build script to
> avoid
> > requiring urlgrabber.
> > --
> > David Winslow
> > OpenGeo - http://opengeo.org/
> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com
> >
> > wrote:
> >>
> >> Ole,
> >>
> >> the problem is that easy_install can't find urlgrabber at
> pypi.python.org
> >> anymore, so you have to install urlgrabber manually as workaround:
> >>
> >> download and unpack it from http://urlgrabber.baseurl.org/
> >>
> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> >>
> >> install urlgrabber in GeoNode's Virtual Environment:
> >>
> >> $ . bin/activate
> >> (geonode) $ cd urlgrabber-3.9.1
> >> (geonode) $ python setup.py install
> >>
> >> in my case it asked for pycurl, which I had to install first
> >> (geonode) $ easy_install pycurl
> >>
> >> That should to it.
> >>
> >> Christian
> >>
> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> >>
> >> > Dear all
> >> > I am trying to install GeoNode according to the instructions at
> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
> gotten as
> >> > far as paver build.
> >> >
> >> > However, paver build fails with the following error: ImportError: No
> >> > module named urlgrabber.grabber
> >> > However, if I start Python normally (i.e. without virtual environment)
> >> > and try it works just fine:
> >> >
> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> >> > [GCC 4.3.3] on linux2
> >> > Type "help", "copyright", "credits" or "license" for more information.
> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> >> > >>>
> >> >
> >> > I am running Ubuntu 9.04 - 64 bit.
> >> >
> >> > The tail of the paver output follows below.
> >> > Cheers and thanks for any help
> >> > Ole Nielsen
> >> >
> >> > -- output from paver build --
> >> >
> >> > ########## SUMMARY INFO #########
> >> > ################################################
> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> >> > ################################################
> >> > ################################################
> >> > #Attempting install of _renderPM
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> >> > # installing with freetype version 21
> >> > ################################################
> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> >> > ---> pavement.setup_webapps
> >> > ---> pavement.setup_geoserver
> >> > ---> pavement.setup_gs_data
> >> > Traceback (most recent call last):
> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 615, in main
> >> > _launch_pavement(args)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 598, in _launch_pavement
> >> > _process_commands(args, auto_pending=auto_pending)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 563, in _process_commands
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 161, in do_task
> >> > return func(**kw)
> >> > File "pavement.py", line 186, in setup_gs_data
> >> > grab(src_url, dst_url)
> >> > File "pavement.py", line 159, in grab
> >> > from urlgrabber.grabber import urlgrab, URLGrabError
> >> > ImportError: No module named urlgrabber.grabber
> >> > (geonode)nielso@shiva:~/sandpit/geonode$
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-11-02 @ 21:29
Ole,
I just tried these steps on a fresh Ubuntu installation in Amazon EC2:
http://ietherpad.com/geonode
It includes some screenshots too. Total time to follow those
instruction in EC2 is around 20 minutes and the money spent for half a
day playing with the instance was less than one dollar.
These instructions are recommended for development, not deployment.
Best,
Ariel.
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-02 @ 14:10
If you are *installing*, setting up a Geonode site on a server for remote
access, then you should follow the instructions from docs/source/deploy/,
there are reasonably complete Ubuntu and CentOS instructions there. The
Ubuntu instructions have been tested recently against a fresh installation
of Ubuntu 10.04 LTS.
For setting up a development environment, the README is all there is. I'll
comment inline on your specific issues...
On Tue, Nov 2, 2010 at 6:27 AM, Ole Nielsen <ole.moller.nielsen@gmail.com>wrote:
> Thanks for all your engagement and suggestions. Meanwhile, I upgraded my
> systems to see if that was the problem.
> Here's the status:
>
>
> - I still need to omit --no-site-packages in bootstrap for paver build
> to find urlgrabber. I do not know if this omission leads to other issues.
>
> --no-site-packages is recommended to avoid problems with incompatible
versions of GeoNode's python dependencies installed in the system's
site-packages. On a fresh Ubuntu system this should not be a problem.
>
> - On Ubuntu 10.04 LTS, I get the following error from the command paver
> build (full output log below):
> - error: cannot open .git/FETCH_HEAD: Permission denied
>
> This is a regular, run-of-the-mill filesystem permissions error. One way
this might happen is if you had been trying to build as the root user
(perhaps inadvertently after forgetting to log out of a 'sudo su -' session)
and are now trying to build under an unprivileged user account. You can fix
it with sudo chown $(whoami) -R /path/to/geonode-sources/
>
> - On Ubuntu 10.10, it gets a bit further but there are lots of failed
> checksums when downloading from repo.opengeo.org. I don't know if this
> matters, but it doesn't seem right.
>
> Yes, I've brought this checksum issue up with the maintainer of the opengeo
maven repo. For now, it's safe to ignore.
>
> - Anyway, paver build eventually stops because it is Unable to locate
> the Javac compiler. It appears that since Ubuntu ships with open-jre (since
> Lucid) rather than Sun Java one must install the latter manually (I followed
> the instructions at
>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
the obvious modification for Maverick), agree to the license terms and
> set JAVA_HOME=/usr/lib/jvm/java-6-sun.
>
> The problem is not that you have openjdk (while Sun Java is recommended for
performance reasons, OpenJDK works fine as well.) The problem is that the
openjdk-jre package does not provide javac (the Java Compiler, part of the
JDK, or Java Development Kit).
>
> - After that the installation completed succesfully, but when I
> proceeded to run paver host it hung for a while at 'Jetty is starting up,
> please wait...' , then complained about a missing file (local_settings.py)
> and shut itself down. There was no connection at localhost:8000 or 8001. Log
> is included at the end of this mail.
>
> The output you report above seems to indicate that maven is still looking
in openjdk and still not finding javac. Without a JDK in the path you won't
be able to get GeoServer running, and that means you won't be able to run
GeoNode.
The local_settings.py bit is a red herring, it's just there to warn you that
you're running with the default settings and, at least for deployment
purposes, they are going to be incorrect.
> One problem we are having in Indonesia is that this installation takes
> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes very
> slow.
> I would really like to know if anyone has installed GeoNode on a fresh
> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>
> Many thanks
> Ole Nielsen
>
> ---------------------------------------------------------------------
>
> - Output from paver build on Ubuntu 10.04:
>
>
> - nielso@shiva:~/sandpit/geonode$ source bin/activate
> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
> ---> pavement.auto
> ---> pavement.build
> ---> pavement.install_deps
> Installing from requirements file. Use "paver bundle_deps" to create an
> install bundle
> bin/pip install --download-cache=./build -r shared/core-libs.txt
> Downloading/unpacking
> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from
> -r shared/core-libs.txt (line 2))
> Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
> %2Fftp%2Freportlab-2.3.tar.gz
> Running setup.py egg_info for package from
> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
>
> ################################################
> #Attempting install of _rl_accel, sgmlop & pyHnj
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
> ################################################
> ################################################
> #Attempting install of _renderPM
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>
> # installing with freetype version 21
> ################################################
>
> ########## SUMMARY INFO #########
> ################################################
> #Attempting install of _rl_accel, sgmlop & pyHnj
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
> ################################################
> ################################################
> #Attempting install of _renderPM
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
>
> # installing with freetype version 21
> ################################################
> Obtaining gsconfig.py from git+git://
> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
> shared/core-libs.txt (line 5))
> Updating ./src/gsconfig.py clone
> Complete output from command /usr/bin/git fetch -q:
>
> ----------------------------------------
> Command /usr/bin/git fetch -q failed with error code 255
> Storing complete log in ./pip-log.txt
> error: cannot open .git/FETCH_HEAD: Permission denied
>
>
> Build failed: Subprocess return code: 1
>
> (geonode)nielso@shiva:~/sandpit/geonode$
>
>
>
> - ============================================
> - Error message regarding Java environment on Ubuntu 10.10
> - ---> pavement.setup_webapps
> ---> pavement.setup_geoserver
> ---> pavement.setup_gs_data
> cd src/geoserver-geonode-ext
> mvn clean install
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building GeoNode GeoServer Extensions
> [INFO] task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting file set:
> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
> [**], excluded: [])
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 41 source files to
> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> Unable to locate the Javac Compiler in:
> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
> [INFO] Final Memory: 34M/252M
> [INFO]
> ------------------------------------------------------------------------
>
> Build failed: Subprocess return code: 1
>
>
> ======= Failure to start after succesful build ========
>
> Installed 10 object(s) from 1 fixture(s)
> GeoNode development environment successfully set up.
> If you have not set up an administrative account, please do so now.
> Use "paver host" to start up the server.
> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
> ---> pavement.auto
> ---> pavement.host
> cd src/geoserver-geonode-ext
> cd /home/aifdr/sandpit/geonode
> Django is starting up, please wait...
> Logging servlet output to jetty.log and django output to django.log...
> Jetty is starting up, please wait...
> django-admin.py updatelayers --settings=geonode.settings
> File local_settings.py is not found. Continuing with default settings
> Shutting down...
> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>
>
>
>
>
>
>
>
>
>
>
> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
>
>> I had to do the same for my install yesterday, in my case it was
>> because the curl version I had was 1.15 and the latest pycurl required
>> 1.17. I had to first install a new curl and then run (inside the
>> venv):
>>
>> pip install pycurl
>> pip install
>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>
>> I fully support the idea of setting up our own PyPi mirror, hopefully
>> avoiding the rewrite of the build script.
>>
>> Best,
>> Ariel.
>>
>>
>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>> wrote:
>> > I haven't looked very hard but I can't find any information about the
>> > removal of urlgrabber from the python package repository. I think it
>> would
>> > probably be a good idea for us to start mirroring our dependencies in a
>> > repository of our own to avoid this sort of thing.
>> > In the shorter term I would be open to rewriting the build script to
>> avoid
>> > requiring urlgrabber.
>> > --
>> > David Winslow
>> > OpenGeo - http://opengeo.org/
>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
>> cspanring@gmail.com>
>> > wrote:
>> >>
>> >> Ole,
>> >>
>> >> the problem is that easy_install can't find urlgrabber at
>> pypi.python.org
>> >> anymore, so you have to install urlgrabber manually as workaround:
>> >>
>> >> download and unpack it from http://urlgrabber.baseurl.org/
>> >>
>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>> >>
>> >> install urlgrabber in GeoNode's Virtual Environment:
>> >>
>> >> $ . bin/activate
>> >> (geonode) $ cd urlgrabber-3.9.1
>> >> (geonode) $ python setup.py install
>> >>
>> >> in my case it asked for pycurl, which I had to install first
>> >> (geonode) $ easy_install pycurl
>> >>
>> >> That should to it.
>> >>
>> >> Christian
>> >>
>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>> >>
>> >> > Dear all
>> >> > I am trying to install GeoNode according to the instructions at
>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
>> gotten as
>> >> > far as paver build.
>> >> >
>> >> > However, paver build fails with the following error: ImportError: No
>> >> > module named urlgrabber.grabber
>> >> > However, if I start Python normally (i.e. without virtual
>> environment)
>> >> > and try it works just fine:
>> >> >
>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>> >> > [GCC 4.3.3] on linux2
>> >> > Type "help", "copyright", "credits" or "license" for more
>> information.
>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>> >> > >>>
>> >> >
>> >> > I am running Ubuntu 9.04 - 64 bit.
>> >> >
>> >> > The tail of the paver output follows below.
>> >> > Cheers and thanks for any help
>> >> > Ole Nielsen
>> >> >
>> >> > -- output from paver build --
>> >> >
>> >> > ########## SUMMARY INFO #########
>> >> > ################################################
>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>> >> > ################################################
>> >> > ################################################
>> >> > #Attempting install of _renderPM
>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>> >> > # installing with freetype version 21
>> >> > ################################################
>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>> >> > ---> pavement.setup_webapps
>> >> > ---> pavement.setup_geoserver
>> >> > ---> pavement.setup_gs_data
>> >> > Traceback (most recent call last):
>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 615, in main
>> >> > _launch_pavement(args)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 598, in _launch_pavement
>> >> > _process_commands(args, auto_pending=auto_pending)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 563, in _process_commands
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task(self.name, self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 161, in do_task
>> >> > return func(**kw)
>> >> > File "pavement.py", line 186, in setup_gs_data
>> >> > grab(src_url, dst_url)
>> >> > File "pavement.py", line 159, in grab
>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>> >> > ImportError: No module named urlgrabber.grabber
>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ole Nielsen
- Date:
- 2010-11-03 @ 00:53
Thanks again for all the replies. I am still a little confused, so let me
clarify some of the issues inline:
--no-site-packages is recommended to avoid problems with incompatible
> versions of GeoNode's python dependencies installed in the system's
> site-packages. On a fresh Ubuntu system this should not be a problem.
>
But when I do use --no-site-packages I get the missing urlgrabber
dependency. I am tempted by Christian Spanring's suggestion installing
urlgrabber manually into the virtual environment, but since I want to script
all steps of the installation I can't see how. Also, I am less interested in
getting a GeoNode installed and more interested in a scripted installation
procedure so that we may easily deploy GeoNodes and develop applications on
top of it.
>
>> - On Ubuntu 10.04 LTS, I get the following error from the command
>> paver build (full output log below):
>> - error: cannot open .git/FETCH_HEAD: Permission denied
>>
>> This is a regular, run-of-the-mill filesystem permissions error. One way
> this might happen is if you had been trying to build as the root user
> (perhaps inadvertently after forgetting to log out of a 'sudo su -' session)
> and are now trying to build under an unprivileged user account.
>
All steps I took were scripted and hence reproducible, so I can't see how I
could experience the above problem. I was surprised, though, that there was
no file called .git/FETCH_HEAD and hence no permissions to change.
> The problem is not that you have openjdk (while Sun Java is recommended for
> performance reasons, OpenJDK works fine as well.) The problem is that the
> openjdk-jre package does not provide javac (the Java Compiler, part of the
> JDK, or Java Development Kit).
>
I am very glad to hear that it'll work with OpenJDK. What is your
recommendation regarding javac then?
And finally, it does not take 7 hours to install - all I was saying that it
is slow and hard to trouble shoot because our bandwidth is just 7 Megabits
per second :-)
Cheers and thanks
Ole Nielsen
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-11-03 @ 01:45
> All steps I took were scripted and hence reproducible, so I can't see how I
> could experience the above problem. I was surprised, though, that there was
> no file called .git/FETCH_HEAD and hence no permissions to change.
Can you share your script with us so I can try to debug it further?
>
> I am very glad to hear that it'll work with OpenJDK. What is your
> recommendation regarding javac then?
There should be something like openjdk-devel or openjdk-6-jdk
(http://packages.ubuntu.com/maverick/openjdk-6-jdk )
>
> And finally, it does not take 7 hours to install - all I was saying that it
> is slow and hard to trouble shoot because our bandwidth is just 7 Megabits
> per second :-)
That's 7 times more than what I have here in Colombia.
I tested the following instructions earlier today on a fresh Ubuntu
10.04 machine:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install subversion git-core binutils build-essential
python-dev python-setuptools python-imaging python-reportlab gdal-bin
libproj-dev libgeos-dev unzip sun-java6-jdk maven2
git clone git://github.com/GeoNode/geonode.git
# next line is needed because there is a bug in a PyPi package
sudo apt-get install python-urlgrabber
cd geonode
git submodule update --init
python bootstrap.py
source bin/activate
paver build
django-admin.py createsuperuser --settings=geonode.settings
vim shared/dev-paste.ini
%s/127.0.0.1/0.0.0.0/g
http://cl.ly/5d65c02f9d4c980aea57
vim src/geoserver-geonode-ext/jetty.xml
%s/localhost/0.0.0.0/g
http://cl.ly/535c4b619a407b814825
vim src/GeoNode/geonode/local_settings.py
SITEURL = "http://YOURIP:8000/"
GEOSERVER_BASE_URL = "http://YOURIP:8001/geoserver/"
GEONETWORK_BASE_URL = "http://YOURIP/geonetwork/"
paver host
# then navigate to:
http://YOURIP:8000
Re: [geonode] Error installing GeoNode from source
- From:
- Ole Nielsen
- Date:
- 2010-11-03 @ 03:15
On Wed, Nov 3, 2010 at 8:45 AM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> > All steps I took were scripted and hence reproducible, so I can't see how
> I
> > could experience the above problem. I was surprised, though, that there
> was
> > no file called .git/FETCH_HEAD and hence no permissions to change.
>
> Can you share your script with us so I can try to debug it further?
>
Of course - thank you so much. Here it is (currently within some work we did
with geoserver):
http://www.aifdr.org/projects/riat/browser/source/trunk/geoserver_api/install_geoserver/install_geonode.py
Steps after activation of virtual env are still manual because I don't know
how to build them in.
Many thanks
Ole
> That's 7 times more than what I have here in Colombia.
>
Wow
Will try your suggested steps.
Thanks
Ole
I tested the following instructions earlier today on a fresh Ubuntu
> 10.04 machine:
>
> sudo add-apt-repository "deb http://archive.canonical.com/ lucid
> partner"
> sudo apt-get update
> sudo apt-get install subversion git-core binutils build-essential
> python-dev python-setuptools python-imaging python-reportlab gdal-bin
> libproj-dev libgeos-dev unzip sun-java6-jdk maven2
>
> git clone git://github.com/GeoNode/geonode.git
>
> # next line is needed because there is a bug in a PyPi package
> sudo apt-get install python-urlgrabber
>
> cd geonode
> git submodule update --init
> python bootstrap.py
> source bin/activate
> paver build
> django-admin.py createsuperuser --settings=geonode.settings
>
> vim shared/dev-paste.ini
> %s/127.0.0.1/0.0.0.0/g
> http://cl.ly/5d65c02f9d4c980aea57
>
> vim src/geoserver-geonode-ext/jetty.xml
> %s/localhost/0.0.0.0/g
> http://cl.ly/535c4b619a407b814825
>
> vim src/GeoNode/geonode/local_settings.py
> SITEURL = "http://YOURIP:8000/"
> GEOSERVER_BASE_URL = "http://YOURIP:8001/geoserver/"
> GEONETWORK_BASE_URL = "http://YOURIP/geonetwork/"
>
> paver host
>
> # then navigate to:
> http://YOURIP:8000
>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-03 @ 13:57
On Tue, Nov 2, 2010 at 11:15 PM, Ole Nielsen
<ole.moller.nielsen@gmail.com>wrote:
>
>
> On Wed, Nov 3, 2010 at 8:45 AM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
>
>> > All steps I took were scripted and hence reproducible, so I can't see
>> how I
>> > could experience the above problem. I was surprised, though, that there
>> was
>> > no file called .git/FETCH_HEAD and hence no permissions to change.
>>
>> Can you share your script with us so I can try to debug it further?
>>
>
> Of course - thank you so much. Here it is (currently within some work we
> did with geoserver):
>
>
http://www.aifdr.org/projects/riat/browser/source/trunk/geoserver_api/install_geoserver/install_geonode.py
>
> Steps after activation of virtual env are still manual because I don't know
> how to build them in.
>
Because of the way virtualenv works, you need to activate and then run
commands in the same shell. I'm not sure this is possible from Python.
However, you can wrap up "activate the venv and then run this command" in
a function; I put an example on https://gist.github.com/661089 . The
example also sets DJANGO_SETTINGS_MODULE to ease usage of django-admin.py.
> Many thanks
> Ole
>
>
>
>> That's 7 times more than what I have here in Colombia.
>>
>
> Wow
>
>
> Will try your suggested steps.
>
> Thanks
> Ole
>
>
>
> I tested the following instructions earlier today on a fresh Ubuntu
>> 10.04 machine:
>>
>> sudo add-apt-repository "deb http://archive.canonical.com/ lucid
>> partner"
>> sudo apt-get update
>> sudo apt-get install subversion git-core binutils build-essential
>> python-dev python-setuptools python-imaging python-reportlab gdal-bin
>> libproj-dev libgeos-dev unzip sun-java6-jdk maven2
>>
>> git clone git://github.com/GeoNode/geonode.git
>>
>> # next line is needed because there is a bug in a PyPi package
>> sudo apt-get install python-urlgrabber
>>
>> cd geonode
>> git submodule update --init
>> python bootstrap.py
>> source bin/activate
>> paver build
>> django-admin.py createsuperuser --settings=geonode.settings
>>
>> vim shared/dev-paste.ini
>> %s/127.0.0.1/0.0.0.0/g
>> http://cl.ly/5d65c02f9d4c980aea57
>>
>> vim src/geoserver-geonode-ext/jetty.xml
>> %s/localhost/0.0.0.0/g
>> http://cl.ly/535c4b619a407b814825
>>
>> vim src/GeoNode/geonode/local_settings.py
>> SITEURL = "http://YOURIP:8000/"
>> GEOSERVER_BASE_URL = "http://YOURIP:8001/geoserver/"
>> GEONETWORK_BASE_URL = "http://YOURIP/geonetwork/"
>>
>> paver host
>>
>> # then navigate to:
>> http://YOURIP:8000
>>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Spanring, Christian
- Date:
- 2010-11-02 @ 13:57
Although that won't help you much, but I can confirm that GeoNode runs on
a fresh Ubuntu 10.04. I use it for development and deployment.
Occasionally I see the behavior that you're describing below, that GeoNode
dev server doesn't start and shuts down again immediatly. I haven't
researched it much further because it usually starts after the second
attempt of "paver host". I assume some Java jobs need longer than expected
to start. Since the deployment server, with better resources, works fine,
I didn't pay much attention to that problem.
Have you considered getting a server instance in some other location for
faster installation? 7 hours seems pretty long and Amazon micro instances
start at ~ $5/month...
Christian
On Nov 2, 2010, at 6:27 AM, Ole Nielsen wrote:
> Thanks for all your engagement and suggestions. Meanwhile, I upgraded my
systems to see if that was the problem.
> Here's the status:
>
> • I still need to omit --no-site-packages in bootstrap for paver
build to find urlgrabber. I do not know if this omission leads to other
issues.
> • On Ubuntu 10.04 LTS, I get the following error from the command
paver build (full output log below):
> • error: cannot open .git/FETCH_HEAD: Permission denied
> • On Ubuntu 10.10, it gets a bit further but there are lots of
failed checksums when downloading from repo.opengeo.org. I don't know if
this matters, but it doesn't seem right. Anyway, paver build eventually
stops because it is Unable to locate the Javac compiler. It appears that
since Ubuntu ships with open-jre (since Lucid) rather than Sun Java one
must install the latter manually (I followed the instructions at
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04
with the obvious modification for Maverick), agree to the license terms
and set JAVA_HOME=/usr/lib/jvm/java-6-sun. After that the installation
completed succesfully, but when I proceeded to run paver host it hung for
a while at 'Jetty is starting up, please wait...' , then complained about
a missing file (local_settings.py) and shut itself down. There was no
connection at localhost:8000 or 8001. Log is included at the end of this
mail.
>
> One problem we are having in Indonesia is that this installation takes
several hours with our bandwitdth (~7MB/s) so troubleshooting becomes very
slow.
> I would really like to know if anyone has installed GeoNode on a fresh
Ubuntu installation (10.04 or 10.10) and get the exact steps required.
>
> Many thanks
> Ole Nielsen
>
> ---------------------------------------------------------------------
> • Output from paver build on Ubuntu 10.04:
> • nielso@shiva:~/sandpit/geonode$ source bin/activate
> (geonode)nielso@shiva:~/sandpit/geonode$ paver build
> ---> pavement.auto
> ---> pavement.build
> ---> pavement.install_deps
> Installing from requirements file. Use "paver bundle_deps" to create an
install bundle
> bin/pip install --download-cache=./build -r shared/core-libs.txt
> Downloading/unpacking
http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from -r
shared/core-libs.txt (line 2))
> Using download cache from
./build/http%3A%2F%2Fwww.reportlab.com%2Fftp%2Freportlab-2.3.tar.gz
> Running setup.py egg_info for package from
http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
> ################################################
> #Attempting install of _rl_accel, sgmlop & pyHnj
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
> ################################################
> ################################################
> #Attempting install of _renderPM
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
> # installing with freetype version 21
> ################################################
>
> ########## SUMMARY INFO #########
> ################################################
> #Attempting install of _rl_accel, sgmlop & pyHnj
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
> ################################################
> ################################################
> #Attempting install of _renderPM
> #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
> # installing with freetype version 21
> ################################################
> Obtaining gsconfig.py from
git+git://github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
shared/core-libs.txt (line 5))
> Updating ./src/gsconfig.py clone
> Complete output from command /usr/bin/git fetch -q:
>
> ----------------------------------------
> Command /usr/bin/git fetch -q failed with error code 255
> Storing complete log in ./pip-log.txt
> error: cannot open .git/FETCH_HEAD: Permission denied
>
>
> Build failed: Subprocess return code: 1
> (geonode)nielso@shiva:~/sandpit/geonode$
>
> • ============================================
> • Error message regarding Java environment on Ubuntu 10.10
> • ---> pavement.setup_webapps
> ---> pavement.setup_geoserver
> ---> pavement.setup_gs_data
> cd src/geoserver-geonode-ext
> mvn clean install
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building GeoNode GeoServer Extensions
> [INFO] task-segment: [clean, install]
> [INFO] ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting file set:
/home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
[**], excluded: [])
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 41 source files to
/home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> Unable to locate the Javac Compiler in:
> /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
> Please ensure you are using JDK 1.4 or above and
> not a JRE (the com.sun.tools.javac.Main class is required).
> In most cases you can change the location of your Java
> installation by setting the JAVA_HOME environment variable.
>
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
> [INFO] Final Memory: 34M/252M
> [INFO] ------------------------------------------------------------------------
>
> Build failed: Subprocess return code: 1
>
> ======= Failure to start after succesful build ========
>
> Installed 10 object(s) from 1 fixture(s)
> GeoNode development environment successfully set up.
> If you have not set up an administrative account, please do so now.
> Use "paver host" to start up the server.
> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
> ---> pavement.auto
> ---> pavement.host
> cd src/geoserver-geonode-ext
> cd /home/aifdr/sandpit/geonode
> Django is starting up, please wait...
> Logging servlet output to jetty.log and django output to django.log...
> Jetty is starting up, please wait...
> django-admin.py updatelayers --settings=geonode.settings
> File local_settings.py is not found. Continuing with default settings
> Shutting down...
> (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
>
>
>
>
>
>
>
>
>
>
>
> On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com> wrote:
> I had to do the same for my install yesterday, in my case it was
> because the curl version I had was 1.15 and the latest pycurl required
> 1.17. I had to first install a new curl and then run (inside the
> venv):
>
> pip install pycurl
> pip install http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>
> I fully support the idea of setting up our own PyPi mirror, hopefully
> avoiding the rewrite of the build script.
>
> Best,
> Ariel.
>
>
> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org> wrote:
> > I haven't looked very hard but I can't find any information about the
> > removal of urlgrabber from the python package repository. I think it would
> > probably be a good idea for us to start mirroring our dependencies in a
> > repository of our own to avoid this sort of thing.
> > In the shorter term I would be open to rewriting the build script to avoid
> > requiring urlgrabber.
> > --
> > David Winslow
> > OpenGeo - http://opengeo.org/
> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com>
> > wrote:
> >>
> >> Ole,
> >>
> >> the problem is that easy_install can't find urlgrabber at pypi.python.org
> >> anymore, so you have to install urlgrabber manually as workaround:
> >>
> >> download and unpack it from http://urlgrabber.baseurl.org/
> >>
> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> >>
> >> install urlgrabber in GeoNode's Virtual Environment:
> >>
> >> $ . bin/activate
> >> (geonode) $ cd urlgrabber-3.9.1
> >> (geonode) $ python setup.py install
> >>
> >> in my case it asked for pycurl, which I had to install first
> >> (geonode) $ easy_install pycurl
> >>
> >> That should to it.
> >>
> >> Christian
> >>
> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> >>
> >> > Dear all
> >> > I am trying to install GeoNode according to the instructions at
> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
gotten as
> >> > far as paver build.
> >> >
> >> > However, paver build fails with the following error: ImportError: No
> >> > module named urlgrabber.grabber
> >> > However, if I start Python normally (i.e. without virtual environment)
> >> > and try it works just fine:
> >> >
> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> >> > [GCC 4.3.3] on linux2
> >> > Type "help", "copyright", "credits" or "license" for more information.
> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> >> > >>>
> >> >
> >> > I am running Ubuntu 9.04 - 64 bit.
> >> >
> >> > The tail of the paver output follows below.
> >> > Cheers and thanks for any help
> >> > Ole Nielsen
> >> >
> >> > -- output from paver build --
> >> >
> >> > ########## SUMMARY INFO #########
> >> > ################################################
> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> >> > ################################################
> >> > ################################################
> >> > #Attempting install of _renderPM
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> >> > # installing with freetype version 21
> >> > ################################################
> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> >> > ---> pavement.setup_webapps
> >> > ---> pavement.setup_geoserver
> >> > ---> pavement.setup_gs_data
> >> > Traceback (most recent call last):
> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 615, in main
> >> > _launch_pavement(args)
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 598, in _launch_pavement
> >> > _process_commands(args, auto_pending=auto_pending)
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 563, in _process_commands
> >> > task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 161, in do_task
> >> > return func(**kw)
> >> > File "pavement.py", line 186, in setup_gs_data
> >> > grab(src_url, dst_url)
> >> > File "pavement.py", line 159, in grab
> >> > from urlgrabber.grabber import urlgrab, URLGrabError
> >> > ImportError: No module named urlgrabber.grabber
> >> > (geonode)nielso@shiva:~/sandpit/geonode$
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
>
Please be advised that the Massachusetts Secretary of State considers
e-mail to be a public record, and therefore subject to the Massachusetts
Public Records Law, M.G.L. c. 66 § 10.
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-02 @ 14:15
On Tue, Nov 2, 2010 at 9:57 AM, Spanring, Christian <CSpanring@mapc.org>wrote:
> Although that won't help you much, but I can confirm that GeoNode runs on a
> fresh Ubuntu 10.04. I use it for development and deployment. Occasionally I
> see the behavior that you're describing below, that GeoNode dev server
> doesn't start and shuts down again immediatly. I haven't researched it much
> further because it usually starts after the second attempt of "paver host".
> I assume some Java jobs need longer than expected to start. Since the
> deployment server, with better resources, works fine, I didn't pay much
> attention to that problem.
>
Often the paver host task will fail if you are shutting down and restarting
the server in short intervals, as Jetty does not release its listening port
immediately after receiving the kill signal.
I usually avoid the "paver host" task and use two terminal windows - in one
I run:
$ paster serve --reload shared/dev-paste.ini
and in the other I run:
$ cd src/geoserver-geonode-dev/ && sh startup.sh
This way I can restart Django if need be without waiting for Jetty to
shutdown and start up, and if I do need to restart Jetty I don't get a
blinking cursor back until it's actually shut down.
Have you considered getting a server instance in some other location for
> faster installation? 7 hours seems pretty long and Amazon micro instances
> start at ~ $5/month...
>
Yes, I was going to suggest this too. If you're planning on doing GeoNode
development you'll really benefit from being able to set up a development
environment in less than 7 hours.
> Christian
>
>
> On Nov 2, 2010, at 6:27 AM, Ole Nielsen wrote:
>
> > Thanks for all your engagement and suggestions. Meanwhile, I upgraded my
> systems to see if that was the problem.
> > Here's the status:
> >
> > • I still need to omit --no-site-packages in bootstrap for paver
> build to find urlgrabber. I do not know if this omission leads to other
> issues.
> > • On Ubuntu 10.04 LTS, I get the following error from the command
> paver build (full output log below):
> > • error: cannot open .git/FETCH_HEAD: Permission denied
> > • On Ubuntu 10.10, it gets a bit further but there are lots of
> failed checksums when downloading from repo.opengeo.org. I don't know if
> this matters, but it doesn't seem right. Anyway, paver build eventually
> stops because it is Unable to locate the Javac compiler. It appears that
> since Ubuntu ships with open-jre (since Lucid) rather than Sun Java one must
> install the latter manually (I followed the instructions at
>
http://beeznest.wordpress.com/2010/04/23/howto-install-suns-java-on-ubuntu-lucid-lynx-10-04with
the obvious modification for Maverick), agree to the license terms and
> set JAVA_HOME=/usr/lib/jvm/java-6-sun. After that the installation completed
> succesfully, but when I proceeded to run paver host it hung for a while at
> 'Jetty is starting up, please wait...' , then complained about a missing
> file (local_settings.py) and shut itself down. There was no connection at
> localhost:8000 or 8001. Log is included at the end of this mail.
> >
> > One problem we are having in Indonesia is that this installation takes
> several hours with our bandwitdth (~7MB/s) so troubleshooting becomes very
> slow.
> > I would really like to know if anyone has installed GeoNode on a fresh
> Ubuntu installation (10.04 or 10.10) and get the exact steps required.
> >
> > Many thanks
> > Ole Nielsen
> >
> > ---------------------------------------------------------------------
> > • Output from paver build on Ubuntu 10.04:
> > • nielso@shiva:~/sandpit/geonode$ source bin/activate
> > (geonode)nielso@shiva:~/sandpit/geonode$ paver build
> > ---> pavement.auto
> > ---> pavement.build
> > ---> pavement.install_deps
> > Installing from requirements file. Use "paver bundle_deps" to create an
> install bundle
> > bin/pip install --download-cache=./build -r shared/core-libs.txt
> > Downloading/unpacking
> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab (from -r
> shared/core-libs.txt (line 2))
> > Using download cache from ./build/http%3A%2F%2Fwww.reportlab.com
> %2Fftp%2Freportlab-2.3.tar.gz
> > Running setup.py egg_info for package from
> http://www.reportlab.com/ftp/reportlab-2.3.tar.gz#egg=reportlab
> > ################################################
> > #Attempting install of _rl_accel, sgmlop & pyHnj
> > #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
> > ################################################
> > ################################################
> > #Attempting install of _renderPM
> > #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
> > # installing with freetype version 21
> > ################################################
> >
> > ########## SUMMARY INFO #########
> > ################################################
> > #Attempting install of _rl_accel, sgmlop & pyHnj
> > #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/rl_accel'
> > ################################################
> > ################################################
> > #Attempting install of _renderPM
> > #extensions from '/tmp/pip-zphrhy-build/src/rl_addons/renderPM'
> > # installing with freetype version 21
> > ################################################
> > Obtaining gsconfig.py from git+git://
> github.com/dwins/gsconfig.py.git#egg=gsconfig.py (from -r
> shared/core-libs.txt (line 5))
> > Updating ./src/gsconfig.py clone
> > Complete output from command /usr/bin/git fetch -q:
> >
> > ----------------------------------------
> > Command /usr/bin/git fetch -q failed with error code 255
> > Storing complete log in ./pip-log.txt
> > error: cannot open .git/FETCH_HEAD: Permission denied
> >
> >
> > Build failed: Subprocess return code: 1
> > (geonode)nielso@shiva:~/sandpit/geonode$
> >
> > • ============================================
> > • Error message regarding Java environment on Ubuntu 10.10
> > • ---> pavement.setup_webapps
> > ---> pavement.setup_geoserver
> > ---> pavement.setup_gs_data
> > cd src/geoserver-geonode-ext
> > mvn clean install
> > [INFO] Scanning for projects...
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Building GeoNode GeoServer Extensions
> > [INFO] task-segment: [clean, install]
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] [clean:clean {execution: default-clean}]
> > [INFO] Deleting file set:
> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target (included:
> [**], excluded: [])
> > [INFO] [resources:resources {execution: default-resources}]
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] Copying 4 resources
> > [INFO] [compiler:compile {execution: default-compile}]
> > [INFO] Compiling 41 source files to
> /home/aifdr/sandpit/geonode/src/geoserver-geonode-ext/target/classes
> > [INFO]
> ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Compilation failure
> > Unable to locate the Javac Compiler in:
> > /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar
> > Please ensure you are using JDK 1.4 or above and
> > not a JRE (the com.sun.tools.javac.Main class is required).
> > In most cases you can change the location of your Java
> > installation by setting the JAVA_HOME environment variable.
> >
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Total time: 3 seconds
> > [INFO] Finished at: Tue Nov 02 16:25:37 WIT 2010
> > [INFO] Final Memory: 34M/252M
> > [INFO]
> ------------------------------------------------------------------------
> >
> > Build failed: Subprocess return code: 1
> >
> > ======= Failure to start after succesful build ========
> >
> > Installed 10 object(s) from 1 fixture(s)
> > GeoNode development environment successfully set up.
> > If you have not set up an administrative account, please do so now.
> > Use "paver host" to start up the server.
> > (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$ paver host
> > ---> pavement.auto
> > ---> pavement.host
> > cd src/geoserver-geonode-ext
> > cd /home/aifdr/sandpit/geonode
> > Django is starting up, please wait...
> > Logging servlet output to jetty.log and django output to django.log...
> > Jetty is starting up, please wait...
> > django-admin.py updatelayers --settings=geonode.settings
> > File local_settings.py is not found. Continuing with default settings
> > Shutting down...
> > (geonode)aifdr@aifdr-laptop:~/sandpit/geonode$
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Oct 29, 2010 at 8:20 PM, Ariel Nunez <ingenieroariel@gmail.com>
> wrote:
> > I had to do the same for my install yesterday, in my case it was
> > because the curl version I had was 1.15 and the latest pycurl required
> > 1.17. I had to first install a new curl and then run (inside the
> > venv):
> >
> > pip install pycurl
> > pip install
> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >
> > I fully support the idea of setting up our own PyPi mirror, hopefully
> > avoiding the rewrite of the build script.
> >
> > Best,
> > Ariel.
> >
> >
> > On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
> wrote:
> > > I haven't looked very hard but I can't find any information about the
> > > removal of urlgrabber from the python package repository. I think it
> would
> > > probably be a good idea for us to start mirroring our dependencies in a
> > > repository of our own to avoid this sort of thing.
> > > In the shorter term I would be open to rewriting the build script to
> avoid
> > > requiring urlgrabber.
> > > --
> > > David Winslow
> > > OpenGeo - http://opengeo.org/
> > > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <
> cspanring@gmail.com>
> > > wrote:
> > >>
> > >> Ole,
> > >>
> > >> the problem is that easy_install can't find urlgrabber at
> pypi.python.org
> > >> anymore, so you have to install urlgrabber manually as workaround:
> > >>
> > >> download and unpack it from http://urlgrabber.baseurl.org/
> > >>
> > >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> > >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> > >>
> > >> install urlgrabber in GeoNode's Virtual Environment:
> > >>
> > >> $ . bin/activate
> > >> (geonode) $ cd urlgrabber-3.9.1
> > >> (geonode) $ python setup.py install
> > >>
> > >> in my case it asked for pycurl, which I had to install first
> > >> (geonode) $ easy_install pycurl
> > >>
> > >> That should to it.
> > >>
> > >> Christian
> > >>
> > >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> > >>
> > >> > Dear all
> > >> > I am trying to install GeoNode according to the instructions at
> > >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
> gotten as
> > >> > far as paver build.
> > >> >
> > >> > However, paver build fails with the following error: ImportError: No
> > >> > module named urlgrabber.grabber
> > >> > However, if I start Python normally (i.e. without virtual
> environment)
> > >> > and try it works just fine:
> > >> >
> > >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> > >> > [GCC 4.3.3] on linux2
> > >> > Type "help", "copyright", "credits" or "license" for more
> information.
> > >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> > >> > >>>
> > >> >
> > >> > I am running Ubuntu 9.04 - 64 bit.
> > >> >
> > >> > The tail of the paver output follows below.
> > >> > Cheers and thanks for any help
> > >> > Ole Nielsen
> > >> >
> > >> > -- output from paver build --
> > >> >
> > >> > ########## SUMMARY INFO #########
> > >> > ################################################
> > >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> > >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> > >> > ################################################
> > >> > ################################################
> > >> > #Attempting install of _renderPM
> > >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> > >> > # installing with freetype version 21
> > >> > ################################################
> > >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> > >> > ---> pavement.setup_webapps
> > >> > ---> pavement.setup_geoserver
> > >> > ---> pavement.setup_gs_data
> > >> > Traceback (most recent call last):
> > >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> > >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 615, in main
> > >> > _launch_pavement(args)
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 598, in _launch_pavement
> > >> > _process_commands(args, auto_pending=auto_pending)
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 563, in _process_commands
> > >> > task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 241, in __call__
> > >> > retval = environment._run_task(self.name, self.needs,
> self.func)
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 181, in _run_task
> > >> > return do_task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 160, in do_task
> > >> > task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 241, in __call__
> > >> > retval = environment._run_task(self.name, self.needs,
> self.func)
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 181, in _run_task
> > >> > return do_task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 160, in do_task
> > >> > task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 241, in __call__
> > >> > retval = environment._run_task(self.name, self.needs,
> self.func)
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 181, in _run_task
> > >> > return do_task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 160, in do_task
> > >> > task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 241, in __call__
> > >> > retval = environment._run_task(self.name, self.needs,
> self.func)
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 181, in _run_task
> > >> > return do_task()
> > >> > File
> > >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> > >> > line 161, in do_task
> > >> > return func(**kw)
> > >> > File "pavement.py", line 186, in setup_gs_data
> > >> > grab(src_url, dst_url)
> > >> > File "pavement.py", line 159, in grab
> > >> > from urlgrabber.grabber import urlgrab, URLGrabError
> > >> > ImportError: No module named urlgrabber.grabber
> > >> > (geonode)nielso@shiva:~/sandpit/geonode$
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >
> > >
> >
>
>
> Please be advised that the Massachusetts Secretary of State considers
> e-mail to be a public record, and therefore subject to the Massachusetts
> Public Records Law, M.G.L. c. 66 § 10.
>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-01 @ 18:52
Looking into the "mirror pypi" idea, it seems the
Compoze<http://docs.repoze.org/compoze/>project from Repoze is a
pretty simple way to set up a Pypi-compatible
package index with packages from Pypi or elsewhere. I don't think it will
automatically read our pip requirements files, but for now I'll just it to
just set up a repo with these problem packages.
Does anyone know a better tool for this? (Ariel??) Otherwise I'll take a
look later this week into making a complete mirror with all the Python
packages we use to prevent this sort of problem from cropping up again.
--
David Winslow
OpenGeo - http://opengeo.org/
On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> I had to do the same for my install yesterday, in my case it was
> because the curl version I had was 1.15 and the latest pycurl required
> 1.17. I had to first install a new curl and then run (inside the
> venv):
>
> pip install pycurl
> pip install http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>
> I fully support the idea of setting up our own PyPi mirror, hopefully
> avoiding the rewrite of the build script.
>
> Best,
> Ariel.
>
>
> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
> wrote:
> > I haven't looked very hard but I can't find any information about the
> > removal of urlgrabber from the python package repository. I think it
> would
> > probably be a good idea for us to start mirroring our dependencies in a
> > repository of our own to avoid this sort of thing.
> > In the shorter term I would be open to rewriting the build script to
> avoid
> > requiring urlgrabber.
> > --
> > David Winslow
> > OpenGeo - http://opengeo.org/
> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com
> >
> > wrote:
> >>
> >> Ole,
> >>
> >> the problem is that easy_install can't find urlgrabber at
> pypi.python.org
> >> anymore, so you have to install urlgrabber manually as workaround:
> >>
> >> download and unpack it from http://urlgrabber.baseurl.org/
> >>
> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> >>
> >> install urlgrabber in GeoNode's Virtual Environment:
> >>
> >> $ . bin/activate
> >> (geonode) $ cd urlgrabber-3.9.1
> >> (geonode) $ python setup.py install
> >>
> >> in my case it asked for pycurl, which I had to install first
> >> (geonode) $ easy_install pycurl
> >>
> >> That should to it.
> >>
> >> Christian
> >>
> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> >>
> >> > Dear all
> >> > I am trying to install GeoNode according to the instructions at
> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
> gotten as
> >> > far as paver build.
> >> >
> >> > However, paver build fails with the following error: ImportError: No
> >> > module named urlgrabber.grabber
> >> > However, if I start Python normally (i.e. without virtual environment)
> >> > and try it works just fine:
> >> >
> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> >> > [GCC 4.3.3] on linux2
> >> > Type "help", "copyright", "credits" or "license" for more information.
> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> >> > >>>
> >> >
> >> > I am running Ubuntu 9.04 - 64 bit.
> >> >
> >> > The tail of the paver output follows below.
> >> > Cheers and thanks for any help
> >> > Ole Nielsen
> >> >
> >> > -- output from paver build --
> >> >
> >> > ########## SUMMARY INFO #########
> >> > ################################################
> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> >> > ################################################
> >> > ################################################
> >> > #Attempting install of _renderPM
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> >> > # installing with freetype version 21
> >> > ################################################
> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> >> > ---> pavement.setup_webapps
> >> > ---> pavement.setup_geoserver
> >> > ---> pavement.setup_gs_data
> >> > Traceback (most recent call last):
> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 615, in main
> >> > _launch_pavement(args)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 598, in _launch_pavement
> >> > _process_commands(args, auto_pending=auto_pending)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 563, in _process_commands
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 161, in do_task
> >> > return func(**kw)
> >> > File "pavement.py", line 186, in setup_gs_data
> >> > grab(src_url, dst_url)
> >> > File "pavement.py", line 159, in grab
> >> > from urlgrabber.grabber import urlgrab, URLGrabError
> >> > ImportError: No module named urlgrabber.grabber
> >> > (geonode)nielso@shiva:~/sandpit/geonode$
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-11-01 @ 19:12
Quoting Simon Willinson:
At work, the first line in our requirements.txt file is "-f
http://pypi.internal/" <http://pypi.internal/%22> - which causes pip to use
our own internal PyPI mirror (just an Apache directory listing which
pip/setuptools is smart enough to scrape).
I dig that idea of just using apache and throwing .tar.gz files there.
Sent from my iPad
On Nov 1, 2010, at 13:52, David Winslow <dwinslow@opengeo.org> wrote:
Looking into the "mirror pypi" idea, it seems the
Compoze<http://docs.repoze.org/compoze/>project from Repoze is a
pretty simple way to set up a Pypi-compatible
package index with packages from Pypi or elsewhere. I don't think it will
automatically read our pip requirements files, but for now I'll just it to
just set up a repo with these problem packages.
Does anyone know a better tool for this? (Ariel??) Otherwise I'll take a
look later this week into making a complete mirror with all the Python
packages we use to prevent this sort of problem from cropping up again.
--
David Winslow
OpenGeo - http://opengeo.org/
On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> I had to do the same for my install yesterday, in my case it was
> because the curl version I had was 1.15 and the latest pycurl required
> 1.17. I had to first install a new curl and then run (inside the
> venv):
>
> pip install pycurl
> pip install http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>
> I fully support the idea of setting up our own PyPi mirror, hopefully
> avoiding the rewrite of the build script.
>
> Best,
> Ariel.
>
>
> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
> wrote:
> > I haven't looked very hard but I can't find any information about the
> > removal of urlgrabber from the python package repository. I think it
> would
> > probably be a good idea for us to start mirroring our dependencies in a
> > repository of our own to avoid this sort of thing.
> > In the shorter term I would be open to rewriting the build script to
> avoid
> > requiring urlgrabber.
> > --
> > David Winslow
> > OpenGeo - http://opengeo.org/
> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <cspanring@gmail.com
> >
> > wrote:
> >>
> >> Ole,
> >>
> >> the problem is that easy_install can't find urlgrabber at
> pypi.python.org
> >> anymore, so you have to install urlgrabber manually as workaround:
> >>
> >> download and unpack it from http://urlgrabber.baseurl.org/
> >>
> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> >>
> >> install urlgrabber in GeoNode's Virtual Environment:
> >>
> >> $ . bin/activate
> >> (geonode) $ cd urlgrabber-3.9.1
> >> (geonode) $ python setup.py install
> >>
> >> in my case it asked for pycurl, which I had to install first
> >> (geonode) $ easy_install pycurl
> >>
> >> That should to it.
> >>
> >> Christian
> >>
> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> >>
> >> > Dear all
> >> > I am trying to install GeoNode according to the instructions at
> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
> gotten as
> >> > far as paver build.
> >> >
> >> > However, paver build fails with the following error: ImportError: No
> >> > module named urlgrabber.grabber
> >> > However, if I start Python normally (i.e. without virtual environment)
> >> > and try it works just fine:
> >> >
> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> >> > [GCC 4.3.3] on linux2
> >> > Type "help", "copyright", "credits" or "license" for more information.
> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> >> > >>>
> >> >
> >> > I am running Ubuntu 9.04 - 64 bit.
> >> >
> >> > The tail of the paver output follows below.
> >> > Cheers and thanks for any help
> >> > Ole Nielsen
> >> >
> >> > -- output from paver build --
> >> >
> >> > ########## SUMMARY INFO #########
> >> > ################################################
> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> >> > ################################################
> >> > ################################################
> >> > #Attempting install of _renderPM
> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> >> > # installing with freetype version 21
> >> > ################################################
> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> >> > ---> pavement.setup_webapps
> >> > ---> pavement.setup_geoserver
> >> > ---> pavement.setup_gs_data
> >> > Traceback (most recent call last):
> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 615, in main
> >> > _launch_pavement(args)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 598, in _launch_pavement
> >> > _process_commands(args, auto_pending=auto_pending)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 563, in _process_commands
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 160, in do_task
> >> > task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 241, in __call__
> >> > retval = environment._run_task(self.name, self.needs, self.func)
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 181, in _run_task
> >> > return do_task()
> >> > File
> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >> > line 161, in do_task
> >> > return func(**kw)
> >> > File "pavement.py", line 186, in setup_gs_data
> >> > grab(src_url, dst_url)
> >> > File "pavement.py", line 159, in grab
> >> > from urlgrabber.grabber import urlgrab, URLGrabError
> >> > ImportError: No module named urlgrabber.grabber
> >> > (geonode)nielso@shiva:~/sandpit/geonode$
> >> >
> >> >
> >> >
> >> >
> >>
> >
> >
>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-01 @ 19:15
I was really asking if you knew a better way to handle the problem of
getting stuff into the repository in the first place.
btw, for whatever reason the place where urlgrabber is failing is using
easy_install to get stuff, so I don't think pip's -f flag is an option
there.
-d
On Mon, Nov 1, 2010 at 3:12 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> Quoting Simon Willinson:
>
> At work, the first line in our requirements.txt file is "-f
<http://pypi.internal/%22>
> http://pypi.internal/" - which causes pip to use our own internal PyPI
> mirror (just an Apache directory listing which pip/setuptools is smart
> enough to scrape).
> I dig that idea of just using apache and throwing .tar.gz files there.
>
> Sent from my iPad
>
> On Nov 1, 2010, at 13:52, David Winslow <dwinslow@opengeo.org> wrote:
>
> Looking into the "mirror pypi" idea, it seems the
Compoze<http://docs.repoze.org/compoze/>project from Repoze is a pretty
simple way to set up a Pypi-compatible
> package index with packages from Pypi or elsewhere. I don't think it will
> automatically read our pip requirements files, but for now I'll just it to
> just set up a repo with these problem packages.
>
> Does anyone know a better tool for this? (Ariel??) Otherwise I'll take a
> look later this week into making a complete mirror with all the Python
> packages we use to prevent this sort of problem from cropping up again.
>
> --
> David Winslow
> OpenGeo - <http://opengeo.org/>http://opengeo.org/
>
> On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez < <ingenieroariel@gmail.com>
> ingenieroariel@gmail.com> wrote:
>
>> I had to do the same for my install yesterday, in my case it was
>> because the curl version I had was 1.15 and the latest pycurl required
>> 1.17. I had to first install a new curl and then run (inside the
>> venv):
>>
>> pip install pycurl
>> pip install
>> <http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz>
>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>
>> I fully support the idea of setting up our own PyPi mirror, hopefully
>> avoiding the rewrite of the build script.
>>
>> Best,
>> Ariel.
>>
>>
>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow < <dwinslow@opengeo.org>
>> dwinslow@opengeo.org> wrote:
>> > I haven't looked very hard but I can't find any information about the
>> > removal of urlgrabber from the python package repository. I think it
>> would
>> > probably be a good idea for us to start mirroring our dependencies in a
>> > repository of our own to avoid this sort of thing.
>> > In the shorter term I would be open to rewriting the build script to
>> avoid
>> > requiring urlgrabber.
>> > --
>> > David Winslow
>> > OpenGeo - <http://opengeo.org/>http://opengeo.org/
>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <<cspanring@gmail.com>
>> cspanring@gmail.com>
>> > wrote:
>> >>
>> >> Ole,
>> >>
>> >> the problem is that easy_install can't find urlgrabber at
>> <http://pypi.python.org>pypi.python.org
>> >> anymore, so you have to install urlgrabber manually as workaround:
>> >>
>> >> download and unpack it from <http://urlgrabber.baseurl.org/>
>> http://urlgrabber.baseurl.org/
>> >>
>> >> $ wget
>> <http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz>
>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>> >>
>> >> install urlgrabber in GeoNode's Virtual Environment:
>> >>
>> >> $ . bin/activate
>> >> (geonode) $ cd urlgrabber-3.9.1
>> >> (geonode) $ python setup.py install
>> >>
>> >> in my case it asked for pycurl, which I had to install first
>> >> (geonode) $ easy_install pycurl
>> >>
>> >> That should to it.
>> >>
>> >> Christian
>> >>
>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>> >>
>> >> > Dear all
>> >> > I am trying to install GeoNode according to the instructions at
>> >> > <http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst>
>> http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have gotten
>> as
>> >> > far as paver build.
>> >> >
>> >> > However, paver build fails with the following error: ImportError: No
>> >> > module named urlgrabber.grabber
>> >> > However, if I start Python normally (i.e. without virtual
>> environment)
>> >> > and try it works just fine:
>> >> >
>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>> >> > [GCC 4.3.3] on linux2
>> >> > Type "help", "copyright", "credits" or "license" for more
>> information.
>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>> >> > >>>
>> >> >
>> >> > I am running Ubuntu 9.04 - 64 bit.
>> >> >
>> >> > The tail of the paver output follows below.
>> >> > Cheers and thanks for any help
>> >> > Ole Nielsen
>> >> >
>> >> > -- output from paver build --
>> >> >
>> >> > ########## SUMMARY INFO #########
>> >> > ################################################
>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>> >> > ################################################
>> >> > ################################################
>> >> > #Attempting install of _renderPM
>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>> >> > # installing with freetype version 21
>> >> > ################################################
>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>> >> > ---> pavement.setup_webapps
>> >> > ---> pavement.setup_geoserver
>> >> > ---> pavement.setup_gs_data
>> >> > Traceback (most recent call last):
>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 615, in main
>> >> > _launch_pavement(args)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 598, in _launch_pavement
>> >> > _process_commands(args, auto_pending=auto_pending)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 563, in _process_commands
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 161, in do_task
>> >> > return func(**kw)
>> >> > File "pavement.py", line 186, in setup_gs_data
>> >> > grab(src_url, dst_url)
>> >> > File "pavement.py", line 159, in grab
>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>> >> > ImportError: No module named urlgrabber.grabber
>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-11-01 @ 19:28
On Nov 1, 2010, at 14:16, David Winslow <dwinslow@opengeo.org> wrote:
I was really asking if you knew a better way to handle the problem of
getting stuff into the repository in the first place.
Gotcha, in that case i think using the --fetch-site-packages option in
compoze looks like the right place to start. I know there are many projects
to create PyPi mirrors but have used none of them, Compoze looks good enough
to me.
btw, for whatever reason the place where urlgrabber is failing is using
easy_install to get stuff, so I don't think pip's -f flag is an option
there.
-d
On Mon, Nov 1, 2010 at 3:12 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> Quoting Simon Willinson:
>
> At work, the first line in our requirements.txt file is "-f
<http://pypi.internal/%22>
> http://pypi.internal/" - which causes pip to use our own internal PyPI
> mirror (just an Apache directory listing which pip/setuptools is smart
> enough to scrape).
> I dig that idea of just using apache and throwing .tar.gz files there.
>
> Sent from my i
> On Nov 1, 2010, at 13:52, David Winslow <dwinslow@opengeo.org> wrote:
>
> Looking into the "mirror pypi" idea, it seems the
Compoze<http://docs.repoze.org/compoze/>project from Repoze is a pretty
simple way to set up a Pypi-compatible
> package index with packages from Pypi or elsewhere. I don't think it will
> automatically read our pip requirements files, but for now I'll just it to
> just set up a repo with these problem packages.
>
> Does anyone know a better tool for this? (Ariel??) Otherwise I'll take a
> look later this week into making a complete mirror with all the Python
> packages we use to prevent this sort of problem from cropping up again.
>
> --
> David Winslow
> OpenGeo - <http://opengeo.org/>http://opengeo.org/
>
> On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez < <ingenieroariel@gmail.com>
> ingenieroariel@gmail.com> wrote:
>
>> I had to do the same for my install yesterday, in my case it was
>> because the curl version I had was 1.15 and the latest pycurl required
>> 1.17. I had to first install a new curl and then run (inside the
>> venv):
>>
>> pip install pycurl
>> pip install
>> <http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz>
>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>
>> I fully support the idea of setting up our own PyPi mirror, hopefully
>> avoiding the rewrite of the build script.
>>
>> Best,
>> Ariel.
>>
>>
>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow < <dwinslow@opengeo.org>
>> dwinslow@opengeo.org> wrote:
>> > I haven't looked very hard but I can't find any information about the
>> > removal of urlgrabber from the python package repository. I think it
>> would
>> > probably be a good idea for us to start mirroring our dependencies in a
>> > repository of our own to avoid this sort of thing.
>> > In the shorter term I would be open to rewriting the build script to
>> avoid
>> > requiring urlgrabber.
>> > --
>> > David Winslow
>> > OpenGeo - <http://opengeo.org/>http://opengeo.org/
>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring <<cspanring@gmail.com>
>> cspanring@gmail.com>
>> > wrote:
>> >>
>> >> Ole,
>> >>
>> >> the problem is that easy_install can't find urlgrabber at
>> <http://pypi.python.org>pypi.python.org
>> >> anymore, so you have to install urlgrabber manually as workaround:
>> >>
>> >> download and unpack it from <http://urlgrabber.baseurl.org/>
>> http://urlgrabber.baseurl.org/
>> >>
>> >> $ wget
>> <http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz>
>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>> >>
>> >> install urlgrabber in GeoNode's Virtual Environment:
>> >>
>> >> $ . bin/activate
>> >> (geonode) $ cd urlgrabber-3.9.1
>> >> (geonode) $ python setup.py install
>> >>
>> >> in my case it asked for pycurl, which I had to install first
>> >> (geonode) $ easy_install pycurl
>> >>
>> >> That should to it.
>> >>
>> >> Christian
>> >>
>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>> >>
>> >> > Dear all
>> >> > I am trying to install GeoNode according to the instructions at
>> >> > <http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst>
>> http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have gotten
>> as
>> >> > far as paver build.
>> >> >
>> >> > However, paver build fails with the following error: ImportError: No
>> >> > module named urlgrabber.grabber
>> >> > However, if I start Python normally (i.e. without virtual
>> environment)
>> >> > and try it works just fine:
>> >> >
>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>> >> > [GCC 4.3.3] on linux2
>> >> > Type "help", "copyright", "credits" or "license" for more
>> information.
>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>> >> > >>>
>> >> >
>> >> > I am running Ubuntu 9.04 - 64 bit.
>> >> >
>> >> > The tail of the paver output follows below.
>> >> > Cheers and thanks for any help
>> >> > Ole Nielsen
>> >> >
>> >> > -- output from paver build --
>> >> >
>> >> > ########## SUMMARY INFO #########
>> >> > ################################################
>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>> >> > ################################################
>> >> > ################################################
>> >> > #Attempting install of _renderPM
>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>> >> > # installing with freetype version 21
>> >> > ################################################
>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>> >> > ---> pavement.setup_webapps
>> >> > ---> pavement.setup_geoserver
>> >> > ---> pavement.setup_gs_data
>> >> > Traceback (most recent call last):
>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 615, in main
>> >> > _launch_pavement(args)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 598, in _launch_pavement
>> >> > _process_commands(args, auto_pending=auto_pending)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 563, in _process_commands
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 160, in do_task
>> >> > task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 241, in __call__
>> >> > retval = environment._run_task( <http://self.name>self.name,
>> self.needs, self.func)
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 181, in _run_task
>> >> > return do_task()
>> >> > File
>> >> >
>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>> >> > line 161, in do_task
>> >> > return func(**kw)
>> >> > File "pavement.py", line 186, in setup_gs_data
>> >> > grab(src_url, dst_url)
>> >> > File "pavement.py", line 159, in grab
>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>> >> > ImportError: No module named urlgrabber.grabber
>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-01 @ 20:33
Well, I don't seem to be able to easy_install pycurl in the first place, so
I'm no longer convinced that just mirroring urlgrabber is sufficient.
Maybe this is a Fedora-specific issue, but does anyone who's been able to
manually install pycurl so far have some pointers on troubleshooting?
$ easy_install pycurl
Runs without error, but afterwards trying to install urlgrabber complains
that no module named pycurl can be found. Interestingly, pycurl only
produces a curl/ module in my site-packages; it looks like pycurl is the
name of the relevant C module.
There's a pypi index with just pycurl and urlgrabber at
http://dev.geonode.org/pypi/simple/ if you would like to try it out
yourself.
--
David Winslow
OpenGeo - http://opengeo.org/
On Mon, Nov 1, 2010 at 3:28 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
>
> On Nov 1, 2010, at 14:16, David Winslow <dwinslow@opengeo.org> wrote:
>
> I was really asking if you knew a better way to handle the problem of
> getting stuff into the repository in the first place.
>
>
> Gotcha, in that case i think using the --fetch-site-packages option in
> compoze looks like the right place to start. I know there are many projects
> to create PyPi mirrors but have used none of them, Compoze looks good enough
> to me.
>
> btw, for whatever reason the place where urlgrabber is failing is using
> easy_install to get stuff, so I don't think pip's -f flag is an option
> there.
>
> -d
>
> On Mon, Nov 1, 2010 at 3:12 PM, Ariel Nunez < <ingenieroariel@gmail.com>
> ingenieroariel@gmail.com> wrote:
>
>> Quoting Simon Willinson:
>>
>> At work, the first line in our requirements.txt file is "-f
<http://pypi.internal/%22><http://pypi.internal/>
>> http://pypi.internal/" - which causes pip to use our own internal PyPI
>> mirror (just an Apache directory listing which pip/setuptools is smart
>> enough to scrape).
>> I dig that idea of just using apache and throwing .tar.gz files there.
>>
>> Sent from my i
>> On Nov 1, 2010, at 13:52, David Winslow < <dwinslow@opengeo.org>
>> dwinslow@opengeo.org> wrote:
>>
>> Looking into the "mirror pypi" idea, it seems the
Compoze<http://docs.repoze.org/compoze/>project from Repoze is a pretty
simple way to set up a Pypi-compatible
>> package index with packages from Pypi or elsewhere. I don't think it will
>> automatically read our pip requirements files, but for now I'll just it to
>> just set up a repo with these problem packages.
>>
>> Does anyone know a better tool for this? (Ariel??) Otherwise I'll take a
>> look later this week into making a complete mirror with all the Python
>> packages we use to prevent this sort of problem from cropping up again.
>>
>> --
>> David Winslow
>> OpenGeo - <http://opengeo.org/> <http://opengeo.org/>http://opengeo.org/
>>
>> On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez <
<ingenieroariel@gmail.com><ingenieroariel@gmail.com>
>> ingenieroariel@gmail.com> wrote:
>>
>>> I had to do the same for my install yesterday, in my case it was
>>> because the curl version I had was 1.15 and the latest pycurl required
>>> 1.17. I had to first install a new curl and then run (inside the
>>> venv):
>>>
>>> pip install pycurl
>>> pip install
>>>
<http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz><http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz>
>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>
>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>> avoiding the rewrite of the build script.
>>>
>>> Best,
>>> Ariel.
>>>
>>>
>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <
<dwinslow@opengeo.org><dwinslow@opengeo.org>
>>> dwinslow@opengeo.org> wrote:
>>> > I haven't looked very hard but I can't find any information about the
>>> > removal of urlgrabber from the python package repository. I think it
>>> would
>>> > probably be a good idea for us to start mirroring our dependencies in a
>>> > repository of our own to avoid this sort of thing.
>>> > In the shorter term I would be open to rewriting the build script to
>>> avoid
>>> > requiring urlgrabber.
>>> > --
>>> > David Winslow
>>> > OpenGeo - <http://opengeo.org/> <http://opengeo.org/>
>>> http://opengeo.org/
>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring
<<cspanring@gmail.com><cspanring@gmail.com>
>>> cspanring@gmail.com>
>>> > wrote:
>>> >>
>>> >> Ole,
>>> >>
>>> >> the problem is that easy_install can't find urlgrabber at
>>> <http://pypi.python.org> <http://pypi.python.org>pypi.python.org
>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>> >>
>>> >> download and unpack it from
<http://urlgrabber.baseurl.org/><http://urlgrabber.baseurl.org/>
>>> http://urlgrabber.baseurl.org/
>>> >>
>>> >> $ wget
>>>
<http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz><http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz>
>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>> >>
>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>> >>
>>> >> $ . bin/activate
>>> >> (geonode) $ cd urlgrabber-3.9.1
>>> >> (geonode) $ python setup.py install
>>> >>
>>> >> in my case it asked for pycurl, which I had to install first
>>> >> (geonode) $ easy_install pycurl
>>> >>
>>> >> That should to it.
>>> >>
>>> >> Christian
>>> >>
>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>> >>
>>> >> > Dear all
>>> >> > I am trying to install GeoNode according to the instructions at
>>> >> >
<http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst><http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst>
>>> http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
>>> gotten as
>>> >> > far as paver build.
>>> >> >
>>> >> > However, paver build fails with the following error: ImportError: No
>>> >> > module named urlgrabber.grabber
>>> >> > However, if I start Python normally (i.e. without virtual
>>> environment)
>>> >> > and try it works just fine:
>>> >> >
>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>> >> > [GCC 4.3.3] on linux2
>>> >> > Type "help", "copyright", "credits" or "license" for more
>>> information.
>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>> >> > >>>
>>> >> >
>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>> >> >
>>> >> > The tail of the paver output follows below.
>>> >> > Cheers and thanks for any help
>>> >> > Ole Nielsen
>>> >> >
>>> >> > -- output from paver build --
>>> >> >
>>> >> > ########## SUMMARY INFO #########
>>> >> > ################################################
>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>> >> > ################################################
>>> >> > ################################################
>>> >> > #Attempting install of _renderPM
>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>> >> > # installing with freetype version 21
>>> >> > ################################################
>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>> >> > ---> pavement.setup_webapps
>>> >> > ---> pavement.setup_geoserver
>>> >> > ---> pavement.setup_gs_data
>>> >> > Traceback (most recent call last):
>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in <module>
>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 615, in main
>>> >> > _launch_pavement(args)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 598, in _launch_pavement
>>> >> > _process_commands(args, auto_pending=auto_pending)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 563, in _process_commands
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task( <http://self.name><http://self.name>
>>> self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 160, in do_task
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task( <http://self.name><http://self.name>
>>> self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 160, in do_task
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task( <http://self.name><http://self.name>
>>> self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 160, in do_task
>>> >> > task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 241, in __call__
>>> >> > retval = environment._run_task( <http://self.name><http://self.name>
>>> self.name, self.needs, self.func)
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 181, in _run_task
>>> >> > return do_task()
>>> >> > File
>>> >> >
>>>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>> >> > line 161, in do_task
>>> >> > return func(**kw)
>>> >> > File "pavement.py", line 186, in setup_gs_data
>>> >> > grab(src_url, dst_url)
>>> >> > File "pavement.py", line 159, in grab
>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>> >> > ImportError: No module named urlgrabber.grabber
>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >
>>> >
>>>
>>
>>
>
Re: [geonode] Error installing GeoNode from source
- From:
- Ariel Nunez
- Date:
- 2010-11-01 @ 20:43
I had to upgrade my built-in curl from 7.15 to 7.19 before being able
to install the latest pycurl.
Maybe if we put an earlier version of pycurl in our pypi mirror? On
the top of the release notes[1] it seems to imply this is the first
backwards incompatible release:
Version 7.19.0 [requires libcurl-7.19.0 or better]
--------------
* Added CURLFILE, ADDRESS_SCOPE and ISSUERCERT options,
as well as the APPCONNECT_TIME info.
* Added PRIMARY_IP info (patch by
Yuhui H <eyecat at gmail.com>).
* Added support for curl_easy_reset through a
new 'reset' method on curl objects
(patch by Nick Pilon <npilon at oreilly.com>).
* Added support for OPENSOCKET callbacks.
See 'tests/test_opensocket.py' for example
usage (patch by Thomas Hunger <teh at camvine.com>).
Version 7.18.2
--------------
* Added REDIRECT_URL info and M_MAXCONNECTS option
(patch by Yuhui H <eyecat at gmail.com>).
* Added socket_action() method to CurlMulti objects.
See 'tests/test_multi_socket_select.py' for example
usage (patch by Yuhui H <eyecat at gmail.com>).
* Added AUTOREFERER option.
* Allow resetting some list operations (HTTPHEADER,
QUOTE, POSTQUOTE, PREQUOTE) by passing an empty
list to setopt (patch by Jim Patterson).
[1] http://pycurl.sourceforge.net/ChangeLog
On Mon, Nov 1, 2010 at 3:33 PM, David Winslow <dwinslow@opengeo.org> wrote:
> Well, I don't seem to be able to easy_install pycurl in the first place, so
> I'm no longer convinced that just mirroring urlgrabber is sufficient.
> Maybe this is a Fedora-specific issue, but does anyone who's been able to
> manually install pycurl so far have some pointers on troubleshooting?
> $ easy_install pycurl
> Runs without error, but afterwards trying to install urlgrabber complains
> that no module named pycurl can be found. Interestingly, pycurl only
> produces a curl/ module in my site-packages; it looks like pycurl is the
> name of the relevant C module.
> There's a pypi index with just pycurl and urlgrabber at
> http://dev.geonode.org/pypi/simple/ if you would like to try it out
> yourself.
> --
> David Winslow
> OpenGeo - http://opengeo.org/
> On Mon, Nov 1, 2010 at 3:28 PM, Ariel Nunez <ingenieroariel@gmail.com>
> wrote:
>>
>> On Nov 1, 2010, at 14:16, David Winslow <dwinslow@opengeo.org> wrote:
>>
>> I was really asking if you knew a better way to handle the problem of
>> getting stuff into the repository in the first place.
>>
>> Gotcha, in that case i think using the --fetch-site-packages option in
>> compoze looks like the right place to start. I know there are many projects
>> to create PyPi mirrors but have used none of them, Compoze looks good enough
>> to me.
>>
>> btw, for whatever reason the place where urlgrabber is failing is using
>> easy_install to get stuff, so I don't think pip's -f flag is an option
>> there.
>> -d
>> On Mon, Nov 1, 2010 at 3:12 PM, Ariel Nunez <ingenieroariel@gmail.com>
>> wrote:
>>>
>>> Quoting Simon Willinson:
>>>
>>> At work, the first line in our requirements.txt file is
>>> "-f http://pypi.internal/" - which causes pip to use our own internal PyPI
>>> mirror (just an Apache directory listing which pip/setuptools is smart
>>> enough to scrape).
>>>
>>> I dig that idea of just using apache and throwing .tar.gz files there.
>>>
>>> Sent from my i
>>> On Nov 1, 2010, at 13:52, David Winslow <dwinslow@opengeo.org> wrote:
>>>
>>> Looking into the "mirror pypi" idea, it seems the Compoze project from
>>> Repoze is a pretty simple way to set up a Pypi-compatible package index with
>>> packages from Pypi or elsewhere. I don't think it will automatically read
>>> our pip requirements files, but for now I'll just it to just set up a repo
>>> with these problem packages.
>>> Does anyone know a better tool for this? (Ariel??) Otherwise I'll take a
>>> look later this week into making a complete mirror with all the Python
>>> packages we use to prevent this sort of problem from cropping up again.
>>> --
>>> David Winslow
>>> OpenGeo - http://opengeo.org/
>>>
>>> On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez <ingenieroariel@gmail.com>
>>> wrote:
>>>>
>>>> I had to do the same for my install yesterday, in my case it was
>>>> because the curl version I had was 1.15 and the latest pycurl required
>>>> 1.17. I had to first install a new curl and then run (inside the
>>>> venv):
>>>>
>>>> pip install pycurl
>>>> pip install
>>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>>
>>>> I fully support the idea of setting up our own PyPi mirror, hopefully
>>>> avoiding the rewrite of the build script.
>>>>
>>>> Best,
>>>> Ariel.
>>>>
>>>>
>>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
>>>> wrote:
>>>> > I haven't looked very hard but I can't find any information about the
>>>> > removal of urlgrabber from the python package repository. I think it
>>>> > would
>>>> > probably be a good idea for us to start mirroring our dependencies in
>>>> > a
>>>> > repository of our own to avoid this sort of thing.
>>>> > In the shorter term I would be open to rewriting the build script to
>>>> > avoid
>>>> > requiring urlgrabber.
>>>> > --
>>>> > David Winslow
>>>> > OpenGeo - http://opengeo.org/
>>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring
>>>> > <cspanring@gmail.com>
>>>> > wrote:
>>>> >>
>>>> >> Ole,
>>>> >>
>>>> >> the problem is that easy_install can't find urlgrabber at
>>>> >> pypi.python.org
>>>> >> anymore, so you have to install urlgrabber manually as workaround:
>>>> >>
>>>> >> download and unpack it from http://urlgrabber.baseurl.org/
>>>> >>
>>>> >> $ wget http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
>>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
>>>> >>
>>>> >> install urlgrabber in GeoNode's Virtual Environment:
>>>> >>
>>>> >> $ . bin/activate
>>>> >> (geonode) $ cd urlgrabber-3.9.1
>>>> >> (geonode) $ python setup.py install
>>>> >>
>>>> >> in my case it asked for pycurl, which I had to install first
>>>> >> (geonode) $ easy_install pycurl
>>>> >>
>>>> >> That should to it.
>>>> >>
>>>> >> Christian
>>>> >>
>>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
>>>> >>
>>>> >> > Dear all
>>>> >> > I am trying to install GeoNode according to the instructions at
>>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and have
>>>> >> > gotten as
>>>> >> > far as paver build.
>>>> >> >
>>>> >> > However, paver build fails with the following error: ImportError:
>>>> >> > No
>>>> >> > module named urlgrabber.grabber
>>>> >> > However, if I start Python normally (i.e. without virtual
>>>> >> > environment)
>>>> >> > and try it works just fine:
>>>> >> >
>>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
>>>> >> > [GCC 4.3.3] on linux2
>>>> >> > Type "help", "copyright", "credits" or "license" for more
>>>> >> > information.
>>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
>>>> >> > >>>
>>>> >> >
>>>> >> > I am running Ubuntu 9.04 - 64 bit.
>>>> >> >
>>>> >> > The tail of the paver output follows below.
>>>> >> > Cheers and thanks for any help
>>>> >> > Ole Nielsen
>>>> >> >
>>>> >> > -- output from paver build --
>>>> >> >
>>>> >> > ########## SUMMARY INFO #########
>>>> >> > ################################################
>>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
>>>> >> > ################################################
>>>> >> > ################################################
>>>> >> > #Attempting install of _renderPM
>>>> >> > #extensions from '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
>>>> >> > # installing with freetype version 21
>>>> >> > ################################################
>>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
>>>> >> > ---> pavement.setup_webapps
>>>> >> > ---> pavement.setup_geoserver
>>>> >> > ---> pavement.setup_gs_data
>>>> >> > Traceback (most recent call last):
>>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in
>>>> >> > <module>
>>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts', 'paver')()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 615, in main
>>>> >> > _launch_pavement(args)
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 598, in _launch_pavement
>>>> >> > _process_commands(args, auto_pending=auto_pending)
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 563, in _process_commands
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs,
>>>> >> > self.func)
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 160, in do_task
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs,
>>>> >> > self.func)
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 160, in do_task
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs,
>>>> >> > self.func)
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 160, in do_task
>>>> >> > task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 241, in __call__
>>>> >> > retval = environment._run_task(self.name, self.needs,
>>>> >> > self.func)
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 181, in _run_task
>>>> >> > return do_task()
>>>> >> > File
>>>> >> >
>>>> >> >
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
>>>> >> > line 161, in do_task
>>>> >> > return func(**kw)
>>>> >> > File "pavement.py", line 186, in setup_gs_data
>>>> >> > grab(src_url, dst_url)
>>>> >> > File "pavement.py", line 159, in grab
>>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
>>>> >> > ImportError: No module named urlgrabber.grabber
>>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >>
>>>> >
>>>> >
>>>
>>
>
>
Re: [geonode] Error installing GeoNode from source
- From:
- David Winslow
- Date:
- 2010-11-01 @ 20:58
I have a sufficient version of libcurl and libcurl-devel installed.
However, now that I look at the output a bit closer, I can see that
setuptools is dumping the output of curl-config (some args) into a call to
gcc and the arguments passed to curl-config are not valid, so gcc is failing
and I guess being ignored since I don't get an error message at the end of
all this.
Anyway, maybe I'll just not use --no-site-packages when setting up my venv
and pretend this problem doesn't exist. But I'll need to team up with
someone on a system where curl-config works like Pycurl expects to finish
making sure the new Pypi mirror works.
-d
On Mon, Nov 1, 2010 at 4:43 PM, Ariel Nunez <ingenieroariel@gmail.com>wrote:
> I had to upgrade my built-in curl from 7.15 to 7.19 before being able
> to install the latest pycurl.
>
> Maybe if we put an earlier version of pycurl in our pypi mirror? On
> the top of the release notes[1] it seems to imply this is the first
> backwards incompatible release:
>
>
> Version 7.19.0 [requires libcurl-7.19.0 or better]
> --------------
>
> * Added CURLFILE, ADDRESS_SCOPE and ISSUERCERT options,
> as well as the APPCONNECT_TIME info.
>
> * Added PRIMARY_IP info (patch by
> Yuhui H <eyecat at gmail.com>).
>
> * Added support for curl_easy_reset through a
> new 'reset' method on curl objects
> (patch by Nick Pilon <npilon at oreilly.com>).
>
> * Added support for OPENSOCKET callbacks.
> See 'tests/test_opensocket.py' for example
> usage (patch by Thomas Hunger <teh at camvine.com>).
>
>
> Version 7.18.2
> --------------
>
> * Added REDIRECT_URL info and M_MAXCONNECTS option
> (patch by Yuhui H <eyecat at gmail.com>).
>
> * Added socket_action() method to CurlMulti objects.
> See 'tests/test_multi_socket_select.py' for example
> usage (patch by Yuhui H <eyecat at gmail.com>).
>
> * Added AUTOREFERER option.
>
> * Allow resetting some list operations (HTTPHEADER,
> QUOTE, POSTQUOTE, PREQUOTE) by passing an empty
> list to setopt (patch by Jim Patterson).
>
>
> [1] http://pycurl.sourceforge.net/ChangeLog
>
> On Mon, Nov 1, 2010 at 3:33 PM, David Winslow <dwinslow@opengeo.org>
> wrote:
> > Well, I don't seem to be able to easy_install pycurl in the first place,
> so
> > I'm no longer convinced that just mirroring urlgrabber is sufficient.
> > Maybe this is a Fedora-specific issue, but does anyone who's been able to
> > manually install pycurl so far have some pointers on troubleshooting?
> > $ easy_install pycurl
> > Runs without error, but afterwards trying to install urlgrabber complains
> > that no module named pycurl can be found. Interestingly, pycurl only
> > produces a curl/ module in my site-packages; it looks like pycurl is the
> > name of the relevant C module.
> > There's a pypi index with just pycurl and urlgrabber at
> > http://dev.geonode.org/pypi/simple/ if you would like to try it out
> > yourself.
> > --
> > David Winslow
> > OpenGeo - http://opengeo.org/
> > On Mon, Nov 1, 2010 at 3:28 PM, Ariel Nunez <ingenieroariel@gmail.com>
> > wrote:
> >>
> >> On Nov 1, 2010, at 14:16, David Winslow <dwinslow@opengeo.org> wrote:
> >>
> >> I was really asking if you knew a better way to handle the problem of
> >> getting stuff into the repository in the first place.
> >>
> >> Gotcha, in that case i think using the --fetch-site-packages option in
> >> compoze looks like the right place to start. I know there are many
> projects
> >> to create PyPi mirrors but have used none of them, Compoze looks good
> enough
> >> to me.
> >>
> >> btw, for whatever reason the place where urlgrabber is failing is using
> >> easy_install to get stuff, so I don't think pip's -f flag is an option
> >> there.
> >> -d
> >> On Mon, Nov 1, 2010 at 3:12 PM, Ariel Nunez <ingenieroariel@gmail.com>
> >> wrote:
> >>>
> >>> Quoting Simon Willinson:
> >>>
> >>> At work, the first line in our requirements.txt file is
> >>> "-f http://pypi.internal/" - which causes pip to use our own internal
> PyPI
> >>> mirror (just an Apache directory listing which pip/setuptools is smart
> >>> enough to scrape).
> >>>
> >>> I dig that idea of just using apache and throwing .tar.gz files there.
> >>>
> >>> Sent from my i
> >>> On Nov 1, 2010, at 13:52, David Winslow <dwinslow@opengeo.org> wrote:
> >>>
> >>> Looking into the "mirror pypi" idea, it seems the Compoze project from
> >>> Repoze is a pretty simple way to set up a Pypi-compatible package index
> with
> >>> packages from Pypi or elsewhere. I don't think it will automatically
> read
> >>> our pip requirements files, but for now I'll just it to just set up a
> repo
> >>> with these problem packages.
> >>> Does anyone know a better tool for this? (Ariel??) Otherwise I'll take
> a
> >>> look later this week into making a complete mirror with all the Python
> >>> packages we use to prevent this sort of problem from cropping up again.
> >>> --
> >>> David Winslow
> >>> OpenGeo - http://opengeo.org/
> >>>
> >>> On Fri, Oct 29, 2010 at 9:20 AM, Ariel Nunez <ingenieroariel@gmail.com
> >
> >>> wrote:
> >>>>
> >>>> I had to do the same for my install yesterday, in my case it was
> >>>> because the curl version I had was 1.15 and the latest pycurl required
> >>>> 1.17. I had to first install a new curl and then run (inside the
> >>>> venv):
> >>>>
> >>>> pip install pycurl
> >>>> pip install
> >>>> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >>>>
> >>>> I fully support the idea of setting up our own PyPi mirror, hopefully
> >>>> avoiding the rewrite of the build script.
> >>>>
> >>>> Best,
> >>>> Ariel.
> >>>>
> >>>>
> >>>> On Fri, Oct 29, 2010 at 8:02 AM, David Winslow <dwinslow@opengeo.org>
> >>>> wrote:
> >>>> > I haven't looked very hard but I can't find any information about
> the
> >>>> > removal of urlgrabber from the python package repository. I think
> it
> >>>> > would
> >>>> > probably be a good idea for us to start mirroring our dependencies
> in
> >>>> > a
> >>>> > repository of our own to avoid this sort of thing.
> >>>> > In the shorter term I would be open to rewriting the build script to
> >>>> > avoid
> >>>> > requiring urlgrabber.
> >>>> > --
> >>>> > David Winslow
> >>>> > OpenGeo - http://opengeo.org/
> >>>> > On Fri, Oct 29, 2010 at 7:56 AM, Christian Spanring
> >>>> > <cspanring@gmail.com>
> >>>> > wrote:
> >>>> >>
> >>>> >> Ole,
> >>>> >>
> >>>> >> the problem is that easy_install can't find urlgrabber at
> >>>> >> pypi.python.org
> >>>> >> anymore, so you have to install urlgrabber manually as workaround:
> >>>> >>
> >>>> >> download and unpack it from http://urlgrabber.baseurl.org/
> >>>> >>
> >>>> >> $ wget
> http://urlgrabber.baseurl.org/download/urlgrabber-3.9.1.tar.gz
> >>>> >> $ tar xvzf urlgrabber-3.9.1.tar.gz
> >>>> >>
> >>>> >> install urlgrabber in GeoNode's Virtual Environment:
> >>>> >>
> >>>> >> $ . bin/activate
> >>>> >> (geonode) $ cd urlgrabber-3.9.1
> >>>> >> (geonode) $ python setup.py install
> >>>> >>
> >>>> >> in my case it asked for pycurl, which I had to install first
> >>>> >> (geonode) $ easy_install pycurl
> >>>> >>
> >>>> >> That should to it.
> >>>> >>
> >>>> >> Christian
> >>>> >>
> >>>> >> On Oct 29, 2010, at 1:54 AM, Ole Nielsen wrote:
> >>>> >>
> >>>> >> > Dear all
> >>>> >> > I am trying to install GeoNode according to the instructions at
> >>>> >> > http://github.com/GeoNode/geonode/blob/1.0-RC2/README.rst and
> have
> >>>> >> > gotten as
> >>>> >> > far as paver build.
> >>>> >> >
> >>>> >> > However, paver build fails with the following error: ImportError:
> >>>> >> > No
> >>>> >> > module named urlgrabber.grabber
> >>>> >> > However, if I start Python normally (i.e. without virtual
> >>>> >> > environment)
> >>>> >> > and try it works just fine:
> >>>> >> >
> >>>> >> > Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> >>>> >> > [GCC 4.3.3] on linux2
> >>>> >> > Type "help", "copyright", "credits" or "license" for more
> >>>> >> > information.
> >>>> >> > >>> from urlgrabber.grabber import urlgrab, URLGrabError
> >>>> >> > >>>
> >>>> >> >
> >>>> >> > I am running Ubuntu 9.04 - 64 bit.
> >>>> >> >
> >>>> >> > The tail of the paver output follows below.
> >>>> >> > Cheers and thanks for any help
> >>>> >> > Ole Nielsen
> >>>> >> >
> >>>> >> > -- output from paver build --
> >>>> >> >
> >>>> >> > ########## SUMMARY INFO #########
> >>>> >> > ################################################
> >>>> >> > #Attempting install of _rl_accel, sgmlop & pyHnj
> >>>> >> > #extensions from
> '/tmp/pip-0Buy2p-build/src/rl_addons/rl_accel'
> >>>> >> > ################################################
> >>>> >> > ################################################
> >>>> >> > #Attempting install of _renderPM
> >>>> >> > #extensions from
> '/tmp/pip-0Buy2p-build/src/rl_addons/renderPM'
> >>>> >> > # installing with freetype version 21
> >>>> >> > ################################################
> >>>> >> > Successfully installed avatar gsconfig.py OWSLib reportlab
> >>>> >> > ---> pavement.setup_webapps
> >>>> >> > ---> pavement.setup_geoserver
> >>>> >> > ---> pavement.setup_gs_data
> >>>> >> > Traceback (most recent call last):
> >>>> >> > File "/home/nielso/sandpit/geonode/bin/paver", line 8, in
> >>>> >> > <module>
> >>>> >> > load_entry_point('Paver==1.0.1', 'console_scripts',
> 'paver')()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 615, in main
> >>>> >> > _launch_pavement(args)
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 598, in _launch_pavement
> >>>> >> > _process_commands(args, auto_pending=auto_pending)
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 563, in _process_commands
> >>>> >> > task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 241, in __call__
> >>>> >> > retval = environment._run_task(self.name, self.needs,
> >>>> >> > self.func)
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 181, in _run_task
> >>>> >> > return do_task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 160, in do_task
> >>>> >> > task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 241, in __call__
> >>>> >> > retval = environment._run_task(self.name, self.needs,
> >>>> >> > self.func)
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 181, in _run_task
> >>>> >> > return do_task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 160, in do_task
> >>>> >> > task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 241, in __call__
> >>>> >> > retval = environment._run_task(self.name, self.needs,
> >>>> >> > self.func)
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 181, in _run_task
> >>>> >> > return do_task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 160, in do_task
> >>>> >> > task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 241, in __call__
> >>>> >> > retval = environment._run_task(self.name, self.needs,
> >>>> >> > self.func)
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 181, in _run_task
> >>>> >> > return do_task()
> >>>> >> > File
> >>>> >> >
> >>>> >> >
>
"/home/nielso/sandpit/geonode/lib/python2.6/site-packages/Paver-1.0.1-py2.6.egg/paver/tasks.py",
> >>>> >> > line 161, in do_task
> >>>> >> > return func(**kw)
> >>>> >> > File "pavement.py", line 186, in setup_gs_data
> >>>> >> > grab(src_url, dst_url)
> >>>> >> > File "pavement.py", line 159, in grab
> >>>> >> > from urlgrabber.grabber import urlgrab, URLGrabError
> >>>> >> > ImportError: No module named urlgrabber.grabber
> >>>> >> > (geonode)nielso@shiva:~/sandpit/geonode$
> >>>> >> >
> >>>> >> >
> >>>> >> >
> >>>> >> >
> >>>> >>
> >>>> >
> >>>> >
> >>>
> >>
> >
> >
>