File "/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/google.py", line 44, in _find_work_folder
super(GoogleSQL)._find_work_folder()
AttributeError: 'super' object has no attribute '_find_work_folder'
Here is the error from the current version of pydal when trying to connect to Cloud SQL (my memory is better than I thought):
File "/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/google.py", line 44, in _find_work_folder
super(GoogleSQL)._find_work_folder()
AttributeError: 'super' object has no attribute '_find_work_folder'
db = DAL('google:sql://[$project]:[$instance]/[$database]')
python /Dev/Trytha/google-cloud-sdk/bin/dev_appserver.py --host=0.0.0.0 --mysql_host=localhost --mysql_port=3306 --mysql_user=root --mysql_password='[$password]' /Dev/Trytha/web2py
I could zip that up into an app if you like, but I can literally change any portion of that connection string and have it work in the old version of pydal and not work in the new version (in a completely fresh web2py install which I performed while I wrote the steps to replicate). This is also a shiny, fresh OSX install, so I can't see this being some sort of interaction specific to my computer.
ERROR 2017-05-02 02:36:08,394 restricted.py:171] Traceback (most recent call last):
File "/Users/sin/Dev/Trytha/web2py/gluon/restricted.py", line 216, in restricted
exec(ccode, environment)
File "/Users/sin/Dev/Trytha/web2py/applications/welcome/models/db.py", line 40, in <module>
db = DAL('google:sql://trytha-1104:test4/test4')
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/base.py", line 170, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "/Users/sin/Dev/Trytha/web2py/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 "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/base.py", line 455, in __init__
self._adapter = adapter(**kwargs)
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 40, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/google.py", line 40, in __init__
super(GoogleSQL, self).__init__(*args, **kwargs)
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/base.py", line 367, in __init__
super(SQLAdapter, self).__init__(*args, **kwargs)
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/base.py", line 50, in __init__
self._initialize_(do_connect)
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/google.py", line 49, in _initialize_
super(MySQL, self)._initialize_(do_connect)
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/base.py", line 63, in _initialize_
self._find_work_folder()
File "/Users/sin/Dev/Trytha/web2py/gluon/packages/dal/pydal/adapters/google.py", line 44, in _find_work_folder
super(GoogleSQL)._find_work_folder()
AttributeError: 'super' object has no attribute '_find_work_folder'