Thursday, October 27, 2016

macOS Sierra: Tor (anonymity network): Installing ARM (The anonymizing relay monitor): Incomplete

Command:

$ git clone https://git.torproject.org/nyx.git


Result:

Cloning into 'nyx'...
remote: Counting objects: 11674, done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 11674 (delta 42), reused 0 (delta 0)
Receiving objects: 100% (11674/11674), 2.71 MiB | 446.00 KiB/s, done.
Resolving deltas: 100% (9078/9078), done.


Command:

$ cd nyx
$ python setup.py


Result (Error):

Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    import nyx
  File "/Users/USERNAME/nyx/nyx/__init__.py", line 41, in <module>
    import stem
ImportError: No module named stem


Command:

$ sudo pip install stem
Password:


Result:

The directory '/Users/USERNAME/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/USERNAME/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting stem
  Downloading stem-1.4.0.tar.bz2 (1.6MB)
    100% |████████████████████████████████| 1.6MB 718kB/s
Installing collected packages: stem
  Running setup.py install for stem ... done
Successfully installed stem-1.4.0


Command:

$ python setup.py


Result (Error):

Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    import nyx
  File "/Users/USERNAME/nyx/nyx/__init__.py", line 521, in <module>
    import nyx.panel.config
  File "/Users/USERNAME/nyx/nyx/panel/config.py", line 17, in <module>
    import stem.manual
ImportError: No module named manual


Command:

$ python


Result:

Python 2.7.12 (default, Oct 19 2016, 01:11:34)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.


Command:

>>> import sys
>>> sys.path


Result:

['', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/Cellar/matplotlib/1.5.1/libexec/lib/python2.7/site-packages', '/usr/local/Cellar/numpy/1.11.2/libexec/nose/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages/pip-8.1.1-py2.7.egg', '/Library/Python/2.7/site-packages']


Command:

>>> quit()
$ ls -al /usr/local/lib/python2.7/site-packages/stem/


Result (Missing stem.manual):

total 1136
drwxr-xr-x  22 root  wheel     748 Oct 27 12:06 .
drwxr-xr-x  43 USERNAME  wheel    1462 Oct 27 12:06 ..
-rw-r--r--   1 root  wheel   25346 May 14  2015 __init__.py
-rw-r--r--   1 root  wheel   27294 Oct 27 12:06 __init__.pyc
-rw-r--r--   1 root  wheel   48656 May 14  2015 connection.py
-rw-r--r--   1 root  wheel   45507 Oct 27 12:06 connection.pyc
-rw-r--r--   1 root  wheel  128760 May 14  2015 control.py
-rw-r--r--   1 root  wheel  118390 Oct 27 12:06 control.pyc
drwxr-xr-x  24 root  wheel     816 Oct 27 12:06 descriptor
-rw-r--r--   1 root  wheel   34569 May 14  2015 exit_policy.py
-rw-r--r--   1 root  wheel   31176 Oct 27 12:06 exit_policy.pyc
drwxr-xr-x  13 root  wheel     442 Oct 27 12:06 interpreter
-rw-r--r--   1 root  wheel    3430 May 14  2015 prereq.py
-rw-r--r--   1 root  wheel    4029 Oct 27 12:06 prereq.pyc
-rw-r--r--   1 root  wheel    8996 May 14  2015 process.py
-rw-r--r--   1 root  wheel    7768 Oct 27 12:06 process.pyc
drwxr-xr-x  18 root  wheel     612 Oct 27 12:06 response
-rw-r--r--   1 root  wheel   21337 May 14  2015 socket.py
-rw-r--r--   1 root  wheel   19283 Oct 27 12:06 socket.pyc
drwxr-xr-x  29 root  wheel     986 Oct 27 12:06 util
-rw-r--r--   1 root  wheel   12810 May 14  2015 version.py
-rw-r--r--   1 root  wheel   14866 Oct 27 12:06 version.pyc