On Oct 10, 12:45 pm, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: > 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?
Since this post is the top hit on Google for """pkg_resources.DistributionNotFound: : Not Found for: (did you run python setup.py develop?)""", I thought should add the experience I just had using `virtualenv` and `paster create`. FYI, I use Jorge's setup of just installing setuptools and virtualenv site-wide. So, I created a new virtualenv, activated it and tried running `paster create -t pylons`. I kept getting the above error for a package I had created and later renamed a couple weeks ago. I was stumped because that package certainly wasn't in my new env, and it wasn't in my site- wide env (/usr/lib/python2.5). After poking for a while, I found an egg-info directory for the old package in my home dir. I must have moved it there as a backup for some reason that I now can't remember. Anyway, paster was seeing that egg-info dir and taking a crap. I rm'd the dir and now everything's all good. I'm now curious where all paster looks for eggs--I wouldn't have thought it would look in my home dir. -wlb --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

