Error with couchdb

24 views
Skip to first unread message

Martin Weissenboeck

unread,
May 8, 2019, 3:21:41 AM5/8/19
to web2py-users

I want to use couchdb with web2py. It's a little bit hard, because the documenation is missing in the book, but I found something in

Now I have tried 

cdb = DAL('couchdb://admin:password@localhost:5984/w2p')

and I got:

Error ticket for "admin"

Ticket ID

213.147.184.70.2019-05-08.07-15-24.81e60920-22e8-44bb-a41d-2be4f454a73c

<class 'TypeError'> a bytes-like object is required, not 'str'

Version

web2py™Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
PythonPython 3.5.3: /usr/bin/uwsgi-core (prefix: /usr)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/www-data/web2py/applications/admin/controllers/default.py", line 2021, in <module>
File "/home/www-data/web2py/gluon/globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "/home/www-data/web2py/applications/admin/controllers/default.py", line 1627, in errors
error = pickle.load(fullpath_file)
File "/home/www-data/web2py/gluon/html.py", line 692, in XML_unpickle
return XML(marshal.loads(data))
TypeError: a bytes-like object is required, not 'str'

Error snapshot help

TypeError(a bytes-like object is required, not 'str')



Reply all
Reply to author
Forward
0 new messages