On Jun 29, 12:40 pm, haftish21 <haftis...@gmail.com> wrote: > Any one who successfully managed to get connected to postgres db?
On XP, yes > I already installed psycopg2, postgres, web2py and python 2.6 on my > windows vista os, but still can't get linked to postgres. Did I miss > sth? What I get is this: > Traceback (most recent call last): > File "<input>", line 1, in <module> > File "gluon/sql.py", line 752, in __init__ > File "gluon/sql.py", line 631, in _pool_connection > File "gluon/sql.py", line 752, in <lambda> > NameError: global name 'psycopg2' is not defined I'm guessing that psycopg isn't installed into the correct version of Python. Which version of Web2Py are you using? If installing psycopg2 into Python 2.6, then you'll need to run the src version, not the win version. F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@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 -~----------~----~----~----~------~----~------~--~---