Raspberry Pi: 'CommonDialect' object has no attribute 'quote_template'. How come?

61 views
Skip to first unread message

Ben Lawrence

unread,
Jun 29, 2016, 12:46:21 AM6/29/16
to web2py-users
HI
About a month ago, I installed web2py on raspberry pi
and ran the rocket server 
web2py -a 'your_password' -i 0.0.0.0 -p 8000 -c ca.crt -k ca.key
and everything worked fine. 
So I got another raspberry pi and installed web2py , and now I get the following error. Does anyone know why?

Error ticket for "admin"

Ticket ID

192.168.0.135.2016-06-28.21-37-37.11462a4b-e69f-4408-a874-cb840aa214d0

<type 'exceptions.AttributeError'> 'CommonDialect' object has no attribute 'quote_template'

Traceback


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.



Traceback (most recent call last):
File "/home/pi/web2py/gluon/restricted.py", line 224, in restricted
exec(ccode, environment)
File "/home/pi/web2py/applications/admin/controllers/default.py", line 2003, in <module>
File "/home/pi/web2py/gluon/globals.py", line 405, in <lambda>
self._caller = lambda f: f()
File "/home/pi/web2py/applications/admin/controllers/default.py", line 231, in site
table_name='appcreate')
File "/home/pi/web2py/gluon/sqlhtml.py", line 1809, in factory
return SQLFORM(DAL(None).define_table(table_name, *fields),
File "/usr/local/lib/python2.7/dist-packages/pydal/base.py", line 173, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pydal/base.py", line 484, in __init__
entity_quoting=entity_quoting)
File "/usr/local/lib/python2.7/dist-packages/pydal/adapters/__init__.py", line 45, in __call__
quot = obj.dialect.quote_template
AttributeError: 'CommonDialect' object has no attribute 'quote_template'


Ben Lawrence

unread,
Jun 30, 2016, 12:42:59 AM6/30/16
to web2py-users
Wait, no, I just downloaded the web2py software from the original raspberry pi that I installed and functioned ok. I get the same error. Let me go away and figure this out...

Niphlod

unread,
Jun 30, 2016, 11:57:44 AM6/30/16
to web2py-users
download a stable release first and foremost.... there's no way to tell what 

Ben Lawrence

unread,
Jul 1, 2016, 1:34:31 AM7/1/16
to web2py-users
Thanks. For the record I know what I did wrong. The error is caused by my installing 
sudo pip install pydal
first, and then installing web2py. Apparently the pip version is behind the current version of pydal, and as web2py was using the pip version, there were errors.

In the first case, where everything worked fine, I installed web2py FIRST and THEN pip install pydal. In this case, web2py was using its own version of pydal and not the pip version.

Interesting!
Reply all
Reply to author
Forward
0 new messages