I was able to circumnvent the problem by instead of doing try: import Zope2 except ImportError: I did: try: import transaction except ImportError: Which is best I don't know, because I don't understand all the issues.