On Fri, May 29, 2009 at 10:29 PM, Adam Yee<[email protected]> wrote: > > On May 29, 7:15 pm, "Uwe C. Schroeder" <[email protected]> wrote: >> Not sure, but I venture a guess anyways. >> Did you actually install a python 2.4 or 2.5 version in addition to the >> default 2.6? >> Just installing the 2.5 version of setuptools won't help unless you also have >> a 2.5 python installed (yes, you can install several versions of python). >> > > Yes. > > (tg1.1env)a...@adam-laptop:~/tg1.1env$ python2.5 > Python 2.5.4 (r254:67916, Apr 4 2009, 17:55:16) > [GCC 4.3.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> exit() > > >> Personally I'd install python 2.5 along with virtualenv. I think Ubuntu has >> backwards compatible python2.5 packages (try something like apt-get install >> python2.5 and apt-get install python2.5-dev) which don't mess up your general >> python setup (python then is not python, but python2.5 - the tab-key is your >> friend there) >> Then create a virtual environment (I create different system users for that >> and install the virtual env in their home directory, aka >> virtualenv --python=/usr/bin/python2.5 --no-site-packages /home/my_2.5_user). >> Then a simple su - my_python_2.5_user will get you an isolated py2.5 setup >> (if you add "source bin/activate" to the user's .bashrc). >> > > a...@adam-laptop:~/tg1.1env$ source bin/activate > (tg1.1env)a...@adam-laptop:~/tg1.1env$ > >> From there - logged on as the py2.5 user - you can run easy_install and >> everything else without polluting your system environment. If you don't like >> the outcome anymore, just remove the user with the home directory and nothing >> will have happened to your system. >> >> You definitely don't want to mess with the 2.6 installation, because Ubuntu >> heavily relies on the default python for all the config and setup tools. >> >> Uwe >> > > I used tgsetup.py to install my 1.0.8 version, then used > easy_install-2.5 -U TurboGears for 1.1b3. However, I thought I > installed everything inside the virtualenv, but it was installed in / > usr/lib/python2.5/site-packages/. Probably due to the tgsetup.py > > I'm not so sure that what we're talking about affects my ability to > import from peak.rules. Unless, you're suggesting I reinstall TG > using easy_install-2.5 inside my virtualenv, maybe that is why? Got > any more guesses why I'm unable to import from peak.rules? > This is definitely an issue of an installer going south. Please try the atomic inside the venv install without tgsetup, and be sure to say --no-site-packages to keep it 100% isolated.
> Thanks Uwe and Friends > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

