I thought I'll share my way of installing RB on Ubuntu.

What I normally do when installing django projects is install
everything via virtualenv script. On Ubuntu you can apt-get install
python-pip and python-virtualenv, then:

# Create Python virtual environments directory
mkdir -p /srv/pve

# Specific project dir
mkdir /srv/pve/project-name
# Create python virtual env, do not inherit any site-packages (clean
python)
virtualenv --no-site-packages --distribute /srv/pve/project-name
# You can source the /srv/pve/project-name/bin/activate file to switch
to your virtualenv:
source /srv/pve/project-name/bin/activate

# now you are free to install whatever python packages (and versions)
you like
# install RB
pip install ReviewBoard

# NOTE: pip supports installing things from the repositories. You can
use the pip freeze option to save the installed packages' versions.

(source and more info for the required modifications to the server
setup: 
http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/)

I like the way this keeps my setup independent from the distribution's
site-packages.

HTH

Regards,
Bartek


PS. Not sure if it has been fixed but PIL package did not compiled
correctly in Ubunut 11.04 (the lib locations were not as it expected).
I had to grab it manually and fix the lib's location in the setup.py.

On Dec 14, 4:54 am, "mmn...@gmail.com" <mmn...@gmail.com> wrote:
> Finally! Went to the Django site, manually downloaded 1.3.1 and
> installed manually in the normal way. Then I have atleast progressed
> forward.
>
> Thanks for your pointers.
>
> MMN
>
> On Dec 14, 8:23 am, Christian Hammond <chip...@chipx86.com> wrote:
>
>
>
>
>
>
>
> > The choice of pip vs. easy_install doesn't actually matter here.
> > Personally, I use easy_install.
>
> > You're hitting some very strange issues that are not at all common on a
> > system.
>
> > I'm a bit stuck as to where you are in this. What exactly is failing?
>
> > What version of Ubuntu is this?
>
> > Christian
>
> > --
> > Christian Hammond - chip...@chipx86.com
> > Review Board -http://www.reviewboard.org
> > VMware, Inc. -http://www.vmware.com
>
> > On Tue, Dec 13, 2011 at 7:03 PM, mmn...@gmail.com <mmn...@gmail.com> wrote:
> > > I might have hit on the issue. I think pip is expected to be the
> > > replacement for easy_install? I used pip to first remove ReviewBoard
> > > and then tried to reinstall in verbose mode. From this it looks like
> > > there is a timeout, but on easy_install even with verbose option
> > > nothing is getting printed as error. Other than this I cannot think of
> > > any reason why Django is not found.
>
> > > mmn@mmn-hp-workstation-xw4100://$ sudo pip -v install ReviewBoard
> > > Downloading/unpacking ReviewBoard
> > >  Running setup.py egg_info for package ReviewBoard
> > >    running egg_info
> > >    writing requirements to pip-egg-info/ReviewBoard.egg-info/
> > > requires.txt
> > >    writing pip-egg-info/ReviewBoard.egg-info/PKG-INFO
> > >    writing top-level names to pip-egg-info/ReviewBoard.egg-info/
> > > top_level.txt
> > >    writing dependency_links to pip-egg-info/ReviewBoard.egg-info/
> > > dependency_links.txt
> > >    writing entry points to pip-egg-info/ReviewBoard.egg-info/
> > > entry_points.txt
> > >    warning: manifest_maker: standard file '-c' not found
>
> > >    reading manifest file 'pip-egg-info/ReviewBoard.egg-info/
> > > SOURCES.txt'
> > >    reading manifest template 'MANIFEST.in'
> > >    warning: no files found matching '*' under directory 'locale'
> > >    no previously-included directories found matching 'docs/*/_build'
> > >    no previously-included directories found matching 'reviewboard/
> > > htdocs/media/uploaded/images'
> > >    writing manifest file 'pip-egg-info/ReviewBoard.egg-info/
> > > SOURCES.txt'
> > > Downloading/unpacking Django>=1.3.1 (from ReviewBoard)
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.1.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.1 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.7.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.7 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.5.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.5 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.6.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.6 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.4.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.4 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.tar.gz#md5...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.1.3.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1.3 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.3.tar.gz#md5...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.3 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.3.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.3 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.1.4.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1.4 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://pypi.python.org/packages/source/D/Django/Django-1.2.2.tar.gz#m...
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.2 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.1/Django-1.1.3.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1.3 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.4.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.4 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.1.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.1 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.3.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.3 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.1/Django-1.1.4.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1.4 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.5.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.5 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.0.1/Django-1.0.1-final.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.0.1-final
> > > doesn't match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.0.2/Django-1.0.2-final.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.0.2-final
> > > doesn't match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.1.1/Django-1.1.1.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1.1 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.2.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.2 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.0/Django-1.0.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.0 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.0.4/Django-1.0.4.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.0.4 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.1/Django-1.1.2.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1.2 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.0.3/Django-1.0.3.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.0.3 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.1/Django-1.1.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.1 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.7.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.7 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.2/Django-1.2.6.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.2.6 doesn't
> > > match >=1.3.1
> > >  Ignoring link
> > >http://media.djangoproject.com/releases/1.3/Django-1.3.tar.gz
> > > (fromhttp://pypi.python.org/simple/Django/), version 1.3 doesn't
> > > match >=1.3.1
> > >  Using version 1.3.1 (newest of versions: 1.3.1, 1.3.1)
> > >  Downloading Django-1.3.1.tar.gz (6.5Mb): 6.4Mb downloaded
> > > Exception:
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line
> > > 126, in main
> > >    self.run(options, args)
> > >  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py",
> > > line 223, in run
> > >    requirement_set.prepare_files(finder,
> > > force_root_egg_info=self.bundle, bundle=self.bundle)
> > >  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 955, in
> > > prepare_files
> > >    self.unpack_url(url, location, self.is_download)
> > >  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1072, in
> > > unpack_url
> > >    return unpack_http_url(link, location, self.download_cache,
> > > only_download)
> > >  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 441,
> > > in unpack_http_url
> > >    download_hash = _download_url(resp, link, temp_location)
> > >  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 366,
> > > in _download_url
> > >    chunk = resp.read(4096)
> > >  File "/usr/lib/python2.7/socket.py", line 380, in read
> > >    data = self._sock.recv(left)
> > >  File "/usr/lib/python2.7/httplib.py", line 561, in read
> > >    s = self.fp.read(amt)
> > >  File "/usr/lib/python2.7/socket.py", line 380, in read
> > >    data = self._sock.recv(left)
> > > timeout: timed out
>
> > > On Dec 13, 1:27 pm, "mmn...@gmail.com" <mmn...@gmail.com> wrote:
> > > > That is what I am also thinking. But I did as per the documentation
> > > > easy_install ReviewBoard
>
> > > > I tried again just to be sure, now it says
> > > > mmn@mmn-hp-workstation-xw4100:/$ sudo easy_install ReviewBoard
> > > > [sudo] password for mmn:
> > > > Searching for ReviewBoard
> > > > Best match: ReviewBoard 1.6.3
> > > > Processing ReviewBoard-1.6.3-py2.7.egg
> > > > ReviewBoard 1.6.3 is already the active version in easy-install.pth
> > > > Installing rb-site script to /usr/local/bin
> > > > Installing rbssh script to /usr/local/bin
>
> > > > Using /usr/local/lib/python2.7/dist-packages/ReviewBoard-1.6.3-
> > > > py2.7.egg
> > > > Processing dependencies for ReviewBoard
> > > > Searching for Django>=1.3.1
>
> ...
>
> read more »

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to