|
InstallationBuildoutQuickstart
How to install LFS on Linux or Unix
DisclaimerThis 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 buildoutOptionally, create a virtual python environment:
The following steps will install a complete LFS with all bells and whistles:
Optionally, run the unittests:
|
Sign in to add a comment
Thank you very much for this script. I just want to say this because it worked and it so simple. :)
mmh. I'm struggling. after django syncdb I get: Error: No module named uuid
Any hints?
$ easy_install uuid
For Python < 2.5 (AFAIK)
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:
Error: Couldn't install: PIL 1.1.7b1LFS looks great though - can't wait to get it working! : )
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
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.
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.
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
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:
Error: Couldn't install: pysqlite 2.5.5removed sqlite from buildout.cfg, installation script worked.
i hv django already installed...still its trying to install django and there i gets error like no matching distribution.................
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.
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
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 =
eggs = PIL
develop-eggs =
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 =
svn_ext? recipe = iw.recipe.subversion urls =
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 =
project = lfs_project settings=settings extra-paths =urls = lfs_project/urls
It would be nice if LFS just used already existing libraries (i.e. PIL) instead of trying to compile them from scratch.
try:
except: