PhantomPhreak (OP)
Sr. Member
  
Offline
Activity: 476
Merit: 301
Counterparty Chief Scientist and Co-Founder
|
 |
February 03, 2014, 02:32:21 AM |
|
I am getting another error in the "market". What anyone else? Feeds Traceback (most recent call last): File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 661, i n <module> market(args.give_asset, args.get_asset) File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 79, in market print(str(table)) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 34, in write self.__convertor.write(text) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 115, in write self.write_and_convert(text) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 142, in write_and_convert self.write_plain_text(text, cursor, len(text)) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 147, in write_plain_text self.wrapped.write(text[start:end]) File "C:\counterpartyd_build\env\lib\encodings\cp850.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u2026' in position 693: character maps to <undefined> The Windows terminal has trouble with Unicode. I'll try to write a workaround. There's a partial fix in the master branch now. I don't have a Windows computer, however, so it's pretty much untested. Let me know if it works! No, sorry PhantomPhreak. It is not working. Here is the error message: Feeds Traceback (most recent call last): File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 667, i n <module> market(args.give_asset, args.get_asset) File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 86, in market print_(str(table)) File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 33, in print_ print(foo.encode('utf-8').decode('latin-1')) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 34, in write self.__convertor.write(text) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 115, in write self.write_and_convert(text) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 142, in write_and_convert self.write_plain_text(text, cursor, len(text)) File "C:\counterpartyd_build\env\lib\site-packages\colorama\ansitowin32.py", l ine 147, in write_plain_text self.wrapped.write(text[start:end]) File "C:\counterpartyd_build\env\lib\encodings\cp850.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\x80' in position 69 4: character maps to <undefined> Even the run.py wallet is not working anymore (was working before). Error: C:\counterpartyd_build>run.py wallet Traceback (most recent call last): File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 634, i n <module> print_() TypeError: print_() takes exactly 1 argument (0 given) I guess that your best bet is to use an old version for now. xnova usually handles the Windows support, and he should be able to fix the issue soon. I've reverted that commit, of course. Ok, No problem. I can wait  Thanks for the fast help. I am rebuilding my windows environment so I can try to reproduce this. I suspect this is another unicode handling issue (cmd.exe has issues handling unicode). At the dos prompt, try running the "powershell" command, and then launching counterpartyd. See if that fixes it. It is. I put back in the Unicode ellipses. We probably should wrap the logger and print() with something that converts to another encoding. (Removing the ellipses isn't a solution, because broadcasts include arbitrary UTF-8 strings.)
|