My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 06, 2009 by g...@geoff.kelsall.name
Labels: Featured, Phase-Deploy
InstallationBuildoutQuickstart  
How to install LFS on Linux or Unix

Disclaimer

This document is for Unix and Linux operating systems. For other operating systems please search for your OS in the current wiki pages. If there is not yet one for your OS we would love you to write one.

This product is pre-alpha and under heavy development and there will be essential changes in the next couple of weeks.

That said it would be great if you would install and test LFS. Any feedback is highly appreciated. Don't hesitate to contact us via our contact form if you run into troubles installing LFS.

Installation via buildout

Optionally, create a virtual python environment:

  1. $ virtualenv --no-site-packages lfs_python
  2. $ source lfs_python/bin/activate

The following steps will install a complete LFS with all bells and whistles:

  1. $ svn co http://django-lfs.googlecode.com/svn/buildouts/quickstart
  2. $ cd quickstart
  3. $ python bootstrap.py
  4. $ bin/buildout -v
  5. $ bin/django syncdb
  6. $ bin/django loaddata parts/svn_lfs/lfs/core/fixtures/lfs_initial.xml
  7. $ bin/django runserver
  8. open http://localhost:8000 within your browser
  9. open http://localhost:8000/manage within your browser

Optionally, run the unittests:

  1. $ bin/django test core


Comment by mahner.martin, May 18, 2009

Thank you very much for this script. I just want to say this because it worked and it so simple. :)

Comment by michael.martinides, Jun 24, 2009

mmh. I'm struggling. after django syncdb I get: Error: No module named uuid

Any hints?

Comment by kai.diefenbach, Jul 01, 2009

$ easy_install uuid

For Python < 2.5 (AFAIK)

Comment by stuart.mcneill17, Jul 13, 2009

I tried to install on Mac os 10.5.7 but got the following error;


error: Couldn't find a setup script in /Library/Python/2.5/site-packages/PIL An error occured when trying to install PIL 1.1.7b1.Look above this message for any errors thatwere output by easy_install. While:

Installing django. Getting distribution for 'PIL'.
Error: Couldn't install: PIL 1.1.7b1

LFS looks great though - can't wait to get it working! : )

Comment by meledictas, Aug 19, 2009

I can't make it on window, I do it manually but can't find the match paypal version. Below is error,

ImportError?: cannot import name ST_PP_COMPLETED

Comment by gregfull, Aug 22, 2009

I'm getting the same error as meledictas. There's a "from paypal.standard.models import ST_PP_COMPLETED" in listeners.py, but the variable is not in the model file.

Comment by kai.diefenbach, Aug 23, 2009

Hi guys,

there is "ST_PP_COMPLETED" within the models.py. See: http://github.com/mthornhill/django-paypal/blob?path%5B%5D=standard&path%5B%5D=models.py&raw=true

You might have an old version.

Comment by meledictas, Aug 24, 2009

I've post about installation at http://beautifulisbetterthanugly.com/posts/2009/aug/19/install-django-lfs-on-window/

Put comment if something is not work.

Thanks

Comment by bob.haugen, Oct 01, 2009

Following the above install script on Ubuntu 8.04.

src/module.c: In function ‘init_sqlite’: src/module.c:419: warning: implicit declaration of function ‘sqlite3_libversion’ src/module.c:419: warning: passing argument 1 of ‘PyString_FromString?’ makes pointer from integer without a cast error: Setup script exited with error: command 'gcc' failed with exit status 1 An error occured when trying to install pysqlite 2.5.5.Look above this message for any errors thatwere output by easy_install. While:

Installing sqlite.
Error: Couldn't install: pysqlite 2.5.5

Comment by bob.haugen, Oct 01, 2009

removed sqlite from buildout.cfg, installation script worked.

Comment by joffinvjoy, Oct 13, 2009

i hv django already installed...still its trying to install django and there i gets error like no matching distribution.................

Comment by miohtama, Nov 16, 2009

To run buildout you need to have SQLite development files available on your computer:

On Ubuntu/Debian

sudo apt-get install libsqlite3-dev

On Windows you probably need to comment out sqlite from the dependencies or try to put sqlite binary egg to buildout eggs.

Comment by miohtama, Nov 16, 2009

If you problem with missing PIL you need to do (while running virtualenv activated shell):

easy_install PIL

Also you need to have native JPEG decoder available on your system before installing PIL as it is needed when PIL compiles.

It should say:

TKINTER support not available --- JPEG support available --- ZLIB (PNG/ZIP) support available --- FREETYPE2 support available --- LITTLECMS support available

Comment by miohtama, Nov 16, 2009

For some reason Python 2.6 fails to import PIL as supplied by the buildout.

Finally a buildout.cfg I got PIL working:

buildout? parts =

PIL sqlite django svn_ext svn_lfs pagination paypal

eggs = PIL

develop-eggs =

develop-eggs/PIL-1.1.6-py2.6-linux-i686.egg

PIL? recipe = zc.recipe.egg:custom egg = PIL==1.1.6 find-links = http://dist.repoze.org/

#PIL? #recipe = zerokspot.recipe.distutils #urls = # http://effbot.org/downloads/Imaging-1.1.6.tar.gz

#PIL? # Build egg with Chris McDonough?'s custom packaging of setuptools-compatibile PIL # http://article.gmane.org/gmane.comp.web.zope.devel/13999 #recipe = zc.recipe.egg #egg = PIL==1.1.6 #find-links = http://dist.repoze.org/PIL-1.1.6.tar.gz

sqlite? recipe = zc.recipe.egg:custom egg = pysqlite find-links = http://dist.repoze.org/

svn_lfs? recipe = iw.recipe.subversion urls =

http://django-lfs.googlecode.com/svn/lfs/trunk lfs http://django-lfs.googlecode.com/svn/lfstheme/trunk lfstheme

svn_ext? recipe = iw.recipe.subversion urls =

http://django-contact-form.googlecode.com/svn/trunk/contact_form contact_form http://django-portlets.googlecode.com/svn/trunk/portlets portlets http://django-lfs.googlecode.com/svn/addons/reviews/trunk reviews http://django-tagging.googlecode.com/svn/trunk/tagging tagging

pagination? recipe = gocept.download url = http://django-pagination.googlecode.com/files/django-pagination-1.0.5.tar.gz md5sum = 7c5d5d017c83685065d864565089cc35

paypal? recipe=zerokspot.recipe.git repository=git://github.com/mthornhill/django-paypal.git rev=cc78e4b808a734fbe9043e35b297471a945d9ca2

django? recipe = djangorecipe version = 1.0.2 eggs =

PIL pysqlite
project = lfs_project settings=settings extra-paths =
${buildout:directory}/lfs_project ${pagination:location} ${svn_ext:location} ${svn_lfs:location} ${buildout:directory}/parts ${buildout:directory}/develop-eggs/PIL-1.1.6-py2.6-linux-i686.egg

urls = lfs_project/urls

Comment by curtis.ruck, Dec 06, 2009

It would be nice if LFS just used already existing libraries (i.e. PIL) instead of trying to compile them from scratch.

try:

import pil
except:
easy_install pil


Sign in to add a comment
Hosted by Google Code