Re: ZcxOracleDA configuration assistance

Dan Fairs <[email protected]> Mon, 17 Aug 2009 21:49:47 +0100
Newsgroups gmane.comp.web.zope.database
Message-ID <[email protected]>
> Ok, I think that was the prod I needed. I have the variables  
> exported from the profiles of both root and plone (under which Zope  
> should be running), but I apparently haven't set it in the right  
> spot yet. If I log in as plone, a manual import of cx_Oracle works  
> fine. However, if as root I "sudo -u plone /.../python" and try to  
> import, I get the same error returned by ZcxOracleDA. Haven't  
> figured out how to get around it yet, but it looks like this takes  
> it out of the realm of Zope and into basic system administration.


You'll probably need to provide additional arguments to sudo to tell  
it to run a login shell to pick up stuff in .profile and friends - I'm  
afraid I can't remember what they are off the top of my head. Check  
the man page for sudo.

Cheers,
Dan

--
Dan Fairs <[email protected]> | http://www.fezconsulting.com/