Hi folks, I compiled a list of problems and fixes for following the tg2
install instructions. I did an install into an empty virtual env, maybe
we could add ve instructions too. 

I'm hoping someone can look over this and then I can help update the
install instructions if these get the stamp of approval. Or you might
now how to fix the issues!

thanks
Iain



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Notes on setting up TG2 in a virtual env:

- install virtualenv if not present
$ easy_install virtualenv

- make a virtualenv for tg2
$ virtualenv TG2
$ cd TG2
$ source bin/activate

- make a local python egg cache for the virtual env
( without doing this, my local python egg cache got used and caused problems )
mkdir .python-eggs
export PYTHON_EGG_CACHE=./.python-eggs
( the above should probably be added properly into bin/activate )

- install Pylons 0.9.7 
$ easy_install -f http://pylonshq.com/download/0.9.7 -U Pylons
- install Paver
$ easy_install Paver

- get source for tgdev, tg2, tg.ext.repoze.who
$ svn co http://svn.turbogears.org/projects/tg.devtools/trunk tgdev
$ svn co http://svn.turbogears.org/trunk tg2
$ svn co https://tgtools.googlecode.com/svn/projects/tg.ext.repoze.who/trunk 
tg.ext.repoze.who
 - ERROR: username and password required
 - FIX: use http instead of https 
  $ svn co http://tgtools.googlecode.com/svn/projects/tg.ext.repoze.who/trunk 
tg.ext.repoze.who

build tg.repoze.who:
$ cd tgrepozewho
  - ERROR, wrong file name, should be tg.repoze.who
  - FIX: cd tg.repoze.who
$ python setup.py develop
  - ERROR: 
    Searching for zope.interface==3.4dev-r73809
    Reading http://pypi.python.org/simple/zope.interface/
    Reading http://zope.org/Wikis/Interfaces/FrontPage
    No local packages or download links found for zope.interface==3.4dev-r73809
    error: Could not find suitable distribution for 
Requirement.parse('zope.interface==3.4dev-r73809')
  - FIX - install zope.interface first
    $ easy_install zope.interface 
  - ERROR - no Paste==1.7.2dev-r7430
    Reading http://pythonpaste.org
    No local packages or download links found for Paste==1.7.2dev-r7430
    error: Could not find suitable distribution for 
Requirement.parse('Paste==1.7.2dev-r7430')
  - FIX: - install dev of Paste first
    $ easy_install Paste==dev
( repoze builds ok )

build tg2
$ cd ../tg2
$ python setup.py develop
  - ERROR: no PasteScript==1.6.4dev-r7434
  - FIX: install PasteScript==dev
    $ easy_install PasteScript==dev
( TG2 builds ok )  

build tgdev
$ cd ../tgdev
$ python setup.py develop
( builds ok )

validate install
$ paster --help
( yup, TurboGears2 is listed )

quickstart an app
$ paster quickstart testapp
$ cd testapp
$ paster server --reload development.ini

look at localhost:8080
( Tada! )

Reply via email to