Console sys.version gives 2.5.2 (r252:60911, Jan 20 2010, 23:14:04)
\n[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3) : identical!

What do you need to know about environment? It's a VPS running Ubuntu
8.04.1 64 bit Minimal, I tried easy_install psycopg2 but had issues,
then did apt-get python-psycopg2. Got Apache connecting with WSGI,
life is good...

I feel like a fool asking this but... how do I restart the wsgi
thread? I've been /etc/init.d/apache2 restart, but I'm guessing that
doesn't touch the wsgi thread, right?

Rich


On Apr 1, 9:59 pm, Yarko Tymciurak <[email protected]>
wrote:
> 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