Counterpartyd: Technical support thread

This thread is for issues related to counterpartyd itself.


For problems building and installing counterpartyd, please go here: https://forums.counterparty.co/index.php/topic,13.0.html

[font=verdana][size=13px]When trying to run "counterpartyd.exe server" on my windows machine, I get the following from the install via the installer binary:[/size][/font][font=verdana][/size][/font]<br /><br />D:\\Tools\\counterpartyd>counterpartyd.exe server<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 1/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 2/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 3/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 4/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 5/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 6/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 7/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 8/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 9/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 10/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 11/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 12/12)<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\Python32\\lib\\site-packages\\cx_Freeze\\initscripts\\Console3.py&quot;, line 2<br />7, in <module><br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 720, i<br />n <module><br />lib.exceptions.ZeroMQError: Timeout.[font=verdana][size=13px]
And the following when trying to run it after installing it from source:
[/size][/font]<br /><br /><br />D:\\Development\\counterpartyd_build>echo off<br />Traceback (most recent call last):<br />&nbsp; File &quot;D:\\Development\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;,<br /> line 22, in <module><br />&nbsp; &nbsp; from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)<br />&nbsp; File &quot;D:\\Development\\counterpartyd_build\\dist\\counterpartyd\\lib\\zeromq.py&quot;, li<br />ne 14, in <module><br />&nbsp; &nbsp; import zmq<br />ImportError: No module named zmq<br />[font=verdana][size=13px]Seems there is some ZeroMQ Problem in both cases? Can somebody help me with this?[/size][/font]

[quote author=physx link=topic=22.msg62#msg62 date=1391442366]
[font=verdana][size=13px]When trying to run "counterpartyd.exe server" on my windows machine, I get the following from the install via the installer binary:[/size][/font]<br /><br />D:\\Tools\\counterpartyd>counterpartyd.exe server<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 1/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 2/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 3/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 4/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 5/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 6/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 7/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 8/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 9/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 10/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 11/12)<br />ØMQ publisher not active. Sleeping for 0.25 seconds. (Try 12/12)<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\Python32\\lib\\site-packages\\cx_Freeze\\initscripts\\Console3.py&quot;, line 2<br />7, in <module><br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 720, i<br />n <module><br />lib.exceptions.ZeroMQError: Timeout.[font=verdana][size=13px]
And the following when trying to run it after installing it from source:
[/size][/font]<br /><br /><br />D:\\Development\\counterpartyd_build>echo off<br />Traceback (most recent call last):<br />&nbsp; File &quot;D:\\Development\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;,<br /> line 22, in <module><br />&nbsp; &nbsp; from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)<br />&nbsp; File &quot;D:\\Development\\counterpartyd_build\\dist\\counterpartyd\\lib\\zeromq.py&quot;, li<br />ne 14, in <module><br />&nbsp; &nbsp; import zmq<br />ImportError: No module named zmq<br />[font=verdana][size=13px]Seems there is some ZeroMQ Problem in both cases? Can somebody help me with this?[/size][/font]
[/quote]


Yes, I had prematurely removed a dependency from the documentation. Sorry about that. Please check out http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#id1 again and note the "pyzmq" dependency. Download and install that.


Phantom should be pushing up a new counterpartyd without the zmq dependency today or tomorrow, and the docs will be updated at that time.

Thanks a lot, works now  :slight_smile:

Anyone know how to fix this bug?

<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 585, i<br />n <module><br />&nbsp; &nbsp; json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 315, in<br />transmit<br />&nbsp; &nbsp; return rpc('sendrawtransaction', [signed_tx_hex])<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 69, in r<br />pc<br />&nbsp; &nbsp; raise exceptions.BitcoindError('{}'.format(response_json['error']))<br />lib.exceptions.BitcoindError: {'message': 'TX rejected', 'code': -22}<br /><br />C:\\counterpartyd_build>


edit: this issue is caused when you send a tx from your xcp address, the balance will go to a change address in bitcoin-qt. you have to resend the coins to your xcp address, and then it will send properly.

Its best to send lots of outputs as 0.0003172 to your XCP address, so change addresses won’t be created


<br />c:\\counterpartyd_build>c:\\python32\\python.exe setup.py<br />2014-02-04 08:04:22,448|DEBUG: base path: 'c:\\counterpartyd_build'<br />2014-02-04 08:04:22,451|DEBUG: dist path: 'c:\\counterpartyd_build\\dist'<br />2014-02-04 08:04:22,451|DEBUG: env path: 'c:\\counterpartyd_build\\env'<br />2014-02-04 08:04:22,451|DEBUG: bin path: 'c:\\counterpartyd_build\\bin'<br />2014-02-04 08:04:22,453|INFO: Installing Counterparty from source...<br />2014-02-04 08:04:23,124|INFO: Checking out/updating counterpartyd:master from gi<br />t...<br />2014-02-04 08:04:23,125|DEBUG: RUNNING COMMAND: cd &quot;c:\\counterpartyd_build\\dist\\<br />counterpartyd&quot; &amp;&amp; git pull origin master<br />From https://github.com/PhantomPhreak/counterpartyd<br /> * branch&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; master&nbsp; &nbsp; -> FETCH_HEAD<br />Already up-to-date.<br />2014-02-04 08:04:26,660|INFO: WINDOWS: Installing Required Packages...<br />2014-02-04 08:04:26,660|DEBUG: RUNNING COMMAND: c:\\python32\\Scripts\\easy_install<br />.exe virtualenv==1.10.1 pip==1.4.1<br />Searching for virtualenv==1.10.1<br />Best match: virtualenv 1.10.1<br />Processing virtualenv-1.10.1-py3.2.egg<br />virtualenv 1.10.1 is already the active version in easy-install.pth<br />Installing virtualenv-script.py script to c:\\python32\\Scripts<br />Installing virtualenv.exe script to c:\\python32\\Scripts<br />Installing virtualenv-3.2-script.py script to c:\\python32\\Scripts<br />Installing virtualenv-3.2.exe script to c:\\python32\\Scripts<br /><br /><br />Using c:\\python32\\lib\\site-packages\\virtualenv-1.10.1-py3.2.egg<br />Processing dependencies for virtualenv==1.10.1<br />Finished processing dependencies for virtualenv==1.10.1<br />Searching for pip==1.4.1<br />Best match: pip 1.4.1<br />Processing pip-1.4.1-py3.2.egg<br />pip 1.4.1 is already the active version in easy-install.pth<br />Installing pip-script.py script to c:\\python32\\Scripts<br />Installing pip.exe script to c:\\python32\\Scripts<br />Installing pip-3.2-script.py script to c:\\python32\\Scripts<br />Installing pip-3.2.exe script to c:\\python32\\Scripts<br /><br /><br />Using c:\\python32\\lib\\site-packages\\pip-1.4.1-py3.2.egg<br />Processing dependencies for pip==1.4.1<br />Finished processing dependencies for pip==1.4.1<br />2014-02-04 08:04:29,095|DEBUG: RUNNING COMMAND: c:\\python32\\Scripts\\pip.exe inst<br />all appdirs==1.2.0<br />Requirement already satisfied (use --upgrade to upgrade): appdirs==1.2.0 in c:\\p<br />ython32\\lib\\site-packages<br />Cleaning up...<br />2014-02-04 08:04:30,650|WARNING: Deleting existing virtualenv...<br />Traceback (most recent call last):<br />&nbsp; File &quot;setup.py&quot;, line 488, in <module><br />&nbsp; &nbsp; main()<br />&nbsp; File &quot;setup.py&quot;, line 479, in main<br />&nbsp; &nbsp; create_virtualenv(paths, with_counterwalletd)<br />&nbsp; File &quot;setup.py&quot;, line 277, in create_virtualenv<br />&nbsp; &nbsp; create_venv(paths['env_path'], paths['pip_path'], paths['python_path'], path<br />s['virtualenv_args'], 'reqs.txt')<br />&nbsp; File &quot;setup.py&quot;, line 264, in create_venv<br />&nbsp; &nbsp; _rmtree(env_path)<br />&nbsp; File &quot;setup.py&quot;, line 67, in _rmtree<br />&nbsp; &nbsp; _rmtree(fullpath)<br />&nbsp; File &quot;setup.py&quot;, line 65, in _rmtree<br />&nbsp; &nbsp; rmgeneric(fullpath, f)<br />&nbsp; File &quot;setup.py&quot;, line 49, in rmgeneric<br />&nbsp; &nbsp; import win32api, win32con<br />ImportError: No module named win32api<br /><br />c:\\counterpartyd_build>[font=verdana][font=Verdana]


What does the error mean - ‘ImportError: No module named win32api’? How to fix it?[/font][/font]

[quote author=520Bit link=topic=22.msg77#msg77 date=1391474039]

<br />c:\\counterpartyd_build>c:\\python32\\python.exe setup.py<br />2014-02-04 08:04:22,448|DEBUG: base path: 'c:\\counterpartyd_build'<br />2014-02-04 08:04:22,451|DEBUG: dist path: 'c:\\counterpartyd_build\\dist'<br />2014-02-04 08:04:22,451|DEBUG: env path: 'c:\\counterpartyd_build\\env'<br />2014-02-04 08:04:22,451|DEBUG: bin path: 'c:\\counterpartyd_build\\bin'<br />2014-02-04 08:04:22,453|INFO: Installing Counterparty from source...<br />2014-02-04 08:04:23,124|INFO: Checking out/updating counterpartyd:master from gi<br />t...<br />2014-02-04 08:04:23,125|DEBUG: RUNNING COMMAND: cd &quot;c:\\counterpartyd_build\\dist\\<br />counterpartyd&quot; &amp;&amp; git pull origin master<br />From https://github.com/PhantomPhreak/counterpartyd<br /> * branch&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; master&nbsp; &nbsp; -> FETCH_HEAD<br />Already up-to-date.<br />2014-02-04 08:04:26,660|INFO: WINDOWS: Installing Required Packages...<br />2014-02-04 08:04:26,660|DEBUG: RUNNING COMMAND: c:\\python32\\Scripts\\easy_install<br />.exe virtualenv==1.10.1 pip==1.4.1<br />Searching for virtualenv==1.10.1<br />Best match: virtualenv 1.10.1<br />Processing virtualenv-1.10.1-py3.2.egg<br />virtualenv 1.10.1 is already the active version in easy-install.pth<br />Installing virtualenv-script.py script to c:\\python32\\Scripts<br />Installing virtualenv.exe script to c:\\python32\\Scripts<br />Installing virtualenv-3.2-script.py script to c:\\python32\\Scripts<br />Installing virtualenv-3.2.exe script to c:\\python32\\Scripts<br /><br /><br />Using c:\\python32\\lib\\site-packages\\virtualenv-1.10.1-py3.2.egg<br />Processing dependencies for virtualenv==1.10.1<br />Finished processing dependencies for virtualenv==1.10.1<br />Searching for pip==1.4.1<br />Best match: pip 1.4.1<br />Processing pip-1.4.1-py3.2.egg<br />pip 1.4.1 is already the active version in easy-install.pth<br />Installing pip-script.py script to c:\\python32\\Scripts<br />Installing pip.exe script to c:\\python32\\Scripts<br />Installing pip-3.2-script.py script to c:\\python32\\Scripts<br />Installing pip-3.2.exe script to c:\\python32\\Scripts<br /><br /><br />Using c:\\python32\\lib\\site-packages\\pip-1.4.1-py3.2.egg<br />Processing dependencies for pip==1.4.1<br />Finished processing dependencies for pip==1.4.1<br />2014-02-04 08:04:29,095|DEBUG: RUNNING COMMAND: c:\\python32\\Scripts\\pip.exe inst<br />all appdirs==1.2.0<br />Requirement already satisfied (use --upgrade to upgrade): appdirs==1.2.0 in c:\\p<br />ython32\\lib\\site-packages<br />Cleaning up...<br />2014-02-04 08:04:30,650|WARNING: Deleting existing virtualenv...<br />Traceback (most recent call last):<br />&nbsp; File &quot;setup.py&quot;, line 488, in <module><br />&nbsp; &nbsp; main()<br />&nbsp; File &quot;setup.py&quot;, line 479, in main<br />&nbsp; &nbsp; create_virtualenv(paths, with_counterwalletd)<br />&nbsp; File &quot;setup.py&quot;, line 277, in create_virtualenv<br />&nbsp; &nbsp; create_venv(paths['env_path'], paths['pip_path'], paths['python_path'], path<br />s['virtualenv_args'], 'reqs.txt')<br />&nbsp; File &quot;setup.py&quot;, line 264, in create_venv<br />&nbsp; &nbsp; _rmtree(env_path)<br />&nbsp; File &quot;setup.py&quot;, line 67, in _rmtree<br />&nbsp; &nbsp; _rmtree(fullpath)<br />&nbsp; File &quot;setup.py&quot;, line 65, in _rmtree<br />&nbsp; &nbsp; rmgeneric(fullpath, f)<br />&nbsp; File &quot;setup.py&quot;, line 49, in rmgeneric<br />&nbsp; &nbsp; import win32api, win32con<br />ImportError: No module named win32api<br /><br />c:\\counterpartyd_build>[font=verdana][font=Verdana]


What does the error mean - ‘ImportError: No module named win32api’? How to fix it?[/font][/font]
[/quote]


Please ensure you have all of the necessary prerequisite libraries installed: http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#id1


Specifically, you seem to be missing at least the “Python Win32 Extensions” one if you are getting this error.

[quote author=Patel link=topic=22.msg66#msg66 date=1391449225]
Anyone know how to fix this bug?

<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 585, i<br />n <module><br />&nbsp; &nbsp; json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 315, in<br />transmit<br />&nbsp; &nbsp; return rpc('sendrawtransaction', [signed_tx_hex])<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 69, in r<br />pc<br />&nbsp; &nbsp; raise exceptions.BitcoindError('{}'.format(response_json['error']))<br />lib.exceptions.BitcoindError: {'message': 'TX rejected', 'code': -22}<br /><br />C:\\counterpartyd_build>


edit: this issue is caused when you send a tx from your xcp address, the balance will go to a change address in bitcoin-qt. you have to resend the coins to your xcp address, and then it will send properly.

Its best to send lots of outputs as 0.0003172 to your XCP address, so change addresses won’t be created
[/quote]

counterpartyd sends all change to the source address (it doesn’t use Bitcoind to construct any of the outputs). You probably need to wait for the change from your last transaction to confirm.

[quote author=PhantomPhreak link=topic=22.msg82#msg82 date=1391475420]
[quote author=Patel link=topic=22.msg66#msg66 date=1391449225]
Anyone know how to fix this bug?

<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 585, i<br />n <module><br />&nbsp; &nbsp; json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 315, in<br />transmit<br />&nbsp; &nbsp; return rpc('sendrawtransaction', [signed_tx_hex])<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\bitcoin.py&quot;, line 69, in r<br />pc<br />&nbsp; &nbsp; raise exceptions.BitcoindError('{}'.format(response_json['error']))<br />lib.exceptions.BitcoindError: {'message': 'TX rejected', 'code': -22}<br /><br />C:\\counterpartyd_build>


edit: this issue is caused when you send a tx from your xcp address, the balance will go to a change address in bitcoin-qt. you have to resend the coins to your xcp address, and then it will send properly.

Its best to send lots of outputs as 0.0003172 to your XCP address, so change addresses won’t be created
[/quote]

counterpartyd sends all change to the source address (it doesn’t use Bitcoind to construct any of the outputs). You probably need to wait for the change from your last transaction to confirm.
[/quote]


And if you end up getting -22 errors again, please specify the --unsigned option with the command, and send us the hex string that it spits out. We can decode that into a raw unsigned transaction and check it out.


c:\counterpartyd_build>counterpartyd order --from= --get-quantity=10 --get-asset=XCP --give-quantit
y=0.0010 --give-asset=BTC --expiration=2 --fee_provided=0.0001


c:\counterpartyd_build>echo off
Traceback (most recent call last):
  File “c:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 541, in
    args.expiration, fee_required, fee_provided)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\order.py”, line 31, in create
    return bitcoin.transaction(source, None, None, fee_provided, data, test)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 295, in transaction
    transaction = serialise(inputs, destination_output, data_output, change_output, multisig=multisig, source=source)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 174, in serialise
    private_key_wif = rpc(‘dumpprivkey’, [source])
  File “c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 69, in rpc
    raise exceptions.BitcoindError(’{}’.format(response_json[‘error’]))
lib.exceptions.BitcoindError: {‘message’: ‘Private key for address is not known’, ‘code’: -4}


Any ideas?


Thanks

Microsoft Windows [Version 6.1.7600]<br />Copyright (c) 2009 Microsoft Corporation.&nbsp; All rights reserved.<br /><br /><br />C:\\Users\\Peled>cd C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd<br /><br /><br />C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd>counterpartyd send --from<br />1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq --to 1BT4HnPQ2H1htoocaTufzGNXmZP9pa3poj --qua<br />ntity 1 --asset XCP<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\Python32\\lib\\site-packages\\cx_Freeze\\initscripts\\Console3.py&quot;, line 2<br />7, in <module><br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 540, i<br />n <module><br />&nbsp; &nbsp; args.get_asset, get_quantity,<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\send.py&quot;, line 29, in crea<br />te<br />&nbsp; &nbsp; validity = 'Valid'<br />lib.exceptions.SendError: ['insufficient funds']<br /><br />C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd>

[quote author=peled1986 link=topic=22.msg134#msg134 date=1391524051]
Microsoft Windows [Version 6.1.7600]<br />Copyright (c) 2009 Microsoft Corporation.&nbsp; All rights reserved.<br /><br /><br />C:\\Users\\Peled>cd C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd<br /><br /><br />C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd>counterpartyd send --from<br />1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq --to 1BT4HnPQ2H1htoocaTufzGNXmZP9pa3poj --qua<br />ntity 1 --asset XCP<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\Python32\\lib\\site-packages\\cx_Freeze\\initscripts\\Console3.py&quot;, line 2<br />7, in <module><br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 540, i<br />n <module><br />&nbsp; &nbsp; args.get_asset, get_quantity,<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\send.py&quot;, line 29, in crea<br />te<br />&nbsp; &nbsp; validity = 'Valid'<br />lib.exceptions.SendError: ['insufficient funds']<br /><br />C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd>


[font=verdana][size=11px]it says insufficient funds, but the address 1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq  has 1000 XCP [/size][/font][font=verdana][size=11px]link: [color=rgb(71, 108, 142)]http://blockscan.com/balance.aspx?q=1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq[/color][/size][/font]+what am i doing wrong?
[/quote]

I must say, that error has me stumped…

[quote author=PhantomPhreak link=topic=22.msg135#msg135 date=1391525194]
[quote author=peled1986 link=topic=22.msg134#msg134 date=1391524051]
Microsoft Windows [Version 6.1.7600]<br />Copyright (c) 2009 Microsoft Corporation.&nbsp; All rights reserved.<br /><br /><br />C:\\Users\\Peled>cd C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd<br /><br /><br />C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd>counterpartyd send --from<br />1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq --to 1BT4HnPQ2H1htoocaTufzGNXmZP9pa3poj --qua<br />ntity 1 --asset XCP<br />Traceback (most recent call last):<br />&nbsp; File &quot;C:\\Python32\\lib\\site-packages\\cx_Freeze\\initscripts\\Console3.py&quot;, line 2<br />7, in <module><br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py&quot;, line 540, i<br />n <module><br />&nbsp; &nbsp; args.get_asset, get_quantity,<br />&nbsp; File &quot;C:\\counterpartyd_build\\dist\\counterpartyd\\lib\\send.py&quot;, line 29, in crea<br />te<br />&nbsp; &nbsp; validity = 'Valid'<br />lib.exceptions.SendError: ['insufficient funds']<br /><br />C:\\Users\\Peled\\counterpartyd_build\\dist\\counterpartyd>


[font=verdana][size=11px]it says insufficient funds, but the address 1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq  has 1000 XCP [/size][/font][font=verdana][size=11px]link: [color=rgb(71, 108, 142)]http://blockscan.com/balance.aspx?q=1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq[/color][/size][/font]+what am i doing wrong?
[/quote]

I must say, that error has me stumped…
[/quote]


Quoting my PM response for the benefit of folks in the thread:


[font=verdana][size=13px]The problem is probably that you need more BTC at that account (in order to pay the miner’s fees for multisig transactions).[/size][/font]

[font=verdana][size=13px]You have 0.0001.[/size][/font]

[font=verdana][size=13px][color=rgb(71, 108, 142)]https://blockchain.info/address/1EU6VM7zkA9qDw8ReFKHRpSSHJvbuXYNhq[/color][/size][/font]


However, if you look at an address that is succesfully doing sends with counterparty at blockchain.info:


[color=rgb(71, 108, 142)]https://blockchain.info/address/17PgVzRSSSjc2aN8Lyp1x9QayKzPzY2pKj[/color]


You’ll see that making a send takes more than 0.0001 BTC to do.Put a bit more BTC at that address (send something like 0.0004, or 0.001 if you’ll be doing more than a few sends), wait for it to confirm, and try again.

[quote author=trilli0n link=topic=22.msg102#msg102 date=1391489159]

c:\counterpartyd_build>counterpartyd order --from= --get-quantity=10 --get-asset=XCP --give-quantit
y=0.0010 --give-asset=BTC --expiration=2 --fee_provided=0.0001


c:\counterpartyd_build>echo off
Traceback (most recent call last):
  File “c:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 541, in
    args.expiration, fee_required, fee_provided)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\order.py”, line 31, in create
    return bitcoin.transaction(source, None, None, fee_provided, data, test)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 295, in transaction
    transaction = serialise(inputs, destination_output, data_output, change_output, multisig=multisig, source=source)
  File “c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 174, in serialise
    private_key_wif = rpc(‘dumpprivkey’, [source])
  File “c:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py”, line 69, in rpc
    raise exceptions.BitcoindError(’{}’.format(response_json[‘error’]))
lib.exceptions.BitcoindError: {‘message’: ‘Private key for address is not known’, ‘code’: -4}


Any ideas?


Thanks
[/quote]


You need to unlock your wallet first. https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B#Unlock_your_wallet

[font=verdana]Same “insufficient funds” error here. Both addresses have 0.01 BTC and positive XCP balances. Neither can send XCP to the other…[/font]
wallet passphrase is unlocked.
[size=10px]Using the counterpartyd.exe with server running[/size]



[quote]

[size=10px]c[/size][size=10px]ounterpartyd send --from=xxxxxx[/size][size=10px] --to=xxxx --quantity=10 --asset=XCP[/size]
Traceback (most recent call last):
  File “C:\Python32\lib\site-packages\cx_Freeze\initscripts\Console3.py”, line 2
7, in
  File “C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 540, i
n
  File “C:\counterpartyd_build\dist\counterpartyd\lib\send.py”, line 29, in crea
te
[size=10px]lib.exceptions.SendError: [‘insufficient funds’][/size]

[/quote]

???


A side question, is it mandatory to use bitcoind or can you just run bitcoin-qt and unlock the wallet in the console to make send and order commands ?

[quote author=NotSure link=topic=22.msg141#msg141 date=1391534520]
[font=verdana]Same “insufficient funds” error here. Both addresses have 0.01 BTC and positive XCP balances. Neither can send XCP to the other…[/font]
wallet passphrase is unlocked.
[size=10px]Using the counterpartyd.exe with server running[/size]



[quote]

[size=10px]c[/size][size=10px]ounterpartyd send --from=xxxxxx[/size][size=10px] --to=xxxx --quantity=10 --asset=XCP[/size]
Traceback (most recent call last):
  File “C:\Python32\lib\site-packages\cx_Freeze\initscripts\Console3.py”, line 2
7, in
  File “C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 540, i
n
  File “C:\counterpartyd_build\dist\counterpartyd\lib\send.py”, line 29, in crea
te
[size=10px]lib.exceptions.SendError: [‘insufficient funds’][/size]

[/quote]

???


A side question, is it mandatory to use bitcoind or can you just run bitcoin-qt and unlock the wallet in the console to make send and order commands ?
[/quote]


Let me try rebuilding the windows installer. Standby.

[quote author=NotSure link=topic=22.msg141#msg141 date=1391534520]
[font=verdana]Same “insufficient funds” error here. Both addresses have 0.01 BTC and positive XCP balances. Neither can send XCP to the other…[/font]
wallet passphrase is unlocked.
[size=10px]Using the counterpartyd.exe with server running[/size]



[quote]

[size=10px]c[/size][size=10px]ounterpartyd send --from=xxxxxx[/size][size=10px] --to=xxxx --quantity=10 --asset=XCP[/size]
Traceback (most recent call last):
  File “C:\Python32\lib\site-packages\cx_Freeze\initscripts\Console3.py”, line 2
7, in
  File “C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py”, line 540, i
n
  File “C:\counterpartyd_build\dist\counterpartyd\lib\send.py”, line 29, in crea
te
[size=10px]lib.exceptions.SendError: [‘insufficient funds’][/size]

[/quote]

???


A side question, is it mandatory to use bitcoind or can you just run bitcoin-qt and unlock the wallet in the console to make send and order commands ?
[/quote]

You may use Bitcoin-Qt and unlock the wallet in the GUI, if you like, I believe.

Please UNINSTALL counterpartyd (via "Add/Remove Programs" or "Programs and Features" on the control panel), then install the updated version at https://github.com/xnova/counterpartyd_binaries/raw/master/counterpartyd-v0.2-DEV-amd64_install.exe


Let us know if this potential send bug is resolved or still an issue.