threefoldtecharchive / jumpscaleX_archived

Apache License 2.0
1 stars 6 forks source link

BCDBModel object has no attribute 'get_all' on fresh 3bot container #634

Closed xmonader closed 5 years ago

xmonader commented 5 years ago

Following installation docs https://github.com/threefoldtech/jumpscaleX/blob/development/docs/Installation/get_started.md

JSX> j.clients.gedis                                                                                                      
Traceback (most recent call last):
  File "/root/.local/lib/python3.6/site-packages/ptpython/repl.py", line 84, in _process_text
    self._execute(line)
  File "/root/.local/lib/python3.6/site-packages/ptpython/repl.py", line 133, in _execute
    result_str = '%r\n' % (result, )
  File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py", line 567, in __str__
    out = add("children", "GREEN", self._properties_children(), out)
  File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBaseConfigs.py", line 202, in _properties_children
    for item in self.findData():
  File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBaseConfigs.py", line 173, in findData
    return self._model.get_all()
AttributeError: 'BCDBModel' object has no attribute 'get_all'

JSX> j.clients.etcd                                                                                                         

Thu 20 07:33:11 BCDB.py          - 465 - bcdb:bcdb                          : load model:jumpscale.etcd.client
Traceback (most recent call last):
  File "/root/.local/lib/python3.6/site-packages/ptpython/repl.py", line 84, in _process_text
    self._execute(line)
  File "/root/.local/lib/python3.6/site-packages/ptpython/repl.py", line 133, in _execute
    result_str = '%r\n' % (result, )
  File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py", line 567, in __str__
    out = add("children", "GREEN", self._properties_children(), out)
  File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBaseConfigs.py", line 202, in _properties_children
    for item in self.findData():
  File "/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBaseConfigs.py", line 173, in findData
    return self._model.get_all()
AttributeError: 'BCDBModel' object has no attribute 'get_all'

'BCDBModel' object has no attribute 'get_all'
JSX>                                                                                                                        

same for mongodb and others.

rkhamis commented 5 years ago

has been changed to find, indeed

despiegk commented 5 years ago

no longer relevant on #682