Hello,

I'm having some misunderstands about how virtualenv, mod_wsgi, pylons,
and eggs are supposed to work. Basically: Pylons' loadapp doesn't seem
to be able to find my project (paster create -t pylons helloworld)
when trying to load under mod_wsgi. I get a DistributionNotFound
exception inside of pkg_resources.py (setuptools). However this does
not happen in these two cases:

- I create an Egg (python setup.py bdist_egg) and either add it to the
site-packages (of the virtualenv) or add the helloworld/dist/ path to
the site-packages of the mod_wsgi bootstrap script.

.. OR ..

- I create a "helloworld.pth" in the site-packages (of the virtualenv)
and point it to the path of my Pylons project (helloworld/).

The latter is the more preferable but not ideal because I have to
modify the site-packages directory. The former is almost non-workable
because I'd like to work with the actual code and not an Egg for
development & testing, etc. It would be just fine for production
deployment however.

Is this how it is "supposed" to work? Is a Pylons app able to to run
without being an Egg and not under paster serve? It appears like the
[app:main] requires an Egg (by way of user = egg:helloworld) and a
fresh Pylons app (paster create) isn't an egg?

It feels like I'm missing something or not understanding something and
hoping you can help me figure it out. ;)

Thanks,
- Jesse

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to