I'm trying to deploy on heroku, but am having troubles connecting to their
database.
Imported gluon.contrib.heroku.py but get_db() doesn't seem to be working
well with the adapters
Any ideas where to look would be appreciated.
<class 'RuntimeError'> Failure to connect, tried 5 times: Traceback (most
recent call last): File "/app/gluon/packages/dal/pydal/base.py", line 455,
in __init__ self._adapter = adapter(**kwargs) File
"/app/gluon/packages/dal/pydal/adapters/postgres.py", line 13, in __call__
return AdapterMeta.__call__(cls, *args, **kwargs) File
"/app/gluon/packages/dal/pydal/adapters/__init__.py", line 40, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs) TypeError:
__init__() got an unexpected keyword argument 'uri'
Version
web2py™ Version 2.17.1-stable+timestamp.2018.08.06.01.02.56
Traceback
Traceback (most recent call last):
File "/app/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/app/applications/iCafe/models/db.py", line 39, in <module>
db = get_db(name="DATABASE_URL", pool_size=10)
File "/app/gluon/contrib/heroku.py", line 24, in get_db
db = DAL(os.environ[name], pool_size=pool_size)
File "/app/gluon/packages/dal/pydal/base.py", line 170, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "/app/gluon/packages/dal/pydal/base.py", line 475, in __init__
"Failure to connect, tried %d times:\n%s" % (attempts, tb)
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
File "/app/gluon/packages/dal/pydal/base.py", line 455, in __init__
self._adapter = adapter(**kwargs)
File "/app/gluon/packages/dal/pydal/adapters/postgres.py", line 13, in
__call__
return AdapterMeta.__call__(cls, *args, **kwargs)
File "/app/gluon/packages/dal/pydal/adapters/__init__.py", line 40, in
__call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'uri'
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.