Error in sdk local installation (PIP3)

Hello,

I’m facing difficulties to install the 3bot locally on an Ubuntu 20.04 machine. I followed all the steps described in the manual (pip install), but when trying to launch the 3bot, I get the following error:


jerome@tower2:~$ threebot start --local
2020-12-27 13:39:13.889 | ERROR | jumpscale.tools.errorhandler.errorhandler:_handle_exception:93 - jumpscale.core.exceptions.exceptions.Value: No configured identity found
Traceback (most recent call last):

File “/home/jerome/.local/bin/threebot”, line 8, in
sys.exit(cli())
│ │ └ <click.core.Group object at 0x7f67fa9528b0>
│ └
└ <module ‘sys’ (built-in)>
File “/usr/lib/python3/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
│ │ │ └ {}
│ │ └ ()
│ └ <function BaseCommand.main at 0x7f67fd048280>
└ <click.core.Group object at 0x7f67fa9528b0>
File “/usr/lib/python3/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
│ │ └ <click.core.Context object at 0x7f67fd552490>
│ └ <function MultiCommand.invoke at 0x7f67fd049040>
└ <click.core.Group object at 0x7f67fa9528b0>
File “/usr/lib/python3/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
│ │ │ │ └ <click.core.Context object at 0x7f67fe203d30>
│ │ │ └ <function Command.invoke at 0x7f67fd048c10>
│ │ └ <click.core.Command object at 0x7f67faf2cd30>
│ └ <click.core.Context object at 0x7f67fe203d30>
└ <function MultiCommand.invoke.._process_result at 0x7f67fe3161f0>
File “/usr/lib/python3/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
│ │ │ │ │ └ {‘local’: True, ‘identity’: None, ‘domain’: None, ‘email’: None, ‘development’: False, ‘background’: False}
│ │ │ │ └ <click.core.Context object at 0x7f67fe203d30>
│ │ │ └ <function start at 0x7f67fa959790>
│ │ └ <click.core.Command object at 0x7f67faf2cd30>
│ └ <function Context.invoke at 0x7f67fd046dc0>
└ <click.core.Context object at 0x7f67fe203d30>
File “/usr/lib/python3/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
│ │ └ {‘local’: True, ‘identity’: None, ‘domain’: None, ‘email’: None, ‘development’: False, ‘background’: False}
│ └ ()
└ <function start at 0x7f67fa959790>
File “/home/jerome/.local/lib/python3.8/site-packages/jumpscale/entry_points/threebot.py”, line 86, in start
create_wallets_if_not_exists()
└ <function create_wallets_if_not_exists at 0x7f67fa959820>
File “/home/jerome/.local/lib/python3.8/site-packages/jumpscale/entry_points/threebot.py”, line 277, in create_wallets_if_not_exists
if not test and “testnet” in j.core.identity.me.explorer_url:
│ │ └ <property object at 0x7f67fd04f900>
│ └ <jumpscale.loader.J object at 0x7f67fd050250>
└ False
File “/home/jerome/.local/lib/python3.8/site-packages/jumpscale/core/identity/init.py”, line 208, in me
raise Value(“No configured identity found”)
└ <class ‘jumpscale.core.exceptions.exceptions.Value’>

jumpscale.core.exceptions.exceptions.Value: No configured identity found


Can someone tell me what is wrong?

Thank you in advance for your help

I encountered this too. It seems that the interactive dialogues to set up identity went away at some point (the part where it asked you for your email address, 3bot name, and seed phrase). You can accomplish the same manually using python.

From inside your poetry shell, run jsng. Then run the following commands, replacing everything in square brackets with your relevant details and removing “.testnet” from the explorer url if you want mainnet:

JS-NG> myid = j.core.identity.new(name="[choose a name]", tname="[name].3bot", email="[your email address]", words="[your seed phrase]",  explorer_url="https://explorer.testnet.grid.tf/api/v1") 

JS-NG> myid.register() 
JS-NG> myid.save() 
JS-NG> j.core.identity.set_default("[name you chose]") 

Also note that as of November the pip version was not compatible with testnet, so you may need to install the sdk via the “experts or developers” instructions if you want to use testnet.