On Oct 14, 2011, at 11:07 PM, Chris McDonough wrote:

> On Fri, 2011-10-14 at 21:33 -0400, Mark Erbaugh wrote:
>> This is with Pyramid 1.2b3
>> 
>> created a new Pyramid application using the pyramid_routesalchemy template 
>> and did a python setup.py develop. The skeleton application runs fine under 
>> paster serve.  If I try to execute the models.py file (python models.py), I 
>> get an InmportError: No module named sqlalchemy on the line from 
>> zope.sqlalchemy import ZopeTransactionExtension.
>> 
>> I ran pip freeze and SQLALchemy 0.7.2 and zope.sqlalchemy 0.6.1 are 
>> installed in the virtuaenv.
>> 
>> I went to another virtualenv that has pyramid 1.1a4 and have no problem 
>> importing.
> 
> Don't use both pip and easy_install to install packages into the
> virtualenv.  Use one or the other, and it should work ok.


Chris,

Thanks for the reply.

I'm assuming the mention of easy_install refers to my use of python setup.py 
develop, because I'm not calling easy_install directly AFAIK.

So here's what I tried:

Create and activate a new virtualenv with --no-site-packages
easy_install pyramid
paster create -t pyramid_routesalchemy test_dir
cd test_dir
python setup.py develop

If I do paster serve development.ini and try to visit the site, I get an 
'Internal Server Error'. The error appears to be in 
pyramid_debugtoolbar/toolbar.py in processing cookies.  I get the same error in 
Safari (I'm on a Mac), SeaMonkey and Firefox. I tried clearing the browser 
caches, cookies, etc.

paster serve production.ini works (of course it doesn't use the debug toolbar)

The good news is that python models.py doesn't get an error.

How would I replace the python setup.py develop line with pip?

Mark

-- 
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