Last active
December 18, 2019 10:41
-
-
Save Pishoy/fd1d414aa4ade7cbddf80b7e0437ea45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSX> cl = j.clients.gedis.get(name='default',host='127.0.0.1', port=8901, package_name="zerobot.packagemanager") | |
LOAD CONFIG BCDB | |
Wed 18 10:35:16 /schema/JSXObject.py - 139 - check_empty_indexed_fields : EXCEPTION: | |
an indexed (sql) field cannot be empty:tname | |
--TRACEBACK------------------ | |
<stdin> in <module> | |
1 | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in get | |
134 jsconfig = self._new(name=name, autosave=autosave, **kwargs) | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in _new | |
112 jsconfig = jsconfig_klass(parent=self, jsxobject=jsxobject, **kwargs_to_class) | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py in __init__ | |
64 self._init(**kwargs) | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClient.py in _init | |
54 self.reload() | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClient.py in reload | |
96 assert self.ping() | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClient.py in ping | |
70 test = self._redis.execute_command("ping") | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClient.py in _redis | |
190 signature = self._nacl.sign_hex(seed) # this is just std signing on nacl and hexifly it | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClient.py in _nacl | |
203 return self._threebot_me.nacl | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClient.py in _threebot_me | |
198 self._threebot_me_ = j.tools.threebot.me.get(self.threebot_local_profile, needexist=False) | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in get | |
134 jsconfig = self._new(name=name, autosave=autosave, **kwargs) | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py in _new | |
117 self._children[name].save() | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigBCDB.py in save | |
123 self.save_() | |
/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigBCDB.py in save_ | |
135 self._data.save() | |
/sandbox/lib/jumpscale/Jumpscale/data/schema/JSXObject.py in save | |
152 self.check_empty_indexed_fields() | |
/sandbox/lib/jumpscale/Jumpscale/data/schema/JSXObject.py in check_empty_indexed_fields | |
139 raise j.exceptions.Input("an indexed (sql) field cannot be empty:%s" % prop.name, data=self) | |
----------------------------- | |
--DATA----------------------- | |
## jumpscale.threebot.me | |
- name : default | |
- tid : 0 | |
- tname : | |
- email : | |
- pubkey : | |
- admins : [] | |
----------------------------- | |
None | |
JSX> cl = j.clients.gedis.get(name='default',host='127.0.0.1', port=8901, package_name="zerobot.packagemanager") | |
JSX> cl | |
# JSXOBJ: | |
## jumpscale.gedis.client | |
ID: 71 | |
- name : default | |
- host : 127.0.0.1 | |
- port : 8901 | |
- package_name : zerobot.packagemanager | |
- threebot_local_profile: default | |
- password_ : | |
JSX> cl.actors.package_manager.package_add(path='/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/system_bcdb') | |
Wed 18 10:35:46 edisClientFactory.py - 60 - _handle_error : EXCEPTION: | |
GEDIS SERVER 127.0.0.1:8901 SOURCE METHOD: zerobot.packagemanager.package_manager.package_add | |
- original Exception: {"traceback": [["/sandbox/lib/jumpscale/Jumpscale/servers/gedis/handlers.py", "_handle_request", 423, "result = | |
cmd_method(*params_list, user_session=user_session, **params_dict)", null], | |
["/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/Decorators.py", "wrapper_action", 60, "res = func(self, | |
**kwargs)", null], ["/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/packagemanager/ | |
actors/package_manager.py", "package_add", 73, "package.actors_reload()", null], | |
["/sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py", "actors_reload", 183, "raise e", | |
null], ["/sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py", "actors_reload", 178, | |
"self._actors[name] = cl(package=self)", null], ["/sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py", | |
"__init__", 64, "self._init(**kwargs)", null], ["/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPack | |
ages/zerobot/system_bcdb/actors/jumpscale_gedis_client_model.py", "_init", 8, "self.model = | |
self.bcdb.model_get(url=\"zerobot.system_bcdb.jumpscale.gedis.client\")", null], | |
["/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py", "model_get", 500, "schema = self.schema_get(schema=schema, | |
md5=md5, url=url)", null], ["/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py", "schema_get", 546, "raise | |
j.exceptions.Input(\"we could not find model from:%s, was not in bcdb or j.data.schema\" % url)", null]], "message": | |
"\u001b[1;31mEXCEPTION: \n we could not find model from:zerobot.system_bcdb.jumpscale.gedis.client, was not in | |
bcdb or j.data.schema\u001b[0;0m", "linenr": 546, "filepath": "/sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py", | |
"processid": "unknown", "level": 50, "context": "schema_get", "cat": null, "data": null} | |
--TRACEBACK------------------ | |
<stdin> in <module> | |
1 | |
/sandbox/var/codegen/gedis/default/client/zerobot.packagemanager_package_manager.py in package_add | |
85 self.handle_error(e,1,cmd_name=cmd_name) | |
/sandbox/var/codegen/gedis/default/client/zerobot.packagemanager_package_manager.py in handle_error | |
300 return j.clients.gedis._handle_error(e,source=source,cmd_name=cmd_name,redis=self._redis) | |
/sandbox/lib/jumpscale/Jumpscale/clients/gedis/GedisClientFactory.py in _handle_error | |
60 raise j.exceptions.RemoteException(message=msg, data=logdict, exception=e) | |
----------------------------- | |
--DATA----------------------- | |
cat: null | |
context: schema_get | |
data: null | |
filepath: /sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py | |
level: 50 | |
linenr: 546 | |
message: "\e[1;31mEXCEPTION: \n we could not find model from:zerobot.system_bcdb.jumpscale.gedis.client,\ | |
\ was not in bcdb or j.data.schema\e[0;0m" | |
processid: unknown | |
source: 'GEDIS SERVER 127.0.0.1:8901 SOURCE METHOD: zerobot.packagemanager.package_manager.package_add' | |
traceback: | |
- - /sandbox/lib/jumpscale/Jumpscale/servers/gedis/handlers.py | |
- _handle_request | |
- 423 | |
- result = cmd_method(*params_list, user_session=user_session, **params_dict) | |
- null | |
- - /sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/Decorators.py | |
- wrapper_action | |
- 60 | |
- res = func(self, **kwargs) | |
- null | |
- - | |
/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/packagemanager/actors/package_manage | |
r.py | |
- package_add | |
- 73 | |
- package.actors_reload() | |
- null | |
- - /sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py | |
- actors_reload | |
- 183 | |
- raise e | |
- null | |
- - /sandbox/lib/jumpscale/Jumpscale/tools/threebot_package/ThreeBotPackage.py | |
- actors_reload | |
- 178 | |
- self._actors[name] = cl(package=self) | |
- null | |
- - /sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSBase.py | |
- __init__ | |
- 64 | |
- self._init(**kwargs) | |
- null | |
- - /sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/system_bcdb/actors/jumpscale_gedis | |
_client_model.py | |
- _init | |
- 8 | |
- self.model = self.bcdb.model_get(url="zerobot.system_bcdb.jumpscale.gedis.client") | |
- null | |
- - /sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py | |
- model_get | |
- 500 | |
- schema = self.schema_get(schema=schema, md5=md5, url=url) | |
- null | |
- - /sandbox/lib/jumpscale/Jumpscale/data/bcdb/BCDB.py | |
- schema_get | |
- 546 | |
- raise j.exceptions.Input("we could not find model from:%s, was not in bcdb or | |
j.data.schema" % url) | |
- null | |
----------------------------- | |
None | |
JSX> | |
JSX> cl = j.clients.gedis.get(name='default',host='127.0.0.1', port=8901, package_name="zerobot.packagemanager").actors.package_manager | |
JSX> cl | |
<743f9bc3c097f8a66c0a99ae33e9a0cf.GedisClientGenerated object at 0x7f3ff7254278> | |
JSX> cl.actors.package_manager.package_add(path='/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/zerobot/system_bcdb') | |
Wed 18 10:41:11 <stdin> - 1 - <module> : EXCEPTION: | |
AttributeError("'GedisClientGenerated' object has no attribute 'actors'",) | |
--TRACEBACK------------------ | |
<stdin> in <module> | |
1 | |
----------------------------- | |
'GedisClientGenerated' object has no attribute 'actors' | |
JSX> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment