Closed andrewayoub closed 4 years ago
created under zerobot/system_bcdb
and added to the core packages in threebot server
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
jsx version
3BOTDEVEL:jsxtest:~: cd /sandbox/code/github/threefoldtech/jumpscaleX_threebot/
3BOTDEVEL:jsxtest:jumpscaleX_threebot: git log -1
commit 991180cd592c0c08414513a75fb670ad48cf24a1 (HEAD -> development_fixes, origin/development_fixes)
Author: kristof de spiegeleer <>
Date: Sun Dec 15 09:40:27 2019 +0200
fixes
Create a package to create crud actors for system bcdb models