Re: Installing ReviewBoard on latest Ubuntu
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
Re: Installing ReviewBoard on latest Ubuntu
Something's red flagging for me here. How did you install Review Board initially? You shouldn't be hitting any of these dependency errors. Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Dec 12, 2011 at 11:59 PM, mmn...@gmail.com mmn...@gmail.com wrote: Now I have everything else installed. Then the installation started complaining of django not found, though I had django 1.3.2. So I installed the django1.3.1 using the same mechanism you mentioned earlier, but still the complaint is the same. mmn@mmn-hp-workstation-xw4100:/$ rb-site install /var/www/ xmp.reviews.com Traceback (most recent call last): File /usr/local/bin/rb-site, line 5, in module from pkg_resources import load_entry_point File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2676, in module parse_requirements(__requires__), Environment() File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 552, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: Django=1.3.1 mmn@mmn-hp-workstation-xw4100:/tmp/djblets$ sudo easy_install django==1.3.1 Searching for django==1.3.1 Reading http://pypi.python.org/simple/django/ Reading http://www.djangoproject.com/ Best match: Django 1.3.1 Downloading http://pypi.python.org/packages/source/D/Django/Django-1.3.1.tar.gz#md5=62d8642fd06b9a0bf8544178f8500767 error: None On Dec 13, 11:39 am, mmn...@gmail.com mmn...@gmail.com wrote: Thanks. That fixed it. There are other packages missing, I am getting them installed as we speak. Looks like the native python installation on Ubuntu comes with vanilla flavour. Regards, On Dec 13, 11:03 am, Christian Hammond chip...@chipx86.com wrote: Try: sudo easy_install python-dateutil==1.5 Christian -- Christian Hammond - chip...@chipx86.com Review Board -http://www.reviewboard.org VMware, Inc. -http://www.vmware.com On Mon, Dec 12, 2011 at 9:00 PM, mmn...@gmail.com mmn...@gmail.com wrote: Hello, I have installed ReviewBoard and all supporting packages (except pylucene) on latest Ubuntu 11.10. However when I try to create a site I am getting mmn@mmn-hp-workstation-xw4100:~$ rb-site install /var/www/ xmp.reviews.com Traceback (most recent call last): File /usr/local/bin/rb-site, line 5, in module from pkg_resources import load_entry_point File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2676, in module parse_requirements(__requires__), Environment() File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 552, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: python-dateutil==1.5 mmn@mmn-hp-workstation-xw4100:~$ sudo apt-get install python-dateutil Reading package lists... Done Building dependency tree Reading state information... Done python-dateutil is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 259 not upgraded Can you please help me out? Looks like my python-dateutil is higher than 1.5 version as it is the latest Ubuntu Regards, -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know athttp://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 -- 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 -- 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
Re: Installing ReviewBoard on latest Ubuntu
Yes. So pip and easy_install should fetch the same results I think. This is showing a timeout when installing Django 1.3.1 using pip in verbose mode. I think because of this Django is not getting installed at all. I am using Ubuntu 11.10. I can try manually downloading and installing Django from source and see as well. Regards, 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
Installing ReviewBoard on latest Ubuntu
Hello, I have installed ReviewBoard and all supporting packages (except pylucene) on latest Ubuntu 11.10. However when I try to create a site I am getting mmn@mmn-hp-workstation-xw4100:~$ rb-site install /var/www/ xmp.reviews.com Traceback (most recent call last): File /usr/local/bin/rb-site, line 5, in module from pkg_resources import load_entry_point File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2676, in module parse_requirements(__requires__), Environment() File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 552, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: python-dateutil==1.5 mmn@mmn-hp-workstation-xw4100:~$ sudo apt-get install python-dateutil Reading package lists... Done Building dependency tree Reading state information... Done python-dateutil is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 259 not upgraded Can you please help me out? Looks like my python-dateutil is higher than 1.5 version as it is the latest Ubuntu Regards, -- 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
Re: Installing ReviewBoard on latest Ubuntu
Try: sudo easy_install python-dateutil==1.5 Christian -- Christian Hammond - chip...@chipx86.com Review Board - http://www.reviewboard.org VMware, Inc. - http://www.vmware.com On Mon, Dec 12, 2011 at 9:00 PM, mmn...@gmail.com mmn...@gmail.com wrote: Hello, I have installed ReviewBoard and all supporting packages (except pylucene) on latest Ubuntu 11.10. However when I try to create a site I am getting mmn@mmn-hp-workstation-xw4100:~$ rb-site install /var/www/ xmp.reviews.com Traceback (most recent call last): File /usr/local/bin/rb-site, line 5, in module from pkg_resources import load_entry_point File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 2676, in module parse_requirements(__requires__), Environment() File /usr/lib/python2.7/dist-packages/pkg_resources.py, line 552, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: python-dateutil==1.5 mmn@mmn-hp-workstation-xw4100:~$ sudo apt-get install python-dateutil Reading package lists... Done Building dependency tree Reading state information... Done python-dateutil is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 259 not upgraded Can you please help me out? Looks like my python-dateutil is higher than 1.5 version as it is the latest Ubuntu Regards, -- 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 -- 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