so it give me this error : <couchdbkit.client.ViewResults object at 0x1d68110> Traceback (most recent call last): File "saveemailpa.py", line 67, in <module> print emailcouchs.count() File "/usr/local/lib/python2.7/dist-packages/couchdbkit/client.py", line 973, in count self._fetch_if_needed() File "/usr/local/lib/python2.7/dist-packages/couchdbkit/client.py", line 1004, in _fetch_if_needed self.fetch() File "/usr/local/lib/python2.7/dist-packages/couchdbkit/client.py", line 987, in fetch self._total_rows = self._result_cache.get('total_rows') AttributeError: 'str' object has no attribute 'get'
So it seems that the print tells me that ok it's a view object but it fails after and it seems that it's a string.
> so it give me this error :
> <couchdbkit.client.ViewResults object at 0x1d68110>
> Traceback (most recent call last):
> File "saveemailpa.py", line 67, in <module>
> print emailcouchs.count()
> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/client.py", line
> 973, in count
> self._fetch_if_needed()
> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/client.py", line
> 1004, in _fetch_if_needed
> self.fetch()
> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/client.py", line
> 987, in fetch
> self._total_rows = self._result_cache.get('total_rows')
> AttributeError: 'str' object has no attribute 'get'
> So it seems that the print tells me that ok it's a view object but it fails
> after and it seems that it's a string.
> Any idea anyone ?
Which version of couchdbkit are you using? Can you enable logging ?
from restkit import set_logging
set_logging("debug")
Traceback (most recent call last):
File "/home/bussiere/saveemail/testcouchdb.py", line 13, in <module>
emailcouchs = Email.view('email/all')
File "/usr/local/lib/python2.7/dist-packages/couchdbkit/schema/base.py",
line 585, in view
db = cls.get_db()
File "/usr/local/lib/python2.7/dist-packages/couchdbkit/schema/base.py",
line 422, in get_db
raise TypeError("doc database required to save document")
TypeError: doc database required to save document
[Finished in 0.6s]
thanks by the way.
Bussiere
"Les nouvelles technologies offrent pleins de nouvelles possibilités,
pleins de possibilités d'erreurs surtout en fait."
insurance.aes256 : http://goo.gl/gHyAY -----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
> Traceback (most recent call last):
> File "/home/bussiere/saveemail/testcouchdb.py", line 13, in <module>
> emailcouchs = Email.view('email/all')
> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/schema/base.py",
> line 585, in view
> db = cls.get_db()
> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/schema/base.py",
> line 422, in get_db
> raise TypeError("doc database required to save document")
> TypeError: doc database required to save document
> [Finished in 0.6s]
> thanks by the way.
Looks like another error. Could you open a ticket I will look at it over the week-end.
> On Sat, Aug 25, 2012 at 10:49 AM, Benoit Chesneau <bchesn...@gmail.com> wrote:
>> from restkit import set_logging
>> set_logging("debug")
> -- > You received this message because you are subscribed to the Google Groups "couchdbkit" group.
> To post to this group, send email to couchdbkit@googlegroups.com.
> To unsubscribe from this group, send email to couchdbkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/couchdbkit?hl=en.
On Sat, Aug 25, 2012 at 4:15 PM, Benoit Chesneau <beno...@e-engura.org> wrote:
> On Aug 25, 2012, at 11:12 AM, bussiere bussiere <bussi...@gmail.com> wrote:
>> the latest with pip.
>> and with your instruction :
>> Traceback (most recent call last):
>> File "/home/bussiere/saveemail/testcouchdb.py", line 13, in <module>
>> emailcouchs = Email.view('email/all')
>> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/schema/base.py",
>> line 585, in view
>> db = cls.get_db()
>> File "/usr/local/lib/python2.7/dist-packages/couchdbkit/schema/base.py",
>> line 422, in get_db
>> raise TypeError("doc database required to save document")
>> TypeError: doc database required to save document
>> [Finished in 0.6s]
>> thanks by the way.
> Looks like another error. Could you open a ticket I will look at it over the week-end.
> - benoît
>> Bussiere
>> "Les nouvelles technologies offrent pleins de nouvelles possibilités,
>> pleins de possibilités d'erreurs surtout en fait."
>> insurance.aes256 : http://goo.gl/gHyAY >> -----BEGIN PGP PUBLIC KEY BLOCK-----
>> Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96rc1
>> On Sat, Aug 25, 2012 at 10:49 AM, Benoit Chesneau <bchesn...@gmail.com> wrote:
>>> from restkit import set_logging
>>> set_logging("debug")
>> --
>> You received this message because you are subscribed to the Google Groups "couchdbkit" group.
>> To post to this group, send email to couchdbkit@googlegroups.com.
>> To unsubscribe from this group, send email to couchdbkit+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/couchdbkit?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "couchdbkit" group.
> To post to this group, send email to couchdbkit@googlegroups.com.
> To unsubscribe from this group, send email to couchdbkit+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/couchdbkit?hl=en.