0 Members and 1 Guest are viewing this topic.
I am using pybitshares for generating wallet accounts for my users, I hit the bitshares.wallet.create() and want to store the keys to database but this function always returns null and when I check bitshares.wallet.created() it results true.
How is your system setup?Is this all installed?http://docs.pybitshares.com/en/latest/installation.html
To me, this looks like the wrong or an outdated `websocket` library is installed.The correct package is called `websocket-client` in pip3
xyz@xyz ~ $ pip install websocket-clientRequirement already satisfied (use --upgrade to upgrade): websocket-client in ./.local/lib/python2.7/site-packagesCleaning up...xyz@xyz ~ $ pip install websocket-client --upgradeRequirement already up-to-date: websocket-client in ./.local/lib/python2.7/site-packagesCleaning up...xyz@xyz ~ $ pip3 install websocket-client --upgradeDownloading/unpacking websocket-client Downloading websocket_client-0.46.0-py2.py3-none-any.whl (200kB): 200kB downloadedDownloading/unpacking six from https://pypi.python.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl#md5=866ab722be6bdfed6830f3179af65468 (from websocket-client) Downloading six-1.11.0-py2.py3-none-any.whlInstalling collected packages: websocket-client, sixCleaning up...Exception:Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 283, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/lib/python3/dist-packages/pip/req.py", line 1436, in install requirement.install(install_options, global_options, *args, **kwargs) File "/usr/lib/python3/dist-packages/pip/req.py", line 672, in install self.move_wheel_files(self.source_dir, root=root) File "/usr/lib/python3/dist-packages/pip/req.py", line 902, in move_wheel_files pycompile=self.pycompile, File "/usr/lib/python3/dist-packages/pip/wheel.py", line 206, in move_wheel_files clobber(source, lib_dir, True) File "/usr/lib/python3/dist-packages/pip/wheel.py", line 193, in clobber os.makedirs(destsubdir) File "/usr/lib/python3.4/os.py", line 237, in makedirs mkdir(name, mode)PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/websocket_client-0.46.0.dist-info'Storing debug log for failure in /home/xyz/.pip/pip.logxyz@xyz ~ $ sudo pip3 install websocket-client --upgrade[sudo] password for xyz: Downloading/unpacking websocket-client Downloading websocket_client-0.46.0-py2.py3-none-any.whl (200kB): 200kB downloadedDownloading/unpacking six from https://pypi.python.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl#md5=866ab722be6bdfed6830f3179af65468 (from websocket-client) Downloading six-1.11.0-py2.py3-none-any.whlInstalling collected packages: websocket-client, six Found existing installation: six 1.5.2 Not uninstalling six at /usr/lib/python3/dist-packages, owned by OSSuccessfully installed websocket-client sixCleaning up...xyz@xyz ~ $ cd Python/EVxyz@xyz ~/Python/EV $ python3 bitsharestest.pyTraceback (most recent call last): File "bitsharestest.py", line 11, in <module> account = Account("xeroc") File "/home/xyz/.local/lib/python3.4/site-packages/bitshares/account.py", line 50, in __init__ bitshares_instance=None File "/home/xyz/.local/lib/python3.4/site-packages/bitshares/blockchainobject.py", line 69, in __init__ self.bitshares = bitshares_instance or shared_bitshares_instance() File "/home/xyz/.local/lib/python3.4/site-packages/bitshares/instance.py", line 15, in shared_bitshares_instance SharedInstance.instance = bts.BitShares() File "/home/xyz/.local/lib/python3.4/site-packages/bitshares/bitshares.py", line 151, in __init__ **kwargs) File "/home/xyz/.local/lib/python3.4/site-packages/bitshares/bitshares.py", line 180, in connect self.rpc = BitSharesNodeRPC(node, rpcuser, rpcpassword, **kwargs) File "/home/xyz/.local/lib/python3.4/site-packages/bitsharesapi/bitsharesnoderpc.py", line 23, in __init__ super(BitSharesNodeRPC, self).__init__(*args, **kwargs) File "/home/xyz/.local/lib/python3.4/site-packages/grapheneapi/graphenewsrpc.py", line 64, in __init__ self.wsconnect() File "/home/xyz/.local/lib/python3.4/site-packages/grapheneapi/graphenewsrpc.py", line 79, in wsconnect self.ws = websocket.WebSocket(sslopt=sslopt_ca_certs)TypeError: __init__() got an unexpected keyword argument 'sslopt'