Counterpartyd: Technical support thread

Hi


I have tried to install and run counterpartyd, but I encounter the following when I try to run:



C:\counterpartyd_build>counterpartyd


C:\counterpartyd_build>echo off
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 32
    json_print = lambda x: print(json.dumps(x, sort_keys=True, indent=4))
                              ^
SyntaxError: invalid syntax


I am using window 7 32bit


thank


regards,


farmountain

[quote author=farmountain link=topic=22.msg918#msg918 date=1393437622]
Hi


I have tried to install and run counterpartyd, but I encounter the following when I try to run:



C:\counterpartyd_build>counterpartyd


C:\counterpartyd_build>echo off
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 32
    json_print = lambda x: print(json.dumps(x, sort_keys=True, indent=4))
                              ^
SyntaxError: invalid syntax


I am using window 7 32bit


thank


regards,


farmountain
[/quote]


This is very odd. The syntax is valid, and no one else has reported a problem like this.


Did you follow the instructions exactly from http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#on-windows (pg right python version, etc)?


Can you rerun the setup.py process for that, and post of the entire log of that onto pastebin.com and link to it here?

The new pending function is broke - I’ll say how in a moment. IMHO should have left Market in until the new one was working.

Edit: It seems the Format_order_match function was missing from the new push of counterpartyd.py, just added it back in from the old one.

elif args.action == 'pending':        awaiting_btcs = util.get_order_matches(db, status='pending', is_mine=True)        table = PrettyTable(['Matched Order ID', 'Time Left'])        for order_match in awaiting_btcs:            order_match = format_order_match(db, order_match)            table.add_row(order_match)        print(table)

What’s the plan for a replacement command for the Open Orders List section of the Market command?

Got a new one:
Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 478, in urlopen<br />&nbsp; &nbsp; body=body, headers=headers)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 285, in _make_request<br />&nbsp; &nbsp; conn.request(method, url, **httplib_request_kw)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 967, in request<br />&nbsp; &nbsp; self._send_request(method, url, body, headers)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 1005, in _send_request<br />&nbsp; &nbsp; self.endheaders(body)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 963, in endheaders<br />&nbsp; &nbsp; self._send_output(message_body)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 808, in _send_output<br />&nbsp; &nbsp; self.send(msg)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 746, in send<br />&nbsp; &nbsp; self.connect()<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 724, in connect<br />&nbsp; &nbsp; self.timeout, self.source_address)<br />&nbsp; File &quot;/usr/lib/python3.2/socket.py&quot;, line 404, in create_connection<br />&nbsp; &nbsp; raise err<br />&nbsp; File &quot;/usr/lib/python3.2/socket.py&quot;, line 395, in create_connection<br />&nbsp; &nbsp; sock.connect(sa)<br />socket.error: [Errno 111] Connection refused<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/adapters.py&quot;, line 324, in send<br />&nbsp; &nbsp; timeout=timeout<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 528, in urlopen<br />&nbsp; &nbsp; raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 111] Connection refused)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 802, in <module><br />&nbsp; &nbsp; bitcoin.get_btc_balance(config.UNSPENDABLE, normalize=False)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 446, in get_btc_balance<br />&nbsp; &nbsp; r = requests.get(config.INSIGHT + '/api/addr/' + address)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/api.py&quot;, line 55, in get<br />&nbsp; &nbsp; return request('get', url, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/api.py&quot;, line 44, in request<br />&nbsp; &nbsp; return session.request(method=method, url=url, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/sessions.py&quot;, line 382, in request<br />&nbsp; &nbsp; resp = self.send(prep, **send_kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/sessions.py&quot;, line 485, in send<br />&nbsp; &nbsp; r = adapter.send(request, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/adapters.py&quot;, line 372, in send<br />&nbsp; &nbsp; raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 111] Connection refused)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 804, in <module><br />&nbsp; &nbsp; raise exceptions.InsightError('Could not connect to Insight server.')<br />lib.exceptions.InsightError: Could not connect to Insight server.<br />porq@h-pc:~$ counterpartyd server<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 599, in <module><br />&nbsp; &nbsp; bitcoin.bitcoind_check(db)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 73, in bitcoind_check<br />&nbsp; &nbsp; block_count = rpc('getblockcount', [])<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 129, in rpc<br />&nbsp; &nbsp; raise exceptions.BitcoindRPCError(str(response.status_code) + ' ' + response.reason)<br />lib.exceptions.BitcoindRPCError: 401 Authorization Required<br />porq@h-pc:~$ counterpartyd server<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 599, in <module><br />&nbsp; &nbsp; bitcoin.bitcoind_check(db)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 73, in bitcoind_check<br />&nbsp; &nbsp; block_count = rpc('getblockcount', [])<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 129, in rpc<br />&nbsp; &nbsp; raise exceptions.BitcoindRPCError(str(response.status_code) + ' ' + response.reason)<br />lib.exceptions.BitcoindRPCError: 401 Authorization Required<br />porq@h-pc:~$ counterpartyd server<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 478, in urlopen<br />&nbsp; &nbsp; body=body, headers=headers)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 285, in _make_request<br />&nbsp; &nbsp; conn.request(method, url, **httplib_request_kw)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 967, in request<br />&nbsp; &nbsp; self._send_request(method, url, body, headers)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 1005, in _send_request<br />&nbsp; &nbsp; self.endheaders(body)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 963, in endheaders<br />&nbsp; &nbsp; self._send_output(message_body)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 808, in _send_output<br />&nbsp; &nbsp; self.send(msg)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 746, in send<br />&nbsp; &nbsp; self.connect()<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 724, in connect<br />&nbsp; &nbsp; self.timeout, self.source_address)<br />&nbsp; File &quot;/usr/lib/python3.2/socket.py&quot;, line 404, in create_connection<br />&nbsp; &nbsp; raise err<br />&nbsp; File &quot;/usr/lib/python3.2/socket.py&quot;, line 395, in create_connection<br />&nbsp; &nbsp; sock.connect(sa)<br />socket.error: [Errno 111] Connection refused<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/adapters.py&quot;, line 324, in send<br />&nbsp; &nbsp; timeout=timeout<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 528, in urlopen<br />&nbsp; &nbsp; raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 111] Connection refused)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 802, in <module><br />&nbsp; &nbsp; bitcoin.get_btc_balance(config.UNSPENDABLE, normalize=False)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 446, in get_btc_balance<br />&nbsp; &nbsp; r = requests.get(config.INSIGHT + '/api/addr/' + address)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/api.py&quot;, line 55, in get<br />&nbsp; &nbsp; return request('get', url, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/api.py&quot;, line 44, in request<br />&nbsp; &nbsp; return session.request(method=method, url=url, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/sessions.py&quot;, line 382, in request<br />&nbsp; &nbsp; resp = self.send(prep, **send_kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/sessions.py&quot;, line 485, in send<br />&nbsp; &nbsp; r = adapter.send(request, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/adapters.py&quot;, line 372, in send<br />&nbsp; &nbsp; raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 111] Connection refused)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 804, in <module><br />&nbsp; &nbsp; raise exceptions.InsightError('Could not connect to Insight server.')<br />lib.exceptions.InsightError: Could not connect to Insight server.<br />porq@h-pc:~$ cd counterpartyd_build<br />porq@h-pc:~/counterpartyd_build$ ls<br />dist&nbsp; docs&nbsp; env&nbsp; LICENSE&nbsp; README.md&nbsp; run.py&nbsp; setup.py<br />porq@h-pc:~/counterpartyd_build$ python3 run.py server<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 478, in urlopen<br />&nbsp; &nbsp; body=body, headers=headers)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 285, in _make_request<br />&nbsp; &nbsp; conn.request(method, url, **httplib_request_kw)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 967, in request<br />&nbsp; &nbsp; self._send_request(method, url, body, headers)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 1005, in _send_request<br />&nbsp; &nbsp; self.endheaders(body)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 963, in endheaders<br />&nbsp; &nbsp; self._send_output(message_body)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 808, in _send_output<br />&nbsp; &nbsp; self.send(msg)<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 746, in send<br />&nbsp; &nbsp; self.connect()<br />&nbsp; File &quot;/usr/lib/python3.2/http/client.py&quot;, line 724, in connect<br />&nbsp; &nbsp; self.timeout, self.source_address)<br />&nbsp; File &quot;/usr/lib/python3.2/socket.py&quot;, line 404, in create_connection<br />&nbsp; &nbsp; raise err<br />&nbsp; File &quot;/usr/lib/python3.2/socket.py&quot;, line 395, in create_connection<br />&nbsp; &nbsp; sock.connect(sa)<br />socket.error: [Errno 111] Connection refused<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/adapters.py&quot;, line 324, in send<br />&nbsp; &nbsp; timeout=timeout<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/packages/urllib3/connectionpool.py&quot;, line 528, in urlopen<br />&nbsp; &nbsp; raise MaxRetryError(self, url, e)<br />requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 111] Connection refused)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 802, in <module><br />&nbsp; &nbsp; bitcoin.get_btc_balance(config.UNSPENDABLE, normalize=False)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py&quot;, line 446, in get_btc_balance<br />&nbsp; &nbsp; r = requests.get(config.INSIGHT + '/api/addr/' + address)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/api.py&quot;, line 55, in get<br />&nbsp; &nbsp; return request('get', url, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/api.py&quot;, line 44, in request<br />&nbsp; &nbsp; return session.request(method=method, url=url, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/sessions.py&quot;, line 382, in request<br />&nbsp; &nbsp; resp = self.send(prep, **send_kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/sessions.py&quot;, line 485, in send<br />&nbsp; &nbsp; r = adapter.send(request, **kwargs)<br />&nbsp; File &quot;/home/porq/counterpartyd_build/env/lib/python3.2/site-packages/requests/adapters.py&quot;, line 372, in send<br />&nbsp; &nbsp; raise ConnectionError(e)<br />requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=3001): Max retries exceeded with url: /api/addr/mvCounterpartyXXXXXXXXXXXXXXW24Hef (Caused by <class 'socket.error'>: [Errno 111] Connection refused)<br /><br />During handling of the above exception, another exception occurred:<br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/porq/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 804, in <module><br />&nbsp; &nbsp; raise exceptions.InsightError('Could not connect to Insight server.')<br />lib.exceptions.InsightError: Could not connect to Insight server.<br />

Can we fix this:
<br />&nbsp; if insight_enable:&nbsp; &nbsp; &nbsp; &nbsp; config.INSIGHT_ENABLE = insight_enable&nbsp; &nbsp; elif has_config and 'insight-enable' in configfile['Default']:&nbsp; &nbsp; &nbsp; &nbsp; config.INSIGHT_ENABLE = configfile['Default'].getboolean('insight-enable')&nbsp; &nbsp; else:&nbsp; &nbsp; &nbsp; &nbsp; config.INSIGHT_ENABLE = False&nbsp; &nbsp; &nbsp; &nbsp; if unittest:&nbsp; &nbsp; &nbsp; &nbsp; config.INSIGHT_ENABLE = True #override when running test suite&nbsp; &nbsp; if config.TESTNET:&nbsp; &nbsp; &nbsp; &nbsp; config.INSIGHT_ENABLE = True
Okay this is what I missed -
It’s forcing config.INSIGHT to True for the testnet, despite counterpartyd.conf or command arguments - is there a reason for this?

Been doing this for every api.py update since release - dunno why.

[quote]
from jsonrpc.manager import JSONRPCResponseManager
from jsonrpc import dispatcher
[/quote]

I’m on v6.9 using counterpartyd_build develop branch to install it on ubuntu


and I got this


<br /> tatus: RESTART<br />Block: 293000<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/kem/counterpartyd_build/dist/counterpartyd/counterpartyd.py&quot;, line 795, in <module><br />&nbsp; &nbsp; blocks.follow(db)<br />&nbsp; File &quot;/home/kem/counterpartyd_build/dist/counterpartyd/lib/blocks.py&quot;, line 768, in follow<br />&nbsp; &nbsp; source, destination, btc_amount, fee, data = get_tx_info(tx, block_index)<br />&nbsp; File &quot;/home/kem/counterpartyd_build/dist/counterpartyd/lib/blocks.py&quot;, line 570, in get_tx_info<br />&nbsp; &nbsp; obj1 = ARC4.new(binascii.unhexlify(tx['vin'][0]['txid']))<br />TypeError: 'str' does not support the buffer interface<br />


on the other hands, my counterpartyd on osx version 6.8 keeps running with no problem

Hi,

I’m trying to build & run from source with 64-bit win7, when I run setup.py I get:

[quote]running build_ext

building ‘Crypto.Random.OSRNG.winrandom’ extension

warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.

error: Unable to find vcvarsall.bat[/quote]

EDIT:
For anyone having the same problem, apparently the error is related to this:

[quote author=romerun link=topic=166.msg1690#msg1690 date=1396234558]
looks like counterpartyd 6.10 requires pycrypto , i did pip3 install pycrypto on osx and ubuntu and it went through just fine, no clue on windows
[/quote]

I downloaded the prebuilt python binaries from http://www.voidspace.org.uk/python/modules.shtml#pycrypto and it worked.

Enter your Bitcoind[‐Qt] wallet passhrase: <br />Unlocking wallet for 60 (more) seconds.<br />Traceback (most recent call last):<br />&nbsp; File &quot;/home/hurin/counterpartyd/counterpartyd.py&quot;, line 680, in <module><br />&nbsp; &nbsp; args.unsigned)<br />&nbsp; File &quot;/home/hurin/counterpartyd/counterpartyd.py&quot;, line 129, in cli<br />&nbsp; &nbsp; unsigned_tx_hex = util.api(method, params)<br />&nbsp; File &quot;/home/hurin/counterpartyd/lib/util.py&quot;, line 47, in api<br />&nbsp; &nbsp; raise exceptions.RPCError('{}'.format(response_json['error']))<br />lib.exceptions.RPCError: {'code': -32000, 'message': 'Server error', 'data': {'message': &quot;'NoneType' object has no attribute 'compose'&quot;, 'args': [&quot;'NoneType' object has no attribute 'compose'&quot;], 'type': 'AttributeError'}}<br />
Traceback (most recent call last):<br />&nbsp; File &quot;/home/hurin/counterpartyd/counterpartyd.py&quot;, line 835, in <module><br />&nbsp; &nbsp; get_address = get_address(db, address=address)<br />TypeError: 'dict' object is not callable<br /><br />

address_data = get_address(db=util.db, address=address)

fixed, pull please.

I upgrade to the newest version, and “balances” command cause a issue.
===================================================
the version is :

commit 243d267843846016718bc288e5e7e49a7a94585a
Author: PhantomPhreak phantomphreak@counterparty.co
Date:  Fri Jun 13 12:25:09 2014 -0400

    update unittest books
===================================================
and the issue is

===================================================
PS C:\Users\OBIU00> counterpartyd balances 112KpVxAb6ysjDqetRM7gx5USPKiwNbmpL

C:\Users\OBIU00>echo off
Traceback (most recent call last):
  File “D:\github\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 791, in
    balances(args.address)
  File “D:\github\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 473, in balances
    address_data = get_address(db, address=address)
  File “D:\github\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 29, in get_address
    address_dict[‘balances’] = util.api(‘get_balances’, {‘filters’: [(‘address’, ‘==’, address),]})
  File “D:\github\counterpartyd_build\dist\counterpartyd\lib\util.py”, line 50, in api
    raise exceptions.RPCError(’{}’.format(response_json[‘error’]))
lib.exceptions.RPCError: {‘message’: ‘Server error’, ‘code’: -32000, ‘data’: {‘message’: “global name ‘a’ is not defined
”, ‘args’: [“global name ‘a’ is not defined”], ‘type’: ‘NameError’}}
PS C:\Users\OBIU00>
=========================================================

[quote author=diaobanxian link=topic=22.msg2662#msg2662 date=1402731271]
I upgrade to the newest version, and “balances” command cause a issue.
===================================================
the version is :

commit 243d267843846016718bc288e5e7e49a7a94585a
Author: PhantomPhreak <phantomphreak@counterparty.co>
Date:  Fri Jun 13 12:25:09 2014 -0400

    update unittest books
===================================================
and the issue is

===================================================
PS C:\Users\OBIU00> counterpartyd balances 112KpVxAb6ysjDqetRM7gx5USPKiwNbmpL

C:\Users\OBIU00>echo off
Traceback (most recent call last):
  File “D:\github\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 791, in
    balances(args.address)
  File “D:\github\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 473, in balances
    address_data = get_address(db, address=address)
  File “D:\github\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 29, in get_address
    address_dict[‘balances’] = util.api(‘get_balances’, {‘filters’: [(‘address’, ‘==’, address),]})
  File “D:\github\counterpartyd_build\dist\counterpartyd\lib\util.py”, line 50, in api
    raise exceptions.RPCError(’{}’.format(response_json[‘error’]))
lib.exceptions.RPCError: {‘message’: ‘Server error’, ‘code’: -32000, ‘data’: {‘message’: “global name ‘a’ is not defined
”, ‘args’: [“global name ‘a’ is not defined”], ‘type’: ‘NameError’}}
PS C:\Users\OBIU00>
=========================================================
[/quote]

Discussion is here: https://github.com/CounterpartyXCP/counterpartyd/issues/123


hi,
I’ve had counterpartyd installed since january and I’ve always managed to update and get it running till now.
I’m not an IT expert so I think I’ll need some help.


counterpartyd is installed on Windows 7 (64-bit).
when I type “counterpartyd server” everything seems fine with counterparty showing latest transaction info.
then when I type “counterpartyd wallet” I get this
c:\\counterpartyd_build>counterpartyd wallet<br /><br /><br />c:\\counterpartyd_build>echo off<br /><br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 1036,<br />in <module><br />&nbsp; &nbsp; address_data = get_address(db, address=address)<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 30, in<br /> get_address<br />&nbsp; &nbsp; address_dict['balances'] = util.api('get_balances', {'filters': [('address',<br /> '==', address),]})<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py&quot;, line 41, in api<br />&nbsp; &nbsp; raise exceptions.RPCError(str(response.status_code) + ' ' + response.reason)<br /><br /><br />lib.exceptions.RPCError: 401 Authorization Required<br /><br /><br />c:\\counterpartyd_build


same if I type “counterpartyd balances” with my address
<br /><br /><br />c:\\counterpartyd_build>echo off<br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 990, i<br />n <module><br />&nbsp; &nbsp; balances(args.address)<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 507, i<br />n balances<br />&nbsp; &nbsp; address_data = get_address(db, address=address)<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 30, in<br /> get_address<br />&nbsp; &nbsp; address_dict['balances'] = util.api('get_balances', {'filters': [('address',<br /> '==', address),]})<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py&quot;, line 41, in api<br />&nbsp; &nbsp; raise exceptions.RPCError(str(response.status_code) + ' ' + response.reason)<br /><br /><br />lib.exceptions.RPCError: 401 Authorization Required


I guess it has something to do with RPC, but I have never touched the .conf file since its creation and counterparty has always worked [size=2]without s[/size]howing this 401 error, so it can’t be some rpc user/password mismatch.


I don’t know if it’s related but after these errors, I tried to install insight for the first time following these instructions, and when I typed “npm install” I got a very long error log:



> base58-native@0.1.2 install c:\\insight-api\ ode_modules\\base58-native<br />> node-gyp rebuild<br /><br /><br /><br /><br />c:\\insight-api\ ode_modules\\base58-native>node &quot;C:\\Program Files\ odejs\ ode_mod<br />ules\ pm\\bin\ ode-gyp-bin\\\\..\\..\ ode_modules\ ode-gyp\\bin\ ode-gyp.js&quot; rebuild<br /><br /><br />Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compi<br />lazione parallela, aggiungere l'opzione &quot;/m&quot;.<br />&nbsp; base58.cc<br />..\\src\\base58.cc(40): warning C4267: 'initializing' : conversion from 'size_t'<br />to 'int', possible loss of data [c:\\insight-api\ ode_modules\\base58-native\\buil<br />d\\base58.vcxproj]<br />..\\src\\base58.cc(80): warning C4244: '=' : conversion from 'unsigned __int64' t<br />o 'unsigned int', possible loss of data [c:\\insight-api\ ode_modules\\base58-nat<br />ive\\build\\base58.vcxproj]<br />C:\\Users\\Federico\\.node-gyp\\0.10.29\\deps\\v8\\include\\v8.h(184): warning C4506: n<br />o definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::<br />Handle<T>)' [c:\\insight-api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]&nbsp; &nbsp; T=v8::Object<br />&nbsp; &nbsp; Creating library c:\\insight-api\ ode_modules\\base58-native\\build\\Release\\b<br />&nbsp; ase58.lib and object c:\\insight-api\ ode_modules\\base58-native\\build\\Release\\<br />&nbsp; base58.exp<br />base58.obj : error LNK2001: unresolved external symbol BN_free [c:\\insight-api\\<br />node_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_num_bits [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_mul [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_add [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_cmp [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_get_word [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_set_word [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_div [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_new [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_bn2bin [c:\\insight-ap<br />i\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_CTX_new [c:\\insight-a<br />pi\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_CTX_free [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_bin2bn [c:\\insight-ap<br />i\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />c:\\insight-api\ ode_modules\\base58-native\\build\\Release\\base58.node : fatal err<br />or LNK1120: 13 unresolved externals [c:\\insight-api\ ode_modules\\base58-native\\<br />build\\base58.vcxproj]<br />gyp ERR! build error<br />gyp ERR! stack Error: `msbuild` failed with exit code: 1<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.onExit (C:\\Program Files\ odejs\ ode_modules\\<br />npm\ ode_modules\ ode-gyp\\lib\\build.js:267:23)<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.emit (events.js:98:17)<br />gyp ERR! stack&nbsp; &nbsp; at Process.ChildProcess._handle.onexit (child_process.js:809:<br />12)<br />gyp ERR! System Windows_NT 6.1.7601<br />gyp ERR! command &quot;node&quot; &quot;C:\\\\Program Files\\\ odejs\\\ ode_modules\\\ pm\\\ ode_modu<br />les\\\ ode-gyp\\\\bin\\\ ode-gyp.js&quot; &quot;rebuild&quot;<br />gyp ERR! cwd c:\\insight-api\ ode_modules\\base58-native<br />gyp ERR! node -v v0.10.29<br />gyp ERR! node-gyp -v v0.13.1<br />gyp ERR! not ok<br /><br /><br /><br /><br /><br /><br />> bignum@0.9.0 install c:\\insight-api\ ode_modules\\bignum<br />> node-gyp configure build<br /><br /><br />|<br />c:\\insight-api\ ode_modules\\bignum>node &quot;C:\\Program Files\ odejs\ ode_modules\ p<br />m\\bin\ ode-gyp-bin\\\\..\\..\ ode_modules\ ode-gyp\\bin\ ode-gyp.js&quot; configure build<br /><br /><br />/<br />Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compi<br />lazione parallela, aggiungere l'opzione &quot;/m&quot;.<br />&nbsp; bignum.cc<br />C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include\\xlocale(323): wa<br />rning C4530: C++ exception handler used, but unwind semantics are not enabled.<br />Specify /EHsc [c:\\insight-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1185): warning C4267:<br /> '=' : conversion from 'size_t' to 'int', possible loss of data [c:\\insight-api<br />\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1202): warning C4267:<br /> '=' : conversion from 'size_t' to 'int', possible loss of data [c:\\insight-api<br />\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1215): warning C4267:<br /> 'initializing' : conversion from 'size_t' to 'int', possible loss of data [c:\\<br />insight-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1229): warning C4267:<br /> 'initializing' : conversion from 'size_t' to 'int', possible loss of data [c:\\<br />insight-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1318): warning C4244:<br /> 'return' : conversion from 'intptr_t' to 'int', possible loss of data [c:\\insi<br />ght-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />..\\bignum.cc(9): fatal error C1083: Cannot open include file: 'openssl/bn.h': N<br />o such file or directory [c:\\insight-api\ ode_modules\\bignum\\build\\bignum.vcxpr<br />oj]<br />gyp ERR! build error<br />gyp ERR! stack Error: `msbuild` failed with exit code: 1<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.onExit (C:\\Program Files\ odejs\ ode_modules\\<br />npm\ ode_modules\ ode-gyp\\lib\\build.js:267:23)<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.emit (events.js:98:17)<br />gyp ERR! stack&nbsp; &nbsp; at Process.ChildProcess._handle.onexit (child_process.js:809:<br />12)<br />gyp ERR! System Windows_NT 6.1.7601<br />gyp ERR! command &quot;node&quot; &quot;C:\\\\Program Files\\\ odejs\\\ ode_modules\\\ pm\\\ ode_modu<br />les\\\ ode-gyp\\\\bin\\\ ode-gyp.js&quot; &quot;configure&quot; &quot;build&quot;<br />gyp ERR! cwd c:\\insight-api\ ode_modules\\bignum<br />gyp ERR! node -v v0.10.29<br />gyp ERR! node-gyp -v v0.13.1<br />gyp ERR! not ok<br />npm ERR! base58-native@0.1.2 install: `node-gyp rebuild`<br />npm ERR! Exit status 1<br />npm ERR!<br />npm ERR! Failed at the base58-native@0.1.2 install script.<br />npm ERR! This is most likely a problem with the base58-native package,<br />npm ERR! not with npm itself.<br />npm ERR! Tell the author that this fails on your system:<br />npm ERR!&nbsp; &nbsp; node-gyp rebuild<br />npm ERR! You can get their info via:<br />npm ERR!&nbsp; &nbsp; npm owner ls base58-native<br />npm ERR! There is likely additional logging output above.<br />npm ERR! System Windows_NT 6.1.7601<br />npm ERR! command &quot;C:\\\\Program Files\\\ odejs\\\\\\\ ode.exe&quot; &quot;C:\\\\Program Files\\\ od<br />ejs\\\ ode_modules\\\ pm\\\\bin\\\ pm-cli.js&quot; &quot;install&quot;<br />npm ERR! cwd c:\\insight-api<br />npm ERR! node -v v0.10.29<br />npm ERR! npm -v 1.4.14<br />npm ERR! code ELIFECYCLE<br /><br /><br /><br /><br />> bignum@0.6.2 install c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum<br />> node-gyp configure build<br /><br /><br />\\<br />c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum>node &quot;C:\\Program Files\ <br />odejs\ ode_modules\ pm\\bin\ ode-gyp-bin\\\\..\\..\ ode_modules\ ode-gyp\\bin\ ode-gy<br />p.js&quot; configure build<br />Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compi<br />lazione parallela, aggiungere l'opzione &quot;/m&quot;.<br />&nbsp; bignum.cc<br />C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include\\xlocale(323): wa<br />rning C4530: C++ exception handler used, but unwind semantics are not enabled.<br />Specify /EHsc [c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum\\build\\bi<br />gnum.vcxproj]<br />..\\bignum.cc(10): fatal error C1083: Cannot open include file: 'openssl/bn.h':<br />No such file or directory [c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\big<br />num\\build\\bignum.vcxproj]<br />gyp ERR! build error<br />gyp ERR! stack Error: `msbuild` failed with exit code: 1<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.onExit (C:\\Program Files\ odejs\ ode_modules\\<br />npm\ ode_modules\ ode-gyp\\lib\\build.js:267:23)<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.emit (events.js:98:17)<br />gyp ERR! stack&nbsp; &nbsp; at Process.ChildProcess._handle.onexit (child_process.js:809:<br />12)<br />gyp ERR! System Windows_NT 6.1.7601<br />gyp ERR! command &quot;node&quot; &quot;C:\\\\Program Files\\\ odejs\\\ ode_modules\\\ pm\\\ ode_modu<br />les\\\ ode-gyp\\\\bin\\\ ode-gyp.js&quot; &quot;configure&quot; &quot;build&quot;<br />gyp ERR! cwd c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum<br />gyp ERR! node -v v0.10.29<br />gyp ERR! node-gyp -v v0.13.1<br />gyp ERR! not ok<br />npm ERR!<br />npm ERR! Additional logging details can be found in:<br />npm ERR!&nbsp; &nbsp; c:\\insight-api\ pm-debug.log<br />npm ERR! not ok code 0<br />


so when I tried “node C:\insight-api\insight.js” I got this:
<br />module.js:340<br />&nbsp; &nbsp; throw err;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br />Error: Cannot find module 'bitcore'<br />&nbsp; &nbsp; at Function.Module._resolveFilename (module.js:338:15)<br />&nbsp; &nbsp; at Function.Module._load (module.js:280:25)<br />&nbsp; &nbsp; at Module.require (module.js:364:17)<br />&nbsp; &nbsp; at require (module.js:380:17)<br />&nbsp; &nbsp; at Object.<anonymous> (C:\\insight-api\\lib\\PeerSync.js:3:19)<br />&nbsp; &nbsp; at Module._compile (module.js:456:26)<br />&nbsp; &nbsp; at Object.Module._extensions..js (module.js:474:10)<br />&nbsp; &nbsp; at Module.load (module.js:356:32)<br />&nbsp; &nbsp; at Function.Module._load (module.js:312:12)<br />&nbsp; &nbsp; at Module.require (module.js:364:17)<br />

[quote author=asked link=topic=22.msg2787#msg2787 date=1404427309]

hi,
I’ve had counterpartyd installed since january and I’ve always managed to update and get it running till now.
I’m not an IT expert so I think I’ll need some help.


counterpartyd is installed on Windows 7 (64-bit).
when I type “counterpartyd server” everything seems fine with counterparty showing latest transaction info.
then when I type “counterpartyd wallet” I get this
c:\\counterpartyd_build>counterpartyd wallet<br /><br /><br />c:\\counterpartyd_build>echo off<br /><br /><br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 1036,<br />in <module><br />&nbsp; &nbsp; address_data = get_address(db, address=address)<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 30, in<br /> get_address<br />&nbsp; &nbsp; address_dict['balances'] = util.api('get_balances', {'filters': [('address',<br /> '==', address),]})<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py&quot;, line 41, in api<br />&nbsp; &nbsp; raise exceptions.RPCError(str(response.status_code) + ' ' + response.reason)<br /><br /><br />lib.exceptions.RPCError: 401 Authorization Required<br /><br /><br />c:\\counterpartyd_build


same if I type “counterpartyd balances” with my address
<br /><br /><br />c:\\counterpartyd_build>echo off<br />Traceback (most recent call last):<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 990, i<br />n <module><br />&nbsp; &nbsp; balances(args.address)<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 507, i<br />n balances<br />&nbsp; &nbsp; address_data = get_address(db, address=address)<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 30, in<br /> get_address<br />&nbsp; &nbsp; address_dict['balances'] = util.api('get_balances', {'filters': [('address',<br /> '==', address),]})<br />&nbsp; File &quot;c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py&quot;, line 41, in api<br />&nbsp; &nbsp; raise exceptions.RPCError(str(response.status_code) + ' ' + response.reason)<br /><br /><br />lib.exceptions.RPCError: 401 Authorization Required


I guess it has something to do with RPC, but I have never touched the .conf file since its creation and counterparty has always worked [size=1em]without s[/size]howing this 401 error, so it can’t be some rpc user/password mismatch.


I don’t know if it’s related but after these errors, I tried to install insight for the first time following these instructions, and when I typed “npm install” I got a very long error log:



> base58-native@0.1.2 install c:\\insight-api\ ode_modules\\base58-native<br />> node-gyp rebuild<br /><br /><br /><br /><br />c:\\insight-api\ ode_modules\\base58-native>node &quot;C:\\Program Files\ odejs\ ode_mod<br />ules\ pm\\bin\ ode-gyp-bin\\\\..\\..\ ode_modules\ ode-gyp\\bin\ ode-gyp.js&quot; rebuild<br /><br /><br />Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compi<br />lazione parallela, aggiungere l'opzione &quot;/m&quot;.<br />&nbsp; base58.cc<br />..\\src\\base58.cc(40): warning C4267: 'initializing' : conversion from 'size_t'<br />to 'int', possible loss of data [c:\\insight-api\ ode_modules\\base58-native\\buil<br />d\\base58.vcxproj]<br />..\\src\\base58.cc(80): warning C4244: '=' : conversion from 'unsigned __int64' t<br />o 'unsigned int', possible loss of data [c:\\insight-api\ ode_modules\\base58-nat<br />ive\\build\\base58.vcxproj]<br />C:\\Users\\Federico\\.node-gyp\\0.10.29\\deps\\v8\\include\\v8.h(184): warning C4506: n<br />o definition for inline function 'v8::Persistent<T> v8::Persistent<T>::New(v8::<br />Handle<T>)' [c:\\insight-api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; with<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ]&nbsp; &nbsp; T=v8::Object<br />&nbsp; &nbsp; Creating library c:\\insight-api\ ode_modules\\base58-native\\build\\Release\\b<br />&nbsp; ase58.lib and object c:\\insight-api\ ode_modules\\base58-native\\build\\Release\\<br />&nbsp; base58.exp<br />base58.obj : error LNK2001: unresolved external symbol BN_free [c:\\insight-api\\<br />node_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_num_bits [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_mul [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_add [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_cmp [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_get_word [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_set_word [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_div [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_new [c:\\insight-api\ <br />ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_bn2bin [c:\\insight-ap<br />i\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_CTX_new [c:\\insight-a<br />pi\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_CTX_free [c:\\insight-<br />api\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />base58.obj : error LNK2001: unresolved external symbol BN_bin2bn [c:\\insight-ap<br />i\ ode_modules\\base58-native\\build\\base58.vcxproj]<br />c:\\insight-api\ ode_modules\\base58-native\\build\\Release\\base58.node : fatal err<br />or LNK1120: 13 unresolved externals [c:\\insight-api\ ode_modules\\base58-native\\<br />build\\base58.vcxproj]<br />gyp ERR! build error<br />gyp ERR! stack Error: `msbuild` failed with exit code: 1<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.onExit (C:\\Program Files\ odejs\ ode_modules\\<br />npm\ ode_modules\ ode-gyp\\lib\\build.js:267:23)<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.emit (events.js:98:17)<br />gyp ERR! stack&nbsp; &nbsp; at Process.ChildProcess._handle.onexit (child_process.js:809:<br />12)<br />gyp ERR! System Windows_NT 6.1.7601<br />gyp ERR! command &quot;node&quot; &quot;C:\\\\Program Files\\\ odejs\\\ ode_modules\\\ pm\\\ ode_modu<br />les\\\ ode-gyp\\\\bin\\\ ode-gyp.js&quot; &quot;rebuild&quot;<br />gyp ERR! cwd c:\\insight-api\ ode_modules\\base58-native<br />gyp ERR! node -v v0.10.29<br />gyp ERR! node-gyp -v v0.13.1<br />gyp ERR! not ok<br /><br /><br /><br /><br /><br /><br />> bignum@0.9.0 install c:\\insight-api\ ode_modules\\bignum<br />> node-gyp configure build<br /><br /><br />|<br />c:\\insight-api\ ode_modules\\bignum>node &quot;C:\\Program Files\ odejs\ ode_modules\ p<br />m\\bin\ ode-gyp-bin\\\\..\\..\ ode_modules\ ode-gyp\\bin\ ode-gyp.js&quot; configure build<br /><br /><br />/<br />Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compi<br />lazione parallela, aggiungere l'opzione &quot;/m&quot;.<br />&nbsp; bignum.cc<br />C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include\\xlocale(323): wa<br />rning C4530: C++ exception handler used, but unwind semantics are not enabled.<br />Specify /EHsc [c:\\insight-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1185): warning C4267:<br /> '=' : conversion from 'size_t' to 'int', possible loss of data [c:\\insight-api<br />\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1202): warning C4267:<br /> '=' : conversion from 'size_t' to 'int', possible loss of data [c:\\insight-api<br />\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1215): warning C4267:<br /> 'initializing' : conversion from 'size_t' to 'int', possible loss of data [c:\\<br />insight-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1229): warning C4267:<br /> 'initializing' : conversion from 'size_t' to 'int', possible loss of data [c:\\<br />insight-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />c:\\insight-api\ ode_modules\\bignum\ ode_modules\ an\ an.h(1318): warning C4244:<br /> 'return' : conversion from 'intptr_t' to 'int', possible loss of data [c:\\insi<br />ght-api\ ode_modules\\bignum\\build\\bignum.vcxproj]<br />..\\bignum.cc(9): fatal error C1083: Cannot open include file: 'openssl/bn.h': N<br />o such file or directory [c:\\insight-api\ ode_modules\\bignum\\build\\bignum.vcxpr<br />oj]<br />gyp ERR! build error<br />gyp ERR! stack Error: `msbuild` failed with exit code: 1<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.onExit (C:\\Program Files\ odejs\ ode_modules\\<br />npm\ ode_modules\ ode-gyp\\lib\\build.js:267:23)<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.emit (events.js:98:17)<br />gyp ERR! stack&nbsp; &nbsp; at Process.ChildProcess._handle.onexit (child_process.js:809:<br />12)<br />gyp ERR! System Windows_NT 6.1.7601<br />gyp ERR! command &quot;node&quot; &quot;C:\\\\Program Files\\\ odejs\\\ ode_modules\\\ pm\\\ ode_modu<br />les\\\ ode-gyp\\\\bin\\\ ode-gyp.js&quot; &quot;configure&quot; &quot;build&quot;<br />gyp ERR! cwd c:\\insight-api\ ode_modules\\bignum<br />gyp ERR! node -v v0.10.29<br />gyp ERR! node-gyp -v v0.13.1<br />gyp ERR! not ok<br />npm ERR! base58-native@0.1.2 install: `node-gyp rebuild`<br />npm ERR! Exit status 1<br />npm ERR!<br />npm ERR! Failed at the base58-native@0.1.2 install script.<br />npm ERR! This is most likely a problem with the base58-native package,<br />npm ERR! not with npm itself.<br />npm ERR! Tell the author that this fails on your system:<br />npm ERR!&nbsp; &nbsp; node-gyp rebuild<br />npm ERR! You can get their info via:<br />npm ERR!&nbsp; &nbsp; npm owner ls base58-native<br />npm ERR! There is likely additional logging output above.<br />npm ERR! System Windows_NT 6.1.7601<br />npm ERR! command &quot;C:\\\\Program Files\\\ odejs\\\\\\\ ode.exe&quot; &quot;C:\\\\Program Files\\\ od<br />ejs\\\ ode_modules\\\ pm\\\\bin\\\ pm-cli.js&quot; &quot;install&quot;<br />npm ERR! cwd c:\\insight-api<br />npm ERR! node -v v0.10.29<br />npm ERR! npm -v 1.4.14<br />npm ERR! code ELIFECYCLE<br /><br /><br /><br /><br />> bignum@0.6.2 install c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum<br />> node-gyp configure build<br /><br /><br />\\<br />c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum>node &quot;C:\\Program Files\ <br />odejs\ ode_modules\ pm\\bin\ ode-gyp-bin\\\\..\\..\ ode_modules\ ode-gyp\\bin\ ode-gy<br />p.js&quot; configure build<br />Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compi<br />lazione parallela, aggiungere l'opzione &quot;/m&quot;.<br />&nbsp; bignum.cc<br />C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include\\xlocale(323): wa<br />rning C4530: C++ exception handler used, but unwind semantics are not enabled.<br />Specify /EHsc [c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum\\build\\bi<br />gnum.vcxproj]<br />..\\bignum.cc(10): fatal error C1083: Cannot open include file: 'openssl/bn.h':<br />No such file or directory [c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\big<br />num\\build\\bignum.vcxproj]<br />gyp ERR! build error<br />gyp ERR! stack Error: `msbuild` failed with exit code: 1<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.onExit (C:\\Program Files\ odejs\ ode_modules\\<br />npm\ ode_modules\ ode-gyp\\lib\\build.js:267:23)<br />gyp ERR! stack&nbsp; &nbsp; at ChildProcess.emit (events.js:98:17)<br />gyp ERR! stack&nbsp; &nbsp; at Process.ChildProcess._handle.onexit (child_process.js:809:<br />12)<br />gyp ERR! System Windows_NT 6.1.7601<br />gyp ERR! command &quot;node&quot; &quot;C:\\\\Program Files\\\ odejs\\\ ode_modules\\\ pm\\\ ode_modu<br />les\\\ ode-gyp\\\\bin\\\ ode-gyp.js&quot; &quot;configure&quot; &quot;build&quot;<br />gyp ERR! cwd c:\\insight-api\ ode_modules\\bitcore\ ode_modules\\bignum<br />gyp ERR! node -v v0.10.29<br />gyp ERR! node-gyp -v v0.13.1<br />gyp ERR! not ok<br />npm ERR!<br />npm ERR! Additional logging details can be found in:<br />npm ERR!&nbsp; &nbsp; c:\\insight-api\ pm-debug.log<br />npm ERR! not ok code 0<br />


so when I tried “node C:\insight-api\insight.js” I got this:
<br />module.js:340<br />&nbsp; &nbsp; throw err;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^<br />Error: Cannot find module 'bitcore'<br />&nbsp; &nbsp; at Function.Module._resolveFilename (module.js:338:15)<br />&nbsp; &nbsp; at Function.Module._load (module.js:280:25)<br />&nbsp; &nbsp; at Module.require (module.js:364:17)<br />&nbsp; &nbsp; at require (module.js:380:17)<br />&nbsp; &nbsp; at Object.<anonymous> (C:\\insight-api\\lib\\PeerSync.js:3:19)<br />&nbsp; &nbsp; at Module._compile (module.js:456:26)<br />&nbsp; &nbsp; at Object.Module._extensions..js (module.js:474:10)<br />&nbsp; &nbsp; at Module.load (module.js:356:32)<br />&nbsp; &nbsp; at Function.Module._load (module.js:312:12)<br />&nbsp; &nbsp; at Module.require (module.js:364:17)<br />
[/quote]

I think that this problem might have been fixed very recently. Download the latest version and try again.

If that doesn’t work, try adding this to the config file:
backend-rpc-password = PASSWORD

Hi, I get the following error when I try to start counterpartyd

Status: Running v9.42.0 of counterpartyd.
Status: Connecting to database.
Status: Checking version.
Status: Connecting to block explorer.
Status: New database.
Traceback (most recent call last):
  File "/home/little/counterpartyd_build/dist/counterpartyd/counterpartyd.py", line 1116, in
    blocks.follow(db)
  File "/home/little/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 1044, in follow
    block_count = bitcoin.get_block_count()
  File "/home/little/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py", line 44, in get_block_count
    return int(rpc('getblockcount', []))
  File "/home/little/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py", line 144, in rpc
    raise exceptions.BitcoindRPCError(str(response.status_code) + ' ' + response.reason)
lib.exceptions.BitcoindRPCError: 401 Authorization Required

does anybody have any suggestions?

thanks

[quote author=lm76 link=topic=22.msg3466#msg3466 date=1411078613]
Hi, I get the following error when I try to start counterpartyd

Status: Running v9.42.0 of counterpartyd.
Status: Connecting to database.
Status: Checking version.
Status: Connecting to block explorer.
Status: New database.
Traceback (most recent call last):
  File "/home/little/counterpartyd_build/dist/counterpartyd/counterpartyd.py", line 1116, in
    blocks.follow(db)
  File "/home/little/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 1044, in follow
    block_count = bitcoin.get_block_count()
  File "/home/little/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py", line 44, in get_block_count
    return int(rpc('getblockcount', []))
  File "/home/little/counterpartyd_build/dist/counterpartyd/lib/bitcoin.py", line 144, in rpc
    raise exceptions.BitcoindRPCError(str(response.status_code) + ' ' + response.reason)
lib.exceptions.BitcoindRPCError: 401 Authorization Required

does anybody have any suggestions?

thanks
[/quote]


It tells you your password is incorrect.
Start with bitcoin.conf and counterpartyd.con settings based on this document ("Editing the Config"), then change them once you understand them.
http://counterpartyd-build.readthedocs.org/en/latest/AdditionalTopics.html
and
http://counterpartyd-build.readthedocs.org/en/latest/SettingUpBitcoind.html

thanks so much issued solved, the counterpartyd config file was not correct.

Hi, I installed counterpartyd back in January and managed to burn Bitcoin to get XCP. I’ve just tried to start it again now and it gets stuck at block 280807, which I found to be an error requiring updating to the latest version. I tried updating using the following instructions I had saved on my machine in January:
Updating to the newest source

As the code is enhanced and improved on Github, you can refresh your local copy of the repositories like so:

cd C:\counterpartyd_build
git pull origin master
cd C:\counterpartyd_build\dist\counterpartyd
git pull origin master

The resulted in some errors, so I followed the instructions on this page and installed all of the prerequisites listed http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#id1

When I get to running this command

C:\\Python33\\python.exe setup.py --with-bootstrap-db<br>



it bails out with this:

C:\\counterpartyd_build>C:\\Python33\\python.exe setup.py --with-bootstrap-db<br>2014-10-11 21:44:07,372|DEBUG: base path: 'C:\\counterpartyd_build'<br>2014-10-11 21:44:07,403|DEBUG: dist path: 'C:\\counterpartyd_build\\dist'<br>2014-10-11 21:44:07,403|DEBUG: env path: 'C:\\counterpartyd_build\\env'<br>2014-10-11 21:44:07,418|DEBUG: bin path: 'C:\\counterpartyd_build\\bin'<br>2014-10-11 21:44:07,418|INFO: Installing Counterparty from source...<br>The system cannot find the path specified.<br>Traceback (most recent call last):<br>  File "C:\\counterpartyd_build\\setup_util.py", line 99, in git_repo_clone<br>    % repo_dest_dir, shell=True).strip().decode('utf-8')<br>  File "C:\\Python33\\lib\\subprocess.py", line 589, in check_output<br>    raise CalledProcessError(retcode, process.args, output=output)<br>subprocess.CalledProcessError: Command 'cd C:\\counterpartyd_build\\dist\\counterpa<br>rtyd &amp;&amp; git rev-parse --abbrev-ref HEAD' returned non-zero exit status 1<br><br>During handling of the above exception, another exception occurred:<br><br>Traceback (most recent call last):<br>  File "setup.py", line 467, in <module><br>    main()<br>  File "setup.py", line 458, in main<br>    checkout(branch, paths, run_as_user, with_counterblockd, command == "update"<br>)<br>  File "setup.py", line 123, in checkout<br>    os.path.join(paths['dist_path'], "counterpartyd"), branch=branch, for_user=r<br>un_as_user)<br>  File "C:\\counterpartyd_build\\setup_util.py", line 101, in git_repo_clone<br>    raise Exception("Cannot get current get branch for %s." % repo_name)<br>Exception: Cannot get current get branch for counterpartyd.<br>

I don’t really know what I’m doing but just need to get the coins off the machine and into counterwallet. Is there a way to scrap the counterparty code and database etc I have and build it from scratch? I’ve also had error messages about files not managing to merge when I tried the updates. Thanks

If you know the addresses that hold your XCP, you can use ‘bitcoind dumpprivkey’ on those addresses to get their private keys. Then you can sweep the XCP into a new counterwallet (https://counterwallet.io) to regain access to them.