threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

Create a package to create crud actors for system bcdb models #345

Closed andrewayoub closed 4 years ago

andrewayoub commented 4 years ago

Create a package to create crud actors for system bcdb models

andrewayoub commented 4 years ago

created under zerobot/system_bcdb and added to the core packages in threebot server

Pishoy commented 4 years ago

got error while starting threebot server as below

JSX> cl = j.servers.threebot.local_start_default()                                                                                                                                                          
................
...............
** START DATA PROCESSOR FOR :threebot_ZDB_threebot
** START DATA PROCESSOR FOR :threebot_REDIS_alerta
Sun 15 12:02:25 tem_bcdb//package.py -  17 - prepare                            : EXCEPTION: 
    AttributeError("'generator' object has no attribute 'values'",)
--TRACEBACK------------------
<stdin> in <module>
    1    
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in local_start_default
    93    client = self.default.start(background=background, packages=packages)
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in start
    268    self._packages_core_init()
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreebotServer.py in _packages_core_init
    389    p.install()
/sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py in install
    291    self._package_author.prepare()
/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/system_bcdb//package.py in prepare
    17    models = list(j.data.bcdb.system.models.values())
-----------------------------

'generator' object has no attribute 'values'
JSX>                                                                                                                                                                                                        
JSX>                                                                                                                                                                                                        
JSX> cl = j.servers.threebot.local_start_default()                                                                                                                                                          
Sun 15 12:03:51 /BASECLASSES/Attr.py -  59 - __getattr__                        : EXCEPTION: 
    try to get attribute: 'client_get', instance did not exist, was also not a method or property, was on
        'gedisclientfactory'
--TRACEBACK------------------
<stdin> in <module>
    1    
/sandbox/lib/jumpscale/Jumpscale/servers/threebot/ThreeBotServersFactory.py in local_start_default
    95    client = j.clients.gedis.client_get(name="threebot", port=8901)
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/Attr.py in __getattr__
    59    % (name, self._key)
-----------------------------

None