"python web2py.py -S welcome" gives "Database drivers available: SQLite3, PostgreSQL" and "import psycopg2" is successful.
Tried using DAL and just got the same error : "NameError: global name 'psycopg2' is not defined" I feel like such a noob :( On Apr 1, 9:16 pm, Yarko Tymciurak <resultsinsoftw...@gmail.com> wrote: > On Apr 1, 3:12 pm, Thadeus Burgess <thade...@thadeusb.com> 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 <richie.d...@googlemail.com> 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 web...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > web2py+unsubscr...@googlegroups.com. > > > 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 web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.