seems that you have a very old installation of psycopg2 ..... upgrade that and you should be fine (pip install --upgrade psycopg2)
according to docs, server_version was added on psycopg2 2.0.12, and if I'm not mistaken .... that should be well before 2 years ago. On Wednesday, April 24, 2013 4:49:59 AM UTC+2, Auden RovelleQuartz wrote: > > Hello my application was working fine > > I upgraded to latest web2py version and get the following error: > > > Traceback (most recent call last): > File "gluon/restricted.py", line 212, in restricted > exec ccode in environment > File "/home/www-data/web2py/applications/omniavx/models/db.py" > <https://omniavx.com/admin/default/edit/omniavx/models/db.py>, line 4, in > <module> > db = DAL("postgres://web2py:[email protected]/db1") > File "gluon/dal.py", line 7368, in __init__ > raise RuntimeError("Failure to connect, tried %d times:\n%s" % (attempts, > tb)) > RuntimeError: Failure to connect, tried 5 times: > Traceback (most recent call last): > File "gluon/dal.py", line 7348, in __init__ > self._adapter = ADAPTERS[self._dbname](**kwargs) > File "gluon/dal.py", line 2634, in __init__ > if do_connect: self.reconnect() > File "gluon/dal.py", line 616, in reconnect > self.after_connection_hook() > File "gluon/dal.py", line 572, in after_connection_hook > self.after_connection() > File "gluon/dal.py", line 2639, in after_connection > self.try_json() > File "gluon/dal.py", line 2652, in try_json > supports_json = self.connection.server_version >= 90200 > AttributeError: 'psycopg2._psycopg.connection' object has no attribute > 'server_version' > > > Does anyone have an idea what the issue could be? Thanks in advance! > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

