On Aug 4, 4:23 am, killer chicken <[email protected]> wrote: > > Well, then maybe a purge & reinstall of Python is the first step. > > Thanks, I suspect that it is the only way but I wonder if there is > another way to get things working whithout uninstall python and all > the installed packages > > > Then make sure when going to install TG2, use virtualenv and *activate* a > > virtualenv before installing TG2, as it is documented.
I too found the doco at http://www.turbogears.org/2.0/docs/main/DownloadInstall.html#activate-virtualenv to be a little confusing as it seems to recommend using --no-site- packages whereas, in my case at least, it is as Diez sez, not really the right way. I find a clean install gives peace of mind. I've just done a reinstall of TG2.0 (without uninstalling Python) and it goes a little something like this(on XP) Environment Variables: PATH C:\Python25;C:\Python25\Scripts;c:\urTGenv\Scripts; #I add this last on the path so I can go c:\>activate PYTHONPATH C:\Python25;C:\Python25\Scripts;C:\Python25\Lib\site-packages;C: \urTGenv;C:\urTGenv\Lib\site-packages; Run setups as follows: ====================== python-2.5.4.msi egenix-mx-base-3.1.1.win32-py2.5.msi setuptools-0.6c9.win32-py2.5.exe psyco-1.6.win32-py25.exe pywin32-214.win32-py2.5 #this PyWin Extensions seems reqd. for me ========================================= That gives you a basic Python setup with the tools reqd. to give you roughly equivalent to Linux Python "dev" pkg. Then from here the rest can be done with easy_install in your TG2 venv. Then all the TG2 stuff gets installed in C:\urTGenv\Lib\site-packages which is I presume the whole point of using virtualenv to keep TG2 things separate. It can be blown away and rapidly re-created. easy_install virtualenv C:\>virtualenv urTGenv (urTGenv) C:\urTGenv>easy_install -U tg.devtools #-U to force update ... #some time later... Finished processing dependencies for tg.devtools (urTGenv) C:\urTGenv>python setup.py develop #setup.py from quickstart ... #more installs eg. sqlalchemy etc. (urTGenv) C:\urTGenv>paster setup-app dev.ini #I renamed develmopment.ini to dev.ini ... # SQL table creation(existing .db must not be there) Successfully setup (urTGenv) C:\urTGenv>paster serve --reload dev.ini Voila! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en -~----------~----~----~----~------~----~------~--~---

