Hey guys, please post any problems you’re running into with building or installing counterpartyd from source in this thread, and I or another forum member will attempt to help out. Thanks!
[font=Verdana]For problems USING counterpartyd, please go here: [/font][font=verdana, arial, helvetica, sans-serif]https://forums.counterparty.co/index.php/topic,22.0.html[/font]
Hi I had an order for 2248 xcp for 3 btc. I cancelled the offer but the coins were never returned to the wallet
I used the command ‘[tt]counterpartyd.py cancel --offer-hash=aff5a8d550dec70b6b1497758187d65a2a43733921870bbf5bd25feb311b7e46’[/tt][font=verdana][/font]
[size=1em]I am not a coder, and not surprisingly, my experience installing the Counterparty client Windows 7 machine involved several speed bumps. [/size]
[size=1em]Anyways, I finally got it to work, and for the benefit of other XCP holders, h[/size][size=1em]ere are a few pointers from my experience:[/size]
size=1em Challenge in Importing Private Keys. I did my burning on my blockchain.info account. So I had to import my private keys from blockchain.info into my BitcoinQt client. This went pretty smoothly, except when you select Export Unencrypted from within your Blockchain.info wallet, it is crucial that you select the “Bitcoin-Qt Format” option from the “SELECT PRIVATE KEY FORMAT” dialogue box at the top of this page before you copy the private key from below. If you don’t do this, the default Base 58 option will result in an “Invalid Private Key (Code -5)” error in the Bitcoin-Qt client when you try and perform the >importprivkey “copyandpastetheprivatekeyhere” “name”.[/size]
[size=1em] (2) Setting-up Bitcoin-d. The initial steps of the set-up, http://counterpartyd-build.readthedocs.org/en/latest/SettingUpBitcoind.html, which involved setting-up the Bitcoin.conf file and then, in my case, re-indexing the blockchain, seemed to go OK. No problems.[/size]
(3) Building and Running from Source on Windows - Installing. These steps were no problem. I downloaded the 64 bit version of all of the files. Then in the command window I typed the following commands:
[font=incosolata][size=12px]cd C:\ [/size][/font]
[font=incosolata][size=12px]git clone https://github.com/xnova/counterpartyd_build [/size][/font]
[font=incosolata][size=12px]cd counterpartyd_build [/size][/font]
[font=incosolata][size=12px]C:\Python32\python.exe setup.py[/size][/font]
[size=1em]The installation proceeded without any hickups or problems. It took about 1-2 minutes. At the end I had to answer one question, ie. "Do you want counterpartyd to open automatically on startup. I answered “y” and hit enter. And the process was complete.
(4) Building and Running from Source on Windows - Running. When I tried to run the C:\Python32\python.exe setup.py command I ended up getting an error related to line 397 and line 400 saying that my rpc-port was missing. After consulting with xnova he instructed me to go to the AppData / Counterparty folder and open my counterparty.conf file and insert the number “400” beside the rpc-port. First of all, it was problematic on my Windows 7 machine to find the AppData folder. I went to C:\Users\MyName\ where my AppData folder was supposed to be and couldn’t find it in the list of folders. Then after Googl’ing a bit for a solution I physically typed in C:\Users\MyName\AppData in my Windows Explorer bar and low-and-behold the AppData folder was there and opened. Once inside the Counterparty folder I was able to open counterparty.conf in WordPad. There are two instances of the term rpc-port within this counterparty.conf file, and it was the bottom one that needed to be changed to 4000. Once I made this change and I re-ran the[font=verdana]C:\Python32\python.exe setup.py command it worked without any problems.[/font][/size]
[size=1em][font=verdana]And then … The Moment of Truth! Once I actually got the [/font][/size][size=small][font=verdana]C:\Python32\python.exe setup.py[/font] [/size][size=1em][font=verdana]command to work it was a continual flow of text on the cmd.exe box, like this:[/font][/size]
[size=1em][font=verdana]Block: 279902[/font][/size]
[font=verdana][size=1em]Block: 279903[/size][/font]
[font=verdana][size=1em]Block: 279904[/size][/font]
[font=verdana][size=small]Block: 279905[/size][/font]
[font=verdana][size=small]Burn: xxxxxxxxxxxx(public address)xxxxxxx burned 0.99 BTC for 1348.7778888 XCP[/size][/font]
[font=verdana][size=small]Block: 279906[/size][/font][font=verdana][size=small]etc.[/size][/font]
[font=verdana][size=small]It took quite a while, at least an hour or more, for this step to complete … in fact, it is actually still running so I don’t quite know how long it will go on for…! But it is satisfying to see it chugging away while I type up these notes.[/size][/font]
[font=verdana][size=1em]Good luck to all of you other XCP holders who are trying to set-up Counterpartyd! [/size][/font]
[font=verdana][size=1em]And … Thank you xnova! Thank you phantom phreak! Counterpartyd is such an amazing contribution to the Bitcoin ecosystem - I love you guys![/size][/font]
The Windows installer link is broken
http://counterpartyd-build.readthedocs.org/en/latest/UsingTheInstaller.html
https://github.com/xnova/counterpartyd_binaries/blob/master/counterpartyd-v0.1-amd64_install.exe?raw=true
Could you please, fix it. With the launch of the product and new buyers coming in, we really need this working.
[quote author=Patel link=topic=13.msg28#msg28 date=1391405499]
Hi I had an order for 2248 xcp for 3 btc. I cancelled the offer but the coins were never returned to the wallet
I used the command ‘[tt]counterpartyd.py cancel --offer-hash=aff5a8d550dec70b6b1497758187d65a2a43733921870bbf5bd25feb311b7e46’[/tt]
[/quote]
I know Phantom is working through any order related issues.
If this is still a problem, please post it over at https://forums.counterparty.co/index.php/topic,22.0.html and he can advise.
[quote author=ginko-B link=topic=13.msg29#msg29 date=1391407618]
[size=1em]I am not a coder, and not surprisingly, my experience installing the Counterparty client Windows 7 machine involved several speed bumps. [/size]
[size=1em]Anyways, I finally got it to work, and for the benefit of other XCP holders, h[/size][size=1em]ere are a few pointers from my experience:[/size]
size=1em Challenge in Importing Private Keys. I did my burning on my blockchain.info account. So I had to import my private keys from blockchain.info into my BitcoinQt client. This went pretty smoothly, except when you select Export Unencrypted from within your Blockchain.info wallet, it is crucial that you select the “Bitcoin-Qt Format” option from the “SELECT PRIVATE KEY FORMAT” dialogue box at the top of this page before you copy the private key from below. If you don’t do this, the default Base 58 option will result in an “Invalid Private Key (Code -5)” error in the Bitcoin-Qt client when you try and perform the >importprivkey “copyandpastetheprivatekeyhere” “name”.[/size]
[size=1em] (2) Setting-up Bitcoin-d. The initial steps of the set-up, http://counterpartyd-build.readthedocs.org/en/latest/SettingUpBitcoind.html, which involved setting-up the Bitcoin.conf file and then, in my case, re-indexing the blockchain, seemed to go OK. No problems.[/size]
(3) Building and Running from Source on Windows - Installing. These steps were no problem. I downloaded the 64 bit version of all of the files. Then in the command window I typed the following commands:
[font=incosolata][size=12px]cd C:\ [/size][/font]
[font=incosolata][size=12px]git clone https://github.com/xnova/counterpartyd_build [/size][/font]
[font=incosolata][size=12px]cd counterpartyd_build [/size][/font]
[font=incosolata][size=12px]C:\Python32\python.exe setup.py[/size][/font]
[size=1em]The installation proceeded without any hickups or problems. It took about 1-2 minutes. At the end I had to answer one question, ie. "Do you want counterpartyd to open automatically on startup. I answered “y” and hit enter. And the process was complete.
(4) Building and Running from Source on Windows - Running. When I tried to run the C:\Python32\python.exe setup.py command I ended up getting an error related to line 397 and line 400 saying that my rpc-port was missing. After consulting with xnova he instructed me to go to the AppData / Counterparty folder and open my counterparty.conf file and insert the number “400” beside the rpc-port. First of all, it was problematic on my Windows 7 machine to find the AppData folder. I went to C:\Users\MyName\ where my AppData folder was supposed to be and couldn’t find it in the list of folders. Then after Googl’ing a bit for a solution I physically typed in C:\Users\MyName\AppData in my Windows Explorer bar and low-and-behold the AppData folder was there and opened. Once inside the Counterparty folder I was able to open counterparty.conf in WordPad. There are two instances of the term rpc-port within this counterparty.conf file, and it was the bottom one that needed to be changed to 4000. Once I made this change and I re-ran the[font=verdana]C:\Python32\python.exe setup.py command it worked without any problems.[/font][/size]
[size=1em][font=verdana]And then … The Moment of Truth! Once I actually got the [/font][/size][size=small][font=verdana]C:\Python32\python.exe setup.py[/font] [/size][size=1em][font=verdana]command to work it was a continual flow of text on the cmd.exe box, like this:[/font][/size]
[size=1em][font=verdana]Block: 279902[/font][/size]
[font=verdana][size=1em]Block: 279903[/size][/font]
[font=verdana][size=1em]Block: 279904[/size][/font]
[font=verdana][size=small]Block: 279905[/size][/font]
[font=verdana][size=small]Burn: xxxxxxxxxxxx(public address)xxxxxxx burned 0.99 BTC for 1348.7778888 XCP[/size][/font]
[font=verdana][size=small]Block: 279906[/size][/font][font=verdana][size=small]etc.[/size][/font]
[font=verdana][size=small]It took quite a while, at least an hour or more, for this step to complete … in fact, it is actually still running so I don’t quite know how long it will go on for…! But it is satisfying to see it chugging away while I type up these notes.[/size][/font]
[font=verdana][size=1em]Good luck to all of you other XCP holders who are trying to set-up Counterpartyd! [/size][/font]
[font=verdana][size=1em]And … Thank you xnova! Thank you phantom phreak! Counterpartyd is such an amazing contribution to the Bitcoin ecosystem - I love you guys![/size][/font]
[/quote]
Thank you for your feedback here! Regarding point number 1, any tutorial you could help write with respect to importing keys from blockchain would be more than helpful. If interested, I’d contact cityglut around that first (just to make sure no one else has wrote one). We could put it up on our FAQ or wiki.
Regarding point number 4, I think I have made changes to avoid this being an issue in the future.
[quote author=kdrop20 link=topic=13.msg32#msg32 date=1391411179]
The Windows installer link is broken
http://counterpartyd-build.readthedocs.org/en/latest/UsingTheInstaller.html
https://github.com/xnova/counterpartyd_binaries/blob/master/counterpartyd-v0.1-amd64_install.exe?raw=true
Could you please, fix it. With the launch of the product and new buyers coming in, we really need this working.
[/quote]
This should be fixed. Please recheck and let me know if it’s still an issue for you. I did generate a new installer yesterday.
[quote author=xnova link=topic=13.msg46#msg46 date=1391423634]
[quote author=ginko-B link=topic=13.msg29#msg29 date=1391407618]
[size=1em]I am not a coder, and not surprisingly, my experience installing the Counterparty client Windows 7 machine involved several speed bumps. [/size]
[size=1em]Anyways, I finally got it to work, and for the benefit of other XCP holders, h[/size][size=1em]ere are a few pointers from my experience:[/size]
size=1em Challenge in Importing Private Keys. I did my burning on my blockchain.info account. So I had to import my private keys from blockchain.info into my BitcoinQt client. This went pretty smoothly, except when you select Export Unencrypted from within your Blockchain.info wallet, it is crucial that you select the “Bitcoin-Qt Format” option from the “SELECT PRIVATE KEY FORMAT” dialogue box at the top of this page before you copy the private key from below. If you don’t do this, the default Base 58 option will result in an “Invalid Private Key (Code -5)” error in the Bitcoin-Qt client when you try and perform the >importprivkey “copyandpastetheprivatekeyhere” “name”.[/size]
[size=1em] (2) Setting-up Bitcoin-d. The initial steps of the set-up, http://counterpartyd-build.readthedocs.org/en/latest/SettingUpBitcoind.html, which involved setting-up the Bitcoin.conf file and then, in my case, re-indexing the blockchain, seemed to go OK. No problems.[/size]
(3) Building and Running from Source on Windows - Installing. These steps were no problem. I downloaded the 64 bit version of all of the files. Then in the command window I typed the following commands:
[font=incosolata][size=12px]cd C:\ [/size][/font]
[font=incosolata][size=12px]git clone https://github.com/xnova/counterpartyd_build [/size][/font]
[font=incosolata][size=12px]cd counterpartyd_build [/size][/font]
[font=incosolata][size=12px]C:\Python32\python.exe setup.py[/size][/font]
[size=1em]The installation proceeded without any hickups or problems. It took about 1-2 minutes. At the end I had to answer one question, ie. "Do you want counterpartyd to open automatically on startup. I answered “y” and hit enter. And the process was complete.
(4) Building and Running from Source on Windows - Running. When I tried to run the C:\Python32\python.exe setup.py command I ended up getting an error related to line 397 and line 400 saying that my rpc-port was missing. After consulting with xnova he instructed me to go to the AppData / Counterparty folder and open my counterparty.conf file and insert the number “400” beside the rpc-port. First of all, it was problematic on my Windows 7 machine to find the AppData folder. I went to C:\Users\MyName\ where my AppData folder was supposed to be and couldn’t find it in the list of folders. Then after Googl’ing a bit for a solution I physically typed in C:\Users\MyName\AppData in my Windows Explorer bar and low-and-behold the AppData folder was there and opened. Once inside the Counterparty folder I was able to open counterparty.conf in WordPad. There are two instances of the term rpc-port within this counterparty.conf file, and it was the bottom one that needed to be changed to 4000. Once I made this change and I re-ran the[font=verdana]C:\Python32\python.exe setup.py command it worked without any problems.[/font][/size]
[size=1em][font=verdana]And then … The Moment of Truth! Once I actually got the [/font][/size][size=small][font=verdana]C:\Python32\python.exe setup.py[/font] [/size][size=1em][font=verdana]command to work it was a continual flow of text on the cmd.exe box, like this:[/font][/size]
[size=1em][font=verdana]Block: 279902[/font][/size]
[font=verdana][size=1em]Block: 279903[/size][/font]
[font=verdana][size=1em]Block: 279904[/size][/font]
[font=verdana][size=small]Block: 279905[/size][/font]
[font=verdana][size=small]Burn: xxxxxxxxxxxx(public address)xxxxxxx burned 0.99 BTC for 1348.7778888 XCP[/size][/font]
[font=verdana][size=small]Block: 279906[/size][/font][font=verdana][size=small]etc.[/size][/font]
[font=verdana][size=small]It took quite a while, at least an hour or more, for this step to complete … in fact, it is actually still running so I don’t quite know how long it will go on for…! But it is satisfying to see it chugging away while I type up these notes.[/size][/font]
[font=verdana][size=1em]Good luck to all of you other XCP holders who are trying to set-up Counterpartyd! [/size][/font]
[font=verdana][size=1em]And … Thank you xnova! Thank you phantom phreak! Counterpartyd is such an amazing contribution to the Bitcoin ecosystem - I love you guys![/size][/font]
[/quote]
Thank you for your feedback here! Regarding point number 1, any tutorial you could help write with respect to importing keys from blockchain would be more than helpful. If interested, I’d contact cityglut around that first (just to make sure no one else has wrote one). We could put it up on our FAQ or wiki.
Regarding point number 4, I think I have made changes to avoid this being an issue in the future.
[/quote]
I have made an FAQ: "I burned through blockchain.info, how do I access my XCP?. If anyone has any suggestions for how to improve this FAQ, I would greatly appreciate it!
[quote author=peled1986 link=topic=13.msg72#msg72 date=1391459295]
[quote author=cityglut link=topic=13.msg51#msg51 date=1391425046]
I have made an FAQ: "I burned through blockchain.info, how do I access my XCP?. If anyone has any suggestions for how to improve this FAQ, I would greatly appreciate it!
[/quote]
[size=9pt][font=verdana]great tutorial! worked for me.[/font][/size]
[size=9pt][font=verdana]one suggestion i think most people have the latest bitcoin-QT version [/font][/size]
[size=9pt][font=verdana]it will help people i think if you add a direct link to here: [/font][/size][size=7pt][color=blue]https://en.bitcoin.it/wiki/How_to_import_private_keys_v7%2B[/color][/size]
[size=9pt][font=verdana]it’s better than a link to here:[/font][/size][size=7pt][color=blue]https://en.bitcoin.it/wiki/How_to_import_private_keys[/color][/size][size=9pt] or have both.[/size]
[/quote]
Yeah, I thought about that, as well. I am glad you agree, I will change it accordingly!
I’ve successfully sent an order, but I can’t run all the commands because something is wrong with the parser.
When I issue: counterpartyd -h
I get:<br />Traceback (most recent call last):<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 301, in <module><br /> args = parser.parse_args()<br /> File "c:\\Python32\\Lib\\argparse.py", line 1697, in parse_args<br /> args, argv = self.parse_known_args(args, namespace)<br /> File "c:\\Python32\\Lib\\argparse.py", line 1729, in parse_known_args<br /> namespace, args = self._parse_known_args(args, namespace)<br /> File "c:\\Python32\\Lib\\argparse.py", line 1935, in _parse_known_args<br /> start_index = consume_optional(start_index)<br /> File "c:\\Python32\\Lib\\argparse.py", line 1875, in consume_optional<br /> take_action(action, args, option_string)<br /> File "c:\\Python32\\Lib\\argparse.py", line 1803, in take_action<br /> action(self, namespace, argument_values, option_string)<br /> File "c:\\Python32\\Lib\\argparse.py", line 990, in __call__<br /> parser.print_help()<br /> File "c:\\Python32\\Lib\\argparse.py", line 2341, in print_help<br /> self._print_message(self.format_help(), file)<br /> File "c:\\Python32\\Lib\\argparse.py", line 2355, in _print_message<br /> file.write(message)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 34, in write<br /> self.__convertor.write(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 115, in write<br /> self.write_and_convert(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 142, in write_and_convert<br /> self.write_plain_text(text, cursor, len(text))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 147, in write_plain_text<br /> self.wrapped.write(text[start:end])<br /> File "C:\\counterpartyd_build\\env\\lib\\encodings\\cp437.py", line 19, in encode<br /> return codecs.charmap_encode(input,self.errors,encoding_map)[0]<br />UnicodeEncodeError: 'charmap' codec can't encode character '\\u2010' in position 2613: character maps to <undefined><br />
When I issue: order -h and market -h it works fine.
When I issue: market --get-asset BTC
I get:<br /><br />Open Orders<br />+---------------+------------+--------------+-----------+---------+--------------+--------+-----------+------------<br />----+<br />| Give Quantity | Give Asset | Get Quantity | Get Asset | Price | Price Assets | Fee | Time Left | Tx Ha<br /> |<br />+---------------+------------+--------------+-----------+---------+--------------+--------+-----------+------------<br />----+<br />| 10.0 | XCP | 0.075 | BTC | 0.0075 | BTC/XCP | 0.0001 | 52 | 227085bb...<br />6a7 |<br />| 20.0 | XCP | 0.15 | BTC | 0.0075 | BTC/XCP | 0.0001 | 254 | 77d275c9...<br />be9 |<br />| 80.0 | XCP | 0.6 | BTC | 0.0075 | BTC/XCP | 0.0001 | 455 | a74fef11...<br />b48 |<br />| 776.6745212 | XCP | 5.824 | BTC | 0.0075 | BTC/XCP | 0.0001 | 841 | 8fcc8a5b...<br />216 |<br />| 1000.18181818 | XCP | 7.6 | BTC | 0.0076 | BTC/XCP | 0.0001 | 843 | 2e1687c9...<br />2bf |<br />| 1000.18181818 | XCP | 7.7 | BTC | 0.0077 | BTC/XCP | 0.0001 | 843 | 3eb696a7...<br />3a0 |<br />| 1000.18181818 | XCP | 7.8 | BTC | 0.0078 | BTC/XCP | 0.0001 | 843 | 639224d3...<br />fad |<br />| 1000.18181818 | XCP | 7.9 | BTC | 0.0079 | BTC/XCP | 0.0001 | 843 | 5b94b078...<br />1bf |<br />| 15.0 | XCP | 0.12 | BTC | 0.0080 | BTC/XCP | 0.0001 | 971 | abdd6e73...<br />2bf |<br />| 1000.18181818 | XCP | 8.0 | BTC | 0.0080 | BTC/XCP | 0.0001 | 843 | 16482b25...<br />d3b |<br />| 1000.18181818 | XCP | 8.1 | BTC | 0.0081 | BTC/XCP | 0.0001 | 843 | eea65671...<br />80b |<br />| 1000.18181818 | XCP | 8.2 | BTC | 0.0082 | BTC/XCP | 0.0001 | 843 | 07b85894...<br />3fb |<br />| 1000.18181818 | XCP | 8.3 | BTC | 0.0083 | BTC/XCP | 0.0001 | 844 | e06b2c33...<br />c27 |<br />| 1000.18181818 | XCP | 8.4 | BTC | 0.0084 | BTC/XCP | 0.0001 | 844 | 94b8b182...<br />735 |<br />| 1000.18181818 | XCP | 8.5 | BTC | 0.0085 | BTC/XCP | 0.0001 | 844 | da22e9db...<br />4bf |<br />| 100.01818182 | XCP | 0.86 | BTC | 0.0086 | BTC/XCP | 0.0001 | 953 | 4b8d3c3c...<br />425 |<br />| 50.0 | XCP | 0.485 | BTC | 0.0097 | BTC/XCP | 0.0001 | 836 | 7633b081...<br />e5b |<br />| 59.8139372 | XCP | 0.5922172 | BTC | 0.0099 | BTC/XCP | 0.0001 | 671 | d031317c...<br />203 |<br />| 100.0 | XCP | 1.0 | BTC | 0.0100 | BTC/XCP | 0.0001 | 843 | a733147e...<br />8e1 |<br />| 100.0 | XCP | 1.0 | BTC | 0.0100 | BTC/XCP | 0.0001 | 6885 | a868b9ba...<br />902 |<br />| 250.0 | XCP | 5.0 | BTC | 0.0200 | BTC/XCP | 0.0001 | 1278 | 4eb6e520...<br />7e9 |<br />| 1.0 | XCP | 0.1 | BTC | 0.1000 | BTC/XCP | 0.0001 | 61660 | fa8b7e8f...<br />cf9 |<br />| 0.1 | XCP | 1.0 | BTC | 10.0000 | BTC/XCP | 0.0001 | 6294 | c8449620...<br />2a5 |<br />+---------------+------------+--------------+-----------+---------+--------------+--------+-----------+------------<br />----+<br /><br /><br />Open Bets<br />+----------+------------------------------------+---------------------------+--------------+----------+-------+----<br />-----+--------+-----------+---------------------+<br />| Bet Type | Feed Address | Deadline | Target Value | Leverage | Wager | Cou<br />ager | Odds | Time Left | Tx Hash |<br />+----------+------------------------------------+---------------------------+--------------+----------+-------+----<br />-----+--------+-----------+---------------------+<br />| Equal | 1QBPsB2ea61vWTNA9nGUhaHqPQB4SXF4fN | 2014-02-03T05:00:00-05:00 | 2.0 | 1.0000 | 0 XCP | 0<br />P | 1.0000 | 486 | c1cfe031...e7875038 |<br />+----------+------------------------------------+---------------------------+--------------+----------+-------+----<br />-----+--------+-----------+---------------------+<br /><br /><br />Order Matches Awaiting BTC Payment<br />+------------------+-----------+<br />| Matched Order ID | Time Left |<br />+------------------+-----------+<br />+------------------+-----------+<br /><br /><br />Feeds<br />Traceback (most recent call last):<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 661, in <module><br /> market(args.give_asset, args.get_asset)<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 79, in market<br /> print(str(table))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 34, in write<br /> self.__convertor.write(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 115, in write<br /> self.write_and_convert(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 142, in write_and_convert<br /> self.write_plain_text(text, cursor, len(text))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 147, in write_plain_text<br /> self.wrapped.write(text[start:end])<br /> File "C:\\counterpartyd_build\\env\\lib\\encodings\\cp437.py", line 19, in encode<br /> return codecs.charmap_encode(input,self.errors,encoding_map)[0]<br />UnicodeEncodeError: 'charmap' codec can't encode character '\\u2026' in position 536: character maps to <undefined><br />
Windows 7 machine, 64-bit.
I’m looking into this myself, but I’ll bet the devs are quicker than I.
When I start [tt]counterpartyd server[/tt] command, below error happened:
How to fix the ‘[font=dejavu sans mono][size=x-small]AssertionError’ error?[/size][/font]c:\\counterpartyd_build>counterpartyd server<br /><br /><br />c:\\counterpartyd_build>echo off<br />Status: RESTART<br />Block: 284193<br />Send: 100.0 of asset XCP from 1FueYJfpS7Q92qHGGrbr5d4r5qn4Lz56To to 1KKPcuXvYkEq<br />wjFRUWuDUFcLk3YQgXfVbQ (b5f95848...8fd4d9f3)<br />Traceback (most recent call last):<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 682, i<br />n <module><br /> blocks.follow(db)<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\blocks.py", line 534, in f<br />ollow<br /> parse_block(db, block_index)<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\blocks.py", line 64, in pa<br />rse_block<br /> cancel.parse(db, tx, message)<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\cancel.py", line 61, in pa<br />rse<br /> util.credit(db, tx['source'], order['give_asset'], order['give_remaining'])<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py", line 257, in cre<br />dit<br /> assert asset != 'BTC' # Never BTC.<br />AssertionError<br /><br /><br />c:\\counterpartyd_build>
[quote author=aQuant link=topic=13.msg161#msg161 date=1391561840]
I’ve successfully sent an order, but I can’t run all the commands because something is wrong with the parser.<br />Feeds<br />Traceback (most recent call last):<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 661, in <module><br /> market(args.give_asset, args.get_asset)<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 79, in market<br /> print(str(table))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 34, in write<br /> self.__convertor.write(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 115, in write<br /> self.write_and_convert(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 142, in write_and_convert<br /> self.write_plain_text(text, cursor, len(text))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 147, in write_plain_text<br /> self.wrapped.write(text[start:end])<br /> File "C:\\counterpartyd_build\\env\\lib\\encodings\\cp437.py", line 19, in encode<br /> return codecs.charmap_encode(input,self.errors,encoding_map)[0]<br />UnicodeEncodeError: 'charmap' codec can't encode character '\\u2026' in position 536: character maps to <undefined><br />
Windows 7 machine, 64-bit.
I’m looking into this myself, but I’ll bet the devs are quicker than I.
[/quote]
This is because feed text can contain unicode characters, and Windows command terminal (cmd.exe) chokes on that.
This issue is fixed in the develop branch. In the meantime, try running “powershell” command before you run counterparty and see if that helps.
[quote author=520Bit link=topic=13.msg176#msg176 date=1391565825]
When I start [tt]counterpartyd server[/tt] command, below error happened:
How to fix the ‘[font=dejavu sans mono][size=x-small]AssertionError’ error?[/size][/font]c:\\counterpartyd_build>counterpartyd server<br /><br /><br />c:\\counterpartyd_build>echo off<br />Status: RESTART<br />Block: 284193<br />Send: 100.0 of asset XCP from 1FueYJfpS7Q92qHGGrbr5d4r5qn4Lz56To to 1KKPcuXvYkEq<br />wjFRUWuDUFcLk3YQgXfVbQ (b5f95848...8fd4d9f3)<br />Traceback (most recent call last):<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 682, i<br />n <module><br /> blocks.follow(db)<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\blocks.py", line 534, in f<br />ollow<br /> parse_block(db, block_index)<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\blocks.py", line 64, in pa<br />rse_block<br /> cancel.parse(db, tx, message)<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\cancel.py", line 61, in pa<br />rse<br /> util.credit(db, tx['source'], order['give_asset'], order['give_remaining'])<br /> File "c:\\counterpartyd_build\\dist\\counterpartyd\\lib\\util.py", line 257, in cre<br />dit<br /> assert asset != 'BTC' # Never BTC.<br />AssertionError<br /><br /><br />c:\\counterpartyd_build>
[/quote]
This is a fixed bug. Please refresh from git: http://counterpartyd-build.readthedocs.org/en/latest/BuildingFromSource.html#id4
Post deleted. These devs are fast.
[quote author=xnova link=topic=13.msg177#msg177 date=1391566081]
[quote author=aQuant link=topic=13.msg161#msg161 date=1391561840]
I’ve successfully sent an order, but I can’t run all the commands because something is wrong with the parser.<br />Feeds<br />Traceback (most recent call last):<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 661, in <module><br /> market(args.give_asset, args.get_asset)<br /> File "C:\\counterpartyd_build\\dist\\counterpartyd\\counterpartyd.py", line 79, in market<br /> print(str(table))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 34, in write<br /> self.__convertor.write(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 115, in write<br /> self.write_and_convert(text)<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 142, in write_and_convert<br /> self.write_plain_text(text, cursor, len(text))<br /> File "C:\\counterpartyd_build\\env\\lib\\site-packages\\colorama\\ansitowin32.py", line 147, in write_plain_text<br /> self.wrapped.write(text[start:end])<br /> File "C:\\counterpartyd_build\\env\\lib\\encodings\\cp437.py", line 19, in encode<br /> return codecs.charmap_encode(input,self.errors,encoding_map)[0]<br />UnicodeEncodeError: 'charmap' codec can't encode character '\\u2026' in position 536: character maps to <undefined><br />
Windows 7 machine, 64-bit.
I’m looking into this myself, but I’ll bet the devs are quicker than I.
[/quote]
This is because feed text can contain unicode characters, and Windows command terminal (cmd.exe) chokes on that.
This issue is fixed in the develop branch. In the meantime, try running “powershell” command before you run counterparty and see if that helps.
[/quote]
UPDATE/EDIT: I’ve just stumbled into a place where I probably don’t belong. While the note below “worked”, there is some definite things that I don’t know about w.r.t. encoding.
Thanks. I’ve been running powershell all along. I figured out that I could fix it by setting PYTHONIOENCODING=UTF-8. For other people who could have similar issues, search “Edit System Environment Variables” in the start menu. Add PYTHONIOENCODING. Set it to UTF-8.
Warning: I’m new. This fix could unknowingly cause other problems, depending on how certain non-alphanumeric characters are used in the code. For instance, I already see an issue in the help string for the --force command.
Hey Guys,
I seem to have an issue with the proper jsonrpc lib …
I am using Ubuntu - are there any other linuc users here?
I still have to find out which jsonrpc counterpartyd is using, because my python3 has apparently a wrong one … …
azure@boxfish:~/workbench/counterparty/counterpartyd$ python3 counterpartyd.py
Traceback (most recent call last):
File "counterpartyd.py", line 22, in
from lib import (config, api, zeromq, util, exceptions, bitcoin, blocks)
File "/home/azure/workbench/counterparty/counterpartyd/lib/api.py", line 16, in
from jsonrpc import JSONRPCResponseManager, dispatcher
ImportError: cannot import name JSONRPCResponseManager
azure@boxfish:~/workbench/counterparty/counterpartyd$
any hints would be appreciated
I have followed steps to build from source. I typed in the commands but I got this error
Requirement already satisfied (use --upgrade to upgrade): appdirs==1.2.0 in c:\p
ython32\lib\site-packages
Cleaning up…
2014-02-05 19:33:55,174|WARNING: Deleting existing virtualenv…
Traceback (most recent call last):
File “setup.py”, line 488, in
main()
File “setup.py”, line 479, in main
create_virtualenv(paths, with_counterwalletd)
File “setup.py”, line 277, in create_virtualenv
create_venv(paths[‘env_path’], paths[‘pip_path’], paths[‘python_path’], path
s[‘virtualenv_args’], ‘reqs.txt’)
File “setup.py”, line 264, in create_venv
_rmtree(env_path)
File “setup.py”, line 67, in _rmtree
_rmtree(fullpath)
File “setup.py”, line 65, in _rmtree
rmgeneric(fullpath, f)
File “setup.py”, line 49, in rmgeneric
import win32api, win32con
ImportError: No module named win32api
Any suggestions?
Forget my last message - I think I got passed that stage
Thanks