Hi,
I need some help to install mn by COLD_WALLET_ON_WINDOWS_WITH_LINUX_VPS.pdf. I typed "./venv/bin/py.test ./test" but it returned an error. I have no idea to solve it...
root@xxxx:~/.crowdcoincore/sentinelLinux$ ./venv/bin/py.test ./test ======================================= test session starts ======================================== platform linux2 -- Python 2.7.12, pytest-3.0.1, py-1.4.31, pluggy-0.3.1 rootdir: /root/.crowdcoincore/sentinelLinux, inifile: collected 23 items
test/integration/test_jsonrpc.py F test/unit/test_crowdcoin_config.py . test/unit/test_crowdcoind_data_shims.py .. test/unit/test_crowdcoiny_things.py ...... test/unit/test_misc.py . test/unit/test_models.py .. test/unit/test_submit_command.py . test/unit/models/test_proposals.py .... test/unit/models/test_superblocks.py .....
============================================= FAILURES ============================================= _________________________________________ test_crowdcoind __________________________________________
def test_crowdcoind(): config_text = CrowdcoinConfig.slurp_config_file(config.crowdcoin_conf) network = 'mainnet' is_testnet = False genesis_hash = u'000007db550074c6535ce41c2a6043d0afbc86f17f1762b06e2cd65d100f7b5f' for line in config_text.split("\n"): if line.startswith('testnet=1'): network = 'testnet' is_testnet = True genesis_hash = u'00000a8d0db898c786060f839e63529700bd00e4708b028206a8a60f391566d8'
creds = CrowdcoinConfig.get_rpc_creds(config_text, network) crowdcoind = CrowdcoinDaemon(**creds) assert crowdcoind.rpc_command is not None
assert hasattr(crowdcoind, 'rpc_connection')
# Crowdcoin testnet block 0 hash == 00000bafbc94add76cb75e2ec92894837288a481e5c005f6563d91623bf8bc2c # test commands without arguments > info = crowdcoind.rpc_command('getinfo')
test/integration/test_jsonrpc.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lib/crowdcoind.py:42: in rpc_command return self.rpc_connection.__getattr__(params[0])(*params[1:]) venv/local/lib/python2.7/site-packages/bitcoinrpc/authproxy.py:136: in __call__ 'Content-type': 'application/json'}) /usr/lib/python2.7/httplib.py:1057: in request self._send_request(method, url, body, headers) /usr/lib/python2.7/httplib.py:1097: in _send_request self.endheaders(body) /usr/lib/python2.7/httplib.py:1053: in endheaders self._send_output(message_body) /usr/lib/python2.7/httplib.py:897: in _send_output self.send(msg) /usr/lib/python2.7/httplib.py:859: in send self.connect() /usr/lib/python2.7/httplib.py:836: in connect self.timeout, self.source_address) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
address = ('127.0.0.1', 9998), timeout = 30, source_address = None
def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=None): """Connect to *address* and return the socket object.
Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. A host of '' or port 0 tells the OS to use the default. """
host, port = address err = None for res in getaddrinfo(host, port, 0, SOCK_STREAM): af, socktype, proto, canonname, sa = res sock = None try: sock = socket(af, socktype, proto) if timeout is not _GLOBAL_DEFAULT_TIMEOUT: sock.settimeout(timeout) if source_address: sock.bind(source_address) sock.connect(sa) return sock
except error as _: err = _ if sock is not None: sock.close()
if err is not None: > raise err E error: [Errno 111] Connection refused
/usr/lib/python2.7/socket.py:575: error =============================== 1 failed, 22 passed in 1.48 seconds ================================
|