<type 'exceptions.AttributeError'> 'module' object has no attribute 'items'

129 views
Skip to first unread message

Dimid Duchovny

unread,
Apr 17, 2015, 10:32:27 AM4/17/15
to web...@googlegroups.com
Hello,

I get this error right after cloning:

git clone --recursive https://github.com/web2py/web2py.git
[snip]
cd web2py
/
python web2py
.py
ERROR
:root:New installation error: unable to create welcome.w2p file
web2py
Web Framework
Created by Massimo Di Pierro, Copyright 2007-2015
Version 2.10.3-stable+timestamp.2015.04.02.16.28.49
Database drivers available: pymysql, imaplib, pg8000, sqlite3, sqlite2, pyodbc, mysqlconnector
please visit
:
    http
://127.0.0.1:8000/
starting browser
...
unnamed app
(3684) ClientApp::doIt: Creating ClientApp
kioclient
(3684) ClientApp::kde_open: KUrl("http://127.0.0.1:8000/")
kioclient
(3684) KSharedUiServerProxy::KSharedUiServerProxy: kuiserver registered


commit f33ccf3366bc19c8

In the browser, visiting http://127.0.0.1:8000 and opening the ticket:

Error ticket for "welcome"

Ticket ID


127.0.0.1.2015-04-17.15-40-48.2e727d5f-799a-4402-bc0e-0ced3b8f013b

<type 'exceptions.AttributeError'> 'module' object has no attribute 'items'


Versión

 
web2pyVersion 2.10.3-stable+timestamp.2015.04.02.16.28.49
PythonPython 2.7.6: /usr/bin/python (prefix: /usr)


Rastreo


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Traceback (most recent call last):
 
File "/home/dimid/web2py/gluon/restricted.py", line 227, in restricted
   
exec ccode in environment
  File
"/home/dimid/web2py/applications/welcome/models/db.py", line 20, in <module>
   
db = DAL(myconf.take('db.uri'), pool_size=myconf.take('db.pool_size', cast=int), check_reserved=['all'])
 
File "/home/dimid/web2py/gluon/packages/dal/pydal/base.py", line 171, in __call__
    obj
= super(MetaDAL, cls).__call__(*args, **kwargs)
 
File "/home/dimid/web2py/gluon/packages/dal/pydal/base.py", line 475, in __init__
   
for k, v in self.serializers.items():
AttributeError: 'module' object has no attribute 'items'


Dimid Duchovny

unread,
Apr 17, 2015, 10:42:47 AM4/17/15
to web...@googlegroups.com
This error doesn't occur when downloading the stable source from
http://www.web2py.com/examples/static/web2py_src.zip

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/y-2eBof7Ips/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Apr 17, 2015, 10:57:50 PM4/17/15
to web...@googlegroups.com
Yes. That is a patch gone bad. We are working on fixing it.
Reply all
Reply to author
Forward
0 new messages