Skip to content

Temporary views are not supported in CouchDB #50

@lepalom

Description

@lepalom

Trying to use ork with a couchDB 2.0 I have found this issue:

$ rosrun object_recognition_core object_add.py -n "coke" -d "A universal beer" --commit
Traceback (most recent call last):
File "/srv/robotica/ros/install_isolated/lib/object_recognition_core/dbscripts/object_add.py", line 35, in
db = dbtools.init_object_databases(couch)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/object_recognition_core/db/tools.py", line 28, in init_object_databases
models.sync_models(db)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/object_recognition_core/db/models.py", line 187, in sync_models
Model.sync(db)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/object_recognition_core/db/models.py", line 166, in sync
''') ]
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/client.py", line 1113, in iter
return iter(self.rows)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/client.py", line 1132, in rows
self._fetch()
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/client.py", line 1119, in _fetch
data = self.view._exec(self.options)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/client.py", line 1019, in _exec
}, **_encode_view_options(options))
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/http.py", line 452, in post_json
status, headers, data = self.post(*a, **k)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/http.py", line 434, in post
**params)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/http.py", line 472, in _request
credentials=self.credentials)
File "/srv/robotica/ros/install_isolated/lib/python2.7/dist-packages/couchdb/http.py", line 362, in request
raise ServerError((status, error))
couchdb.http.ServerError: (403, ('forbidden', 'Temporary views are not supported in CouchDB'))

It seems that ork use a functionality (Temporally views) that are dropped in CouchDB 2.0. Do you have any idea how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions