Last week I upgraded my development environment from Mac OS X Mavericks - Python 2.7 - Web2py 2.14.5 to
Mac OS X Catalina - Python 2.7 - Web2py 2.18.5, since then I have the following issue:
<type 'exceptions.RuntimeError'> Failure to connect, tried 5 times:
Traceback (most recent call last):
File "/web2py/gluon/packages/dal/pydal/base.py", line 457, in __init__
self._adapter = adapter(**kwargs)
File "/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 27, in __call__
return AdapterMeta.__call__(cls, *args, **kwargs)
File "/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 39, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
File "/web2py/gluon/packages/dal/pydal/adapters/postgres.py", line 54, in __init__
driver_args, adapter_args, do_connect, after_connection)
File "/web2py/gluon/packages/dal/pydal/adapters/base.py", line 369, in __init__
super(SQLAdapter, self).__init__(*args, **kwargs)
File "/web2py/gluon/packages/dal/pydal/adapters/base.py", line 50, in __init__
self.find_driver()
File "/web2py/gluon/packages/dal/pydal/adapters/base.py", line 101, in find_driver
str(self.drivers))
RuntimeError: No driver of supported ones ('psycopg2',) is available
I have psycopg2 installed in the python directory /Library/Python/2.7/site-packages/ that is not where web2py expects it to be, is there a way to solve this issue?
Kind regards,
Annet