keyring installation fails
Hi again (oh no not me again!)
I just attempted to install git2jss on a new Mac (running 10.14.6) and the installation fails due to keyring not installing properly. It looks like an issue with the method of installation using easy_install. I was able to proceed by running sudo pip install keyring instead, and then running sudo python setup.py install once again.
Error output, in case useful:
$ sudo python setup.py install
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
/usr/bin/python -E -c pass
TEST PASSED: /Library/Python/2.7/site-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing requirements to git2jss.egg-info/requires.txt
writing git2jss.egg-info/PKG-INFO
writing top-level names to git2jss.egg-info/top_level.txt
writing dependency_links to git2jss.egg-info/dependency_links.txt
writing entry points to git2jss.egg-info/entry_points.txt
reading manifest file 'git2jss.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.md'
writing manifest file 'git2jss.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.14-intel/egg
running install_lib
running build_py
creating build/bdist.macosx-10.14-intel/egg
creating build/bdist.macosx-10.14-intel/egg/git2jss
copying build/lib/git2jss/jss_keyring.py -> build/bdist.macosx-10.14-intel/egg/git2jss
copying build/lib/git2jss/__init__.py -> build/bdist.macosx-10.14-intel/egg/git2jss
copying build/lib/git2jss/vcs.py -> build/bdist.macosx-10.14-intel/egg/git2jss
copying build/lib/git2jss/exceptions.py -> build/bdist.macosx-10.14-intel/egg/git2jss
copying build/lib/git2jss/processors.py -> build/bdist.macosx-10.14-intel/egg/git2jss
byte-compiling build/bdist.macosx-10.14-intel/egg/git2jss/jss_keyring.py to jss_keyring.pyc
byte-compiling build/bdist.macosx-10.14-intel/egg/git2jss/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.14-intel/egg/git2jss/vcs.py to vcs.pyc
byte-compiling build/bdist.macosx-10.14-intel/egg/git2jss/exceptions.py to exceptions.pyc
byte-compiling build/bdist.macosx-10.14-intel/egg/git2jss/processors.py to processors.pyc
creating build/bdist.macosx-10.14-intel/egg/EGG-INFO
copying git2jss.egg-info/PKG-INFO -> build/bdist.macosx-10.14-intel/egg/EGG-INFO
copying git2jss.egg-info/SOURCES.txt -> build/bdist.macosx-10.14-intel/egg/EGG-INFO
copying git2jss.egg-info/dependency_links.txt -> build/bdist.macosx-10.14-intel/egg/EGG-INFO
copying git2jss.egg-info/entry_points.txt -> build/bdist.macosx-10.14-intel/egg/EGG-INFO
copying git2jss.egg-info/requires.txt -> build/bdist.macosx-10.14-intel/egg/EGG-INFO
copying git2jss.egg-info/top_level.txt -> build/bdist.macosx-10.14-intel/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/git2jss-2.0.0-py2.7.egg' and adding 'build/bdist.macosx-10.14-intel/egg' to it
removing 'build/bdist.macosx-10.14-intel/egg' (and everything under it)
Processing git2jss-2.0.0-py2.7.egg
Removing /Library/Python/2.7/site-packages/git2jss-2.0.0-py2.7.egg
Copying git2jss-2.0.0-py2.7.egg to /Library/Python/2.7/site-packages
git2jss 2.0.0 is already the active version in easy-install.pth
Installing git2jss script to /usr/local/bin
Installed /Library/Python/2.7/site-packages/git2jss-2.0.0-py2.7.egg
Processing dependencies for git2jss==2.0.0
Searching for keyring
Reading https://pypi.python.org/simple/keyring/
Best match: keyring 19.0.2
Downloading https://files.pythonhosted.org/packages/69/91/5a9d1769ed7e25083649e87977686423aebed3516112557f4cafd73c9f95/keyring-19.0.2.tar.gz#sha256=1b74595f7439e4581a11d4f9a12790ac34addce64ca389c86272ff465f5e0b90
Processing keyring-19.0.2.tar.gz
Writing /tmp/easy_install-wqlhi3/keyring-19.0.2/setup.cfg
Running keyring-19.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-wqlhi3/keyring-19.0.2/egg-dist-tmp-3JuH3z
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'use_scm_version'
warnings.warn(msg)
warning: install_lib: 'build/lib' does not exist -- no Python modules to install
zip_safe flag not set; analyzing archive contents...
Removing /Library/Python/2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg
Copying UNKNOWN-0.0.0-py2.7.egg to /Library/Python/2.7/site-packages
UNKNOWN 0.0.0 is already the active version in easy-install.pth
Installed /Library/Python/2.7/site-packages/UNKNOWN-0.0.0-py2.7.egg
error: The 'keyring' distribution was not found and is required by git2jss
Thanks for this, will see if I can reproduce and look into it. Glad you found a workaround!
No worries. I also found out that running sudo easy_install keyring failed in the same way, so it isn't something specific to your script (other than the decision to use easy_install over pip, which I understand).