finally got it work, couchdb 2.1.0 (mac), extract and run apache 
couchdb.app, pip install couchdb (for python driver) and then running 
web2py 2.14.6 source (web2py recent version not work error traceback posted 
above)
*error 1:*
Traceback (most recent call last):
  File "/Users/MacBookPro/site/web2py/gluon/restricted.py", line 227, in 
restricted
    exec ccode in environment
  File 
"/Users/MacBookPro/site/web2py/applications/test/controllers/install_demo.py", 
line 490, in <module>
  File "/Users/MacBookPro/site/web2py/gluon/globals.py", line 417, in 
<lambda>
    self._caller = lambda f: f()
  File 
"/Users/MacBookPro/site/web2py/applications/test/controllers/install_demo.py", 
line 7, in index
    if db(db.auth_permission).isempty() and 
db(db.auth_membership).isempty():
  File "/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/objects.py", 
line 1989, in isempty
    return not self.select(limitby=(0, 1), orderby_on_limitby=False)
  File "/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/objects.py", 
line 2020, in select
    return adapter.select(self.query, fields, attributes)
  File 
"/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/adapters/couchdb.py", 
line 160, in select
    rows = [cols['value'] for cols in ctable.query(fn)]
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/client.py", 
line 1259, in __iter__
    return iter(self.rows)
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/client.py", 
line 1279, in rows
    self._fetch()
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/client.py", 
line 1265, in _fetch
    data = self.view._exec(self.options)
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/client.py", 
line 1165, in _exec
    }, **_encode_view_options(options))
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/http.py", line 
566, in post_json
    **params)
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/http.py", line 
585, in _request_json
    headers=headers, **params)
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/http.py", line 
581, in _request
    credentials=self.credentials)
  File 
"/Users/MacBookPro/site/lib/python2.7/site-packages/couchdb/http.py", line 
421, in request
    raise ServerError((status, error))
ServerError: (403, (u'forbidden', u'Temporary views are not supported in 
CouchDB'))

*error 2:*
Traceback (most recent call last):
  File "/Users/MacBookPro/site/web2py/gluon/restricted.py", line 227, in 
restricted
    exec ccode in environment
  File 
"/Users/MacBookPro/site/web2py/applications/test/models/db_schema_3_customer.py",
 
line 161, in <module>
    auth_user_customer = db(db.customer.auth_user == 
auth.user_id).select().first()
  File "/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/objects.py", 
line 2020, in select
    return adapter.select(self.query, fields, attributes)
  File 
"/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/adapters/couchdb.py", 
line 157, in select
    fn, colnames = self._select(query,fields,attributes)
  File 
"/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/adapters/couchdb.py", 
line 149, in _select
    query=self.expand(query),
  File 
"/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/adapters/couchdb.py", 
line 50, in expand
    return BaseAdapter.expand(self,expression,field_type)
  File 
"/Users/MacBookPro/site/web2py/gluon/packages/dal/pydal/adapters/base.py", 
line 954, in expand
    rv = op(first, **optional_args)
TypeError: EQ() takes exactly 3 arguments (2 given)

error 1: is occured when start new web2py app, add new record (e.g. 
auth_group in appadmin web browser)
another strange thing is all dal define table is recorded as database in 
couchdb, i think it should be document (pls correct me if i'm wrong)
*e.g.*
*private/appconfig.ini*
uri = couchdb://localhost:5984
where is the database name on this configuration? 

already test with 
*web2py private/appconfig.ini*
private/appconfig.ini
uri = couchdb://localhost:5984/testweb2py

*couchdb create database*
curl -X PUT http://127.0.0.1:5984/testweb2py
not work with web2py configuration above

while in mongodb, there is database name in configuration
*e.g.*
*private/appconfig.ini*
uri = mongodb://localhost/mutualfunds

compare couchdb and mongodb to work with web2py: (posted in another thread 
of this forum)
- iterselect is work in couchdb while not work in mongodb
- auth.add_permission() is work in couchdb while not work in mongodb
- db.executesql('CREATE INDEX idx_auth_user ON auth_user (id, first_name, 
last_name, email, username);') seems work in couchdb while not work in 
mongodb

best regards,
stifan

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to