On Thu, Oct 9, 2008 at 11:35 AM, yupu <[EMAIL PROTECTED]> wrote: > > Hi, I figured out the problem: > > I have the egg file of my previous Turbogear project under /usr/ > myusername(not under the new TG2 virtualenv) > > I think the user path is on the searching path of the virtualenv so > when i try paster --help. somehow TG2 picked up on egg file and ask me > to install it. > I deleted that file and that solved the problem. > that is what the --no-site-packages flag for venv is, by default it tries to use the std python site-packages, basically just to not have a zillion versions of everything, if you add the --no-site-packages flag it will never check outside the venv.
As a personal note I don't use the above flag. I just made a rule, I never install anything in the site-packages, the only things there are setuptools and virtualenv, anything else I install system wide is with the package manager, and I always run everything in venv, it eats a lot of disk space but keep everything independent, just like a dev environment should be, and since I use the same method for deployment I have no issues. > On Oct 9, 9:27 am, psiklotron <[EMAIL PROTECTED]> wrote: >> what chris said. When I had this problem, it was caused by >> 1.) Not installing the virtualenv like the tutorial said >> 2.) Not starting the virtualenvironment before running the paster >> commands. (You start the virtualenv by typing "source bin/activate" in >> the tg2env directory) >> >> On Oct 9, 7:08 am, Christopher Arndt <[EMAIL PROTECTED]> wrote: >> >> > yupu wrote: >> > > Jorge: >> >> > > Hi, thanks for the response to both questiones. But i am still >> > > confused: >> >> > > 1-- My WebReport is the project from TG1.03. >> > > 2-- I installed TG2 through virutalen. >> >> > > I would expect and want TG2 behave like a brand new installation. I >> > > still want to keep my WebReport under TG1.03 >> >> > Did you create a *new* virtual environment for TG2 (i.e. in a new >> > directory)? >> >> > Did you create the virtual env with the "--no-site-packages" option? >> >> > Chris > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

