I have a python script which will assist in deploying a pyramid project 
with some opinionated defaults. This method:

https://github.com/mazzaroth/initpyr/blob/master/initpyr.py#L113

installs with no issue but if I change the calls from easy_install to 
pip(via requirements text files):

def perform_installs():
    global abs_env_dir
    global options

*    os.system("bin/pip install -r " + os.path.join(base_dir, 
"requirements01.txt"))*

    # Install pyramid_alembic_mako
    subprocess.call(["git", "clone", 
"https://github.com/inklesspen/pyramid_alembic_mako.git";])
    os.chdir(os.path.abspath(os.path.join(abs_env_dir, 
"pyramid_alembic_mako")))
    os.system("../bin/pip install .")

    os.chdir(abs_env_dir)
    subprocess.call(["bin/pcreate", "-s", "alembic_mako", 
options.project_name])

*    os.system("bin/pip install -r " + os.path.join(base_dir, 
"requirements02.txt"))*


requirements01.txt: http://pastebin.com/uqkek8sY
requirements02.txt: http://pastebin.com/AmDk75ga

(I'm splitting the install phases into two files because in between I think 
I need to call pcreate)

when the app is initiated via `../bin/gunicorn --paster production.ini 
--bind unix:app.sock --workers 4`

there is an import error with ampq:

  File 
"/Users/hannam/src/git/initpyr/foo_env/lib/python2.7/site-packages/kombu/exceptions.py",
 
line 12, in <module>
    from amqp import ChannelError, ConnectionError, ResourceError
ImportError: cannot import name ResourceError

full stacktrace here: http://pastebin.com/pGyJsK7w

Any suggestions? I'm not sure what the cause is of the ImportError..

Michael

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to