Re: library import issue.

2008-06-17 Thread Karen Tracey
On Tue, Jun 17, 2008 at 3:48 AM, James Matthews <[EMAIL PROTECTED]> wrote: > The server is running suExec therefore Apache executes as the user. So it > should be able to read my library. > SuEXEC cleans the environment before calling your code. According to Step 19 described here: http://httpd

Re: library import issue.

2008-06-17 Thread James Matthews
The server is running suExec therefore Apache executes as the user. So it should be able to read my library. James On Mon, Jun 16, 2008 at 5:08 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 9:19 AM, James Matthews <[EMAIL PROTECTED]> > wrote: > >> Karen >> >> The library

Re: library import issue.

2008-06-16 Thread Karen Tracey
On Mon, Jun 16, 2008 at 9:19 AM, James Matthews <[EMAIL PROTECTED]> wrote: > Karen > > The library path is in both LD_LIBRARY_PATH and the PYTHONPATH You mean you've specified it in the appropriate config file? Based on the results, though, it doesn't seem to be working. What, exactly, did you

Re: library import issue.

2008-06-16 Thread James Matthews
Karen The library path is in both LD_LIBRARY_PATH and the PYTHONPATH On Mon, Jun 16, 2008 at 3:09 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 8:48 AM, James Matthews <[EMAIL PROTECTED]> > wrote: > >> Sorry, >> >> I am running Django in a shared hosting environment, Apac

Re: library import issue.

2008-06-16 Thread Karen Tracey
On Mon, Jun 16, 2008 at 8:48 AM, James Matthews <[EMAIL PROTECTED]> wrote: > Sorry, > > I am running Django in a shared hosting environment, Apache, Fcgi > Then you need to make sure that whatever modifications you had to make in your user shell environment to get the import to work are also in e

Re: library import issue.

2008-06-16 Thread James Matthews
Sorry, I am running Django in a shared hosting environment, Apache, Fcgi James On Mon, Jun 16, 2008 at 2:43 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On Mon, Jun 16, 2008 at 6:07 AM, James Matthews <[EMAIL PROTECTED]> > wrote: > >> Hi, >> >> I am trying to import a library that is in a non-

Re: library import issue.

2008-06-16 Thread Karen Tracey
On Mon, Jun 16, 2008 at 6:07 AM, James Matthews <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to import a library that is in a non-standard location > ~/opt/lib (I am in a shared environment) and i added it to my > "LD_LIBRARY_PATH" however Django tells me it cannot find it and me a 500 > error

Re: library import issue.

2008-06-16 Thread James Matthews
Thank You very much Peter. However this is the output of what you told me to do. And i don't get an import error when i try to import Hdate under the django shell Python 2.5.2 (r252:60911, Mar 30 2008, 02:18:56) [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 Type "help", "copyright", "credits" or "lice

Re: library import issue.

2008-06-16 Thread Peter Bengtsson
On Jun 16, 11:07 am, "James Matthews" <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to import a library that is in a non-standard location ~/opt/lib > (I am in a shared environment) and i added it to my "LD_LIBRARY_PATH" > however Django tells me it cannot find it and me a 500 error. > > In p

library import issue.

2008-06-16 Thread James Matthews
Hi, I am trying to import a library that is in a non-standard location ~/opt/lib (I am in a shared environment) and i added it to my "LD_LIBRARY_PATH" however Django tells me it cannot find it and me a 500 error. In python i can import the library but not in Django. I compiled this library using