I have a pyramid application and it has this line
from zope.sqlalchemy import ZopeTransactionExtension
It works without any issues
But if I try the same with command line I get
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlalchemy
and
from zope.sqlalchemy.datamanager import ZopeTransactionExtension
ImportError: No module named sqlalchemy.datamanager
I am not really sure why this is so. The docs have the same line and it seems to work for them at least
This sounds like an issue with mixing pip and easy_install (which setup.py develop
uses). They do not cooperate well together when it comes to namespaced packages like zope.*
. I suggest recreating your virtualenv.