Trouble Installing

Hey all, I am brand new to AFNI (and largely to coding as a whole). I have been teaching myself Python 3 for the last few weeks and that is mostly the extent of my experience but I am very eager to learn. I am trying to install the app version on Mac OS and received this system error :

" Running afni_system_check.py -check_all

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 147, in
globals()[__func_name] = __get_hash(__func_name)
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ’ + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 147, in
globals()[__func_name] = __get_hash(__func_name)
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ’ + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 147, in
globals()[__func_name] = __get_hash(__func_name)
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ’ + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 147, in
globals()[__func_name] = __get_hash(__func_name)
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ’ + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 147, in
globals()[__func_name] = __get_hash(__func_name)
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ’ + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 147, in
globals()[__func_name] = __get_hash(__func_name)
File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py”, line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ’ + name)
ValueError: unsupported hash type sha512 "

I also received this message after doing the afni_system_check in terminal :

login shell ‘bash’, trusting user to translate code examples from ‘tcsh’

  • shell bash: consider sourcing (non-login) .bashrc from (login) .bash_profile

Any help is appreciated. Thank you.

Hi,
I am not sure about the python error, but the ones from the command line are just warnings. And you should be fine as long as the rest of the afni_sysyem_check was ok.

I think the python error may be from the app trying to use the default python to run afni_sysyem_check.py
I can look into that.

Thanks, Justin

Oh okay, thanks. I used to have Python 2 installed because I used that for a class a few years back but I recently upgraded to 3. I thought I had deleted all the Python 2 files but it’s possible I may have missed some. Is it possible it is trying to read the old python 2 files (that should be deleted) instead of the new python 3 ones? I apologize again if I am using terminology incorrectly.

What was the rest of the output? afni_system_check.py should work fine under python3.

  • rick

Everything that came up I put in my post. The installation had those error messages and essentially froze and I had to cancel the install. I am wondering if it’s related to another issue I had where when I first started using Pycharm it was using old Python 2 instead of Python 3 and I had to go and delete things and set it to use Python 3. Might be unrelated but I am unsure.

Everything that came up I put in my post. The installation had those error messages and essentially froze and I had to cancel the install. I am wondering if it’s related to another issue I had where when I first started using Pycharm it was using old Python 2 instead of Python 3 and I had to and delete things and set it to use Python 3. Might be unrelated but I am unsure.