No driver of supported ones ('psycopg2',) is available

79 views
Skip to first unread message

Annet

unread,
Jan 20, 2020, 12:53:48 PM1/20/20
to web2py-users
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

Lovedie JC

unread,
Jan 20, 2020, 1:15:29 PM1/20/20
to web...@googlegroups.com
I had to copy it, the folder to Web2py modules folder for it to work. You can also copy to Web2py site packages folder.
Regards 

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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 web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/cd4dd9e1-c31e-4f7f-818c-230a838d16dc%40googlegroups.com.

Dave S

unread,
Jan 21, 2020, 3:51:07 AM1/21/20
to web2py-users


On Monday, January 20, 2020 at 10:15:29 AM UTC-8, Lovedie JC wrote:
I had to copy it, the folder to Web2py modules folder for it to work. You can also copy to Web2py site packages folder.
Regards 

On Mon, Jan 20, 2020, 20:53 'Annet' via web2py-users <web...@googlegroups.com> wrote:
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:
[...]
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?



For what it's worth, that is where web2py expects it on my AWS system; my issue was using the proper version of pip to install it.  Full descriptions of my fun in the archives.  (I'm still on 2.15.4, while I keep saying "2.18.x any day now")

/dps

 
Reply all
Reply to author
Forward
0 new messages