yup... statement 1;  april fool's on me (I didn't read the original
post accurately enough;  Thadeus was right)...

.... Not sure you have found anything interesting yet, though...

Tell us more about your environment - ... also, may be time to look at
the apache logs; restart the wsgi thread; ....


On Apr 1, 3:39 pm, Richie <[email protected]> wrote:
> @Thadeus
>
> Statement 1 it is. How do I check the version mod_wsgi is using?
>
> I really appreciate the help!
>
> On Apr 1, 9:22 pm, Thadeus Burgess <[email protected]> wrote:
>
> > We are confused.
>
> > 1) He said he gets the error when "I try to access default controller".
>
> > 2) He did not say "I try to access psycopg2 from my controller".
>
> > I take what he said to mean (statement 1) he cannot connect to
> > postgres with web2py. Perhaps he really ment statement 2, in which you
> > are correct.
>
> > -Thadeus
>
> > On Thu, Apr 1, 2010 at 2:16 PM, Yarko Tymciurak
>
> > <[email protected]> wrote:
> > > On Apr 1, 3:12 pm, Thadeus Burgess <[email protected]> wrote:
> > >> Make sure mod_wsgi is running the same version of python that you have
> > >> psycopg2 installed.
>
> > > that is not the point / problem here;
>
> > > anyway,  python web2py.py -S welcome, and an attempt to "import
> > > psycopg2" from that shell will show that you can import it fine from
> > > the web2py app level;   gluon.dal imports it, and your app doesn't get
> > > to see it for a reason.
>
> > >> -Thadeus
>
> > >> On Thu, Apr 1, 2010 at 1:48 PM, Richie <[email protected]> 
> > >> wrote:
> > >> > I can import psycopg2 from a python shell, but I'm getting "NameError:
> > >> > global name 'psycopg2' is not defined" when I try to access my default
> > >> > controller. I'm setup with Apache and MOD WSGI. Anyone got any ideas?
>
> > >> > Thanks!
>
> > >> > Rich
>
> > >> > --
> > >> > You received this message because you are subscribed to the Google 
> > >> > Groups "web2py-users" 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 
> > >> > athttp://groups.google.com/group/web2py?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "web2py-users" 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 
> > > athttp://groups.google.com/group/web2py?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en.

Reply via email to