
I'm trying to use buildout to pull in 4 github repositories and combine their wsgi applications together using paste's urlmap. A few things aren't working the way I expect and so I'm looking for some more information: This is my buildout.cfg: https://github.com/sontek/notaliens.com/blob/master/buildout.cfg 1. I had to declare a [pyramid] section that pulls in Pyramid with the zc.recipe.egg recipe so that it would drop the entry_point scripts in the generated bin/ folder. Is there a way for it to do this from dependencies declared in my install_requires in setup.py rather than being declared in the buildout? 2. The 2nd problem is after I run buildout, I'm not able to import paste.deploy: I see the egg in my sys.path: bin/py
import sys sys.path <cut> '/home/sontek/code/test_notaliens/ notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg',
but if I try to import from it:
from paste.deploy import loadserver Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: No module named deploy
PasteDeploy is defined as a dependency and gets pulled in properly but for some reason the interpreter isn't seeing it. any ideas?

On Sun, Mar 31, 2013 at 12:32 AM, John Anderson <sontek@gmail.com> wrote:
I'm trying to use buildout to pull in 4 github repositories and combine their wsgi applications together using paste's urlmap. A few things aren't working the way I expect and so I'm looking for some more information: This is my buildout.cfg: https://github.com/sontek/notaliens.com/blob/master/buildout.cfg There are issues with your buildout (git urls, colander, etc) and it does not work as-is and errors out. This is probably why you could not get to import paste. This works and has no issue https://gist.github.com/pombredanne/5281269
-- Philippe Ombredanne +1 650 799 0949 | pombredanne@nexB.com DejaCode Enterprise at http://www.dejacode.com nexB Inc. at http://www.nexb.com

On 2013-03-30 23:32:28 +0000, John Anderson said:
I'm trying to use buildout to pull in 4 github repositories and combine their wsgi applications together using paste's urlmap. A few things aren't working the way I expect and so I'm looking for some more information:
This is my buildout.cfg:
https://github.com/sontek/notaliens.com/blob/master/buildout.cfg
1. I had to declare a [pyramid] section that pulls in Pyramid with the zc.recipe.egg recipe so that it would drop the entry_point scripts in the generated bin/ folder. Is there a way for it to do this from dependencies declared in my install_requires in setup.py rather than being declared in the buildout?
AFAIK, and assuming I understand your question, no. The recipes (or extensions) do all the work.
2. The 2nd problem is after I run buildout, I'm not able to import paste.deploy:
I see the egg in my sys.path:
bin/py
import sys sys.path <cut>
'/home/sontek/code/test_notaliens/notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg',
but if I try to import from it:
from paste.deploy import loadserver Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: No module named deploy
PasteDeploy is defined as a dependency and gets pulled in properly but for some reason the interpreter isn't seeing it.
any ideas?
Remove .installed.cfg and try again, works for me with this buildout: https://gist.github.com/aclark4life/5281288
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Alex Clark · http://about.me/alex.clark

Got this when running your buildout so I can't test the generated interpreter:- Error: There is a version conflict. We already have: colander 0.9.9 but notaliens-web 0.0 requires 'colander>0.9.9'. notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg', Does it a typo or really correct path ? Assuming you run the buildout at the root of your project dir, then it should be relative to eggs/PasteDeploy-1.5.0-py2.7.egg', no ?

Kamal Bin Mustafa <kamal.mustafa@gmail.com> writes:
Got this when running your buildout so I can't test the generated interpreter:-
Error: There is a version conflict. We already have: colander 0.9.9 but notaliens-web 0.0 requires 'colander>0.9.9'.
notaliens.com/eggs/PasteDeploy-1.5.0-py2.7.egg',
Does it a typo or really correct path ? Assuming you run the buildout at the root of your project dir, then it should be relative to eggs/PasteDeploy-1.5.0-py2.7.egg', no ?
In my experience, this error is usually a conflict with a distribution installed in the system/base python installation. Try using a virtualenv: $ virtualenv . $ bin/python bootstrap.py $ bin/buildout HTH, Ross
participants (5)
-
Alex Clark
-
John Anderson
-
Kamal Bin Mustafa
-
Philippe Ombredanne
-
Ross Patterson