Post
Topic
Board Armory
Re: Armory 0.95.1 is out
by
coinbtm
on 29/12/2016, 13:51:10 UTC
Hello,

First off i'd like to thank goatpig for his continued effort & development on this piece of software! It's great that Alan open sourced it and capable minds are continuing the development.  Looking forward to getting this back up and running on a mac laptop here...


Question: is there anyone doing QA on the new 95.1 OSX binaries? I'm facing a string concatenation error when armory tries to load on this machine. Am unsure if it's my system or armory...

Here's the relevant redacted bits from the log file; it will die immediately upon trying to launch the app:


2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1137 - C++ block utilities loaded successfully
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:651 - Executing popen: sysctl hw.memsize
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:651 - Executing popen: sysctl -n machdep.cpu.brand_string
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1247 -
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1248 -
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1249 -
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1250 - ************************************************************
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1251 - Invoked: /Applications/Armory.app/Contents/MacOS/py/usr/lib/armory/ArmoryQt.py
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1252 - ************************************************************
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1253 - Loading Armory Engine:
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1254 -    Armory Version        : 0.95.1
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1255 -    Armory Build:         : None
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1256 -    PyBtcWallet  Version  : 1.35
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1257 - Detected Operating system: MacOSX
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1258 -    OS Variant            : 10.10.5
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1259 -    User home-directory   : [REDACTED]
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1260 -    Satoshi BTC directory : [REDACTED]/Bitcoin/
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1261 -    Armory home dir       : [REDACTED]/Armory/
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1262 - Detected System Specs    :
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1263 -    Total Available RAM   : 16.00 GB
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1264 -    CPU ID string         : Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz

2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1265 -    Number of CPU cores   : 8 cores
2016-12-29 08:22 (INFO) -- ArmoryUtils.py:1266 -    System is 64-bit      : True
2016-12-29 08:22 (ERROR) -- Traceback (most recent call last):
  File "/Applications/Armory.app/Contents/MacOS/py/usr/lib/armory/ArmoryQt.py", line 44, in
    from armoryengine.ALL import *
  File "/Applications/Armory.app/Contents/MacOS/py/usr/lib/armory/armoryengine/ALL.py", line 8, in
    from armoryengine.ArmoryUtils import *
  File "/Applications/Armory.app/Contents/MacOS/py/usr/lib/armory/armoryengine/ArmoryUtils.py", line 1267, in
    LOGINFO('   Preferred Encoding    : ' + locale.getpreferredencoding())
TypeError: cannot concatenate 'str' and 'NoneType' objects


Which means the getpreferredencoding() method is returning null.... what gives?

This binary was shasum checked & verified


Doing some python sleuthing and tracing back from line 1267 in the utils file, i don't know why this is occurring... it should return back UTF-8 ... see below from a terminal prompt:

Last login: Thu Dec 29 08:17:47 on ttys007
Thu Dec 29 08:36:51 MacBook Pro:~/Desktop/$ python
Python 2.7.9 (default, Dec 19 2014, 21:06:47)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.56)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'
>>>

anyone have thoughts or ideas? is the armory app using some weird version of python that is not the supplied or system version? do i need to flag it to use a specific flavor in pyenv or similar?