Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error #11

Open
miguelmota opened this issue Jun 21, 2019 · 6 comments
Open

Installation error #11

miguelmota opened this issue Jun 21, 2019 · 6 comments

Comments

@miguelmota
Copy link

miguelmota commented Jun 21, 2019

output:

┌─[mota:~/Downloads]
│  2019-06-21T22:01:43Z
└─❯❯❯ brew install shadowlands
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from 0b8ad710e to 3cef10889.
Updated 3 taps (homebrew/core, homebrew/cask and osgeo/osgeo4mac).
==> New Formulae
antibody            cxxopts             k6                  yapf
contentful-cli      k3d                 [email protected]
==> Updated Formulae
harfbuzz ✔                               juju
kubernetes-cli ✔                         kibana
libssh2 ✔                                kops
neovim ✔                                 kotlin
youtube-dl ✔                             libmpdclient
agda                                     libxlsxwriter
aliyun-cli                               mariadb
alot                                     maxwell
amqp-cpp                                 metricbeat
angle-grinder                            mikutter
ansible                                  minio
asciidoctor                              minio-mc
ask-cli                                  nethack
auditbeat                                notmuch
bind                                     openapi-generator
byobu                                    osgeo/osgeo4mac/osgeo-postgis
cfn-lint                                 osgeo/osgeo4mac/[email protected]
clozure-cl                               osgeo/osgeo4mac/osgeo-postgresql
convox                                   osgeo/osgeo4mac/osgeo-postgresql@10
diff-pdf                                 pdfpc
elasticsearch                            pdftoipe
erlang                                   poppler
expat                                    postgresql@10
exploitdb                                [email protected]
f3                                       [email protected]
firebase-cli                             [email protected]
flow                                     pulumi
gawk                                     sceptre
git-recent                               skaffold
gmic                                     sn0int
gromacs                                  terrahub
h3                                       triton
hadolint                                 webpack
helmfile                                 xmake
jhipster                                 xonsh
Error: Failed to import: /usr/local/Homebrew/Library/Taps/wysenynja/homebrew-bitcoin/Formula/bitcoinxt.rb
bitcoinxt: unknown version :lion
Error: Failed to import: /usr/local/Homebrew/Library/Taps/wysenynja/homebrew-bitcoin/Formula/bitcoinclassic.rb
bitcoinclassic: unknown version :lion
Error: Failed to import: /usr/local/Homebrew/Library/Taps/wysenynja/homebrew-bitcoin/Formula/armory.rb
armory: Unsupported special dependency :python
Error: Failed to import: /usr/local/Homebrew/Library/Taps/wysenynja/homebrew-bitcoin/Formula/bitcoind.rb
bitcoind: unknown version :lion
Warning: Aleth (formerly cpp-ethereum) has been removed from Homebrew. Please install binary releases from https://github.com/ethereum/aleth/releases.

==> Installing shadowlands from kayagoban/shadowlands
==> Installing dependencies for kayagoban/shadowlands/shadowlands: openssl
==> Installing kayagoban/shadowlands/shadowlands dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2s.mojave.bottl
==> Downloading from https://akamai.bintray.com/c4/c4a762d719c2be74ac686f1aafabb
######################################################################## 100.0%
==> Pouring openssl-1.0.2s.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/openssl/1.0.2s: 1,795 files, 12.0MB
==> Installing kayagoban/shadowlands/shadowlands
==> Downloading https://github.com/kayagoban/shadowlands/archive/1.1.0.tar.gz
==> Downloading from https://codeload.github.com/kayagoban/shadowlands/tar.gz/1.
######################################################################## 100.0%
🍺  /usr/local/Cellar/shadowlands/1.1.0: 124 files, 14MB, built in 8 seconds
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /usr/local/Cellar/openssl/1.0.2r... (1,795 files, 12.1MB)
Pruned 0 symbolic links and 4 directories from /usr/local
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"



┌─[mota:~/Downloads]
│  2019-06-21T22:02:59Z
└─❯❯❯ shadowlands 
Detected darwin18
Found a usable python binary at Python 3.6.0a1
Making a virtual python env for Shadowlands in ~/.shadowlands
Collecting git+https://github.com/kayagoban/asciimatics (from -r /usr/local/opt/shadowlands/lib/shadowlands/requirements.txt (line 1))
  Cloning https://github.com/kayagoban/asciimatics to /var/folders/k1/m2rmftgd48q97pj0xf9csdb00000gn/T/pip-h3lbn3x7-build
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/setuptools_scm/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    Download error on https://pypi.python.org/simple/setuptools-scm/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    Couldn't find index page for 'setuptools_scm' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    No local packages or download links found for setuptools_scm
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/var/folders/k1/m2rmftgd48q97pj0xf9csdb00000gn/T/pip-h3lbn3x7-build/setup.py", line 78, in <module>
        test_suite='nose.collector',
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/dist.py", line 269, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/pkg_resources/__init__.py", line 826, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1092, in best_match
        return self.obtain(req, installer)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1104, in obtain
        return installer(requirement)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 634, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /var/folders/k1/m2rmftgd48q97pj0xf9csdb00000gn/T/pip-h3lbn3x7-build/
Activating Shadowlands virtual environment
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/opt/shadowlands/lib/shadowlands/__main__.py", line 5, in <module>
    from shadowlands.credstick import Credstick
  File "/usr/local/opt/shadowlands/lib/shadowlands/credstick/__init__.py", line 1, in <module>
    import hid, threading, time
ImportError: No module named 'hid'


┌─[mota:~/Downloads]
│  2019-06-21T22:03:12Z
└─❯❯❯ uname -a
Darwin computer.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64

┌─[mota:~/Downloads]
│  2019-06-21T22:03:54Z
└─❯❯❯ brew -v
Homebrew 2.1.6-22-g3cef108
Homebrew/homebrew-core (git revision c0915; last commit 2019-06-21)
Homebrew/homebrew-cask (git revision 8bf047; last commit 2019-06-21)

┌─[mota:~/Downloads]
│  2019-06-21T22:06:18Z
└─❯❯❯ python --version
Python 3.6.0a1
@kayagoban
Copy link
Owner

kayagoban commented Jun 22, 2019 via email

@miguelmota
Copy link
Author

Installed python from the official source which seems to have taken care of the SSL errors but still getting ImportError: No module named 'hid'

┌─[mota:/Volumes/hd2/Sandbox]
│  2019-06-22T00:41:35Z
└─❯❯❯ python --version
Python 3.7.3

┌─[mota:/Volumes/hd2/Sandbox]
│  2019-06-22T00:41:39Z
└─❯❯❯ brew reinstall shadowlands
==> Reinstalling kayagoban/shadowlands/shadowlands 
==> Downloading https://github.com/kayagoban/shadowlands/archive/1.1.0.tar.gz
Already downloaded: /Users/mota/Library/Caches/Homebrew/downloads/d89a4f52e261b2739d327f708062e7d304d8399aa638e425c523f0c1fdf0c345--shadowlands-1.1.0.tar.gz
🍺  /usr/local/Cellar/shadowlands/1.1.0: 124 files, 14MB, built in 4 seconds


┌─[mota:/Volumes/hd2/Sandbox]
│  2019-06-22T00:41:47Z
└─❯❯❯ shadowlands
Detected darwin18
Activating Shadowlands virtual environment
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/opt/shadowlands/lib/shadowlands/__main__.py", line 5, in <module>
    from shadowlands.credstick import Credstick
  File "/usr/local/opt/shadowlands/lib/shadowlands/credstick/__init__.py", line 1, in <module>
    import hid, threading, time
ImportError: No module named 'hid'

@kayagoban
Copy link
Owner

kayagoban commented Jun 22, 2019 via email

@miguelmota
Copy link
Author

┌─[mota:/Volumes/hd2/Sandbox]
│  2019-06-22T01:32:52Z
└─❯❯❯ shadowlands --clean
Detected darwin18
Removing virtual python environment at ~/.shadowlands


┌─[mota:/Volumes/hd2/Sandbox]
│  2019-06-22T01:32:58Z
└─❯❯❯ shadowlands 
Detected darwin18
Found a usable python binary at Python 3.6.0a1
Making a virtual python env for Shadowlands in ~/.shadowlands
Collecting git+https://github.com/kayagoban/asciimatics (from -r /usr/local/opt/shadowlands/lib/shadowlands/requirements.txt (line 1))
  Cloning https://github.com/kayagoban/asciimatics to /var/folders/k1/m2rmftgd48q97pj0xf9csdb00000gn/T/pip-dpnvlwb4-build
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/setuptools_scm/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    Download error on https://pypi.python.org/simple/setuptools-scm/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    Couldn't find index page for 'setuptools_scm' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    No local packages or download links found for setuptools_scm
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/var/folders/k1/m2rmftgd48q97pj0xf9csdb00000gn/T/pip-dpnvlwb4-build/setup.py", line 78, in <module>
        test_suite='nose.collector',
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/dist.py", line 269, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/pkg_resources/__init__.py", line 826, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1092, in best_match
        return self.obtain(req, installer)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1104, in obtain
        return installer(requirement)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Users/mota/.shadowlands/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 634, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /var/folders/k1/m2rmftgd48q97pj0xf9csdb00000gn/T/pip-dpnvlwb4-build/
Activating Shadowlands virtual environment
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/opt/shadowlands/lib/shadowlands/__main__.py", line 5, in <module>
    from shadowlands.credstick import Credstick
  File "/usr/local/opt/shadowlands/lib/shadowlands/credstick/__init__.py", line 1, in <module>
    import hid, threading, time
ImportError: No module named 'hid'

is my python version screwed up?

@kayagoban
Copy link
Owner

Pip isn't working at all because the SSL certs are hosed, looks like.
Some questions to help me:
What's your MacOS version?
Can you show me the output of "which python3" and "which python3.6"?
What was the version of the official Python you installed from python.org?

I appreciate this bug report, btw. When we fix this, it will help many.

@miguelmota
Copy link
Author

@kayagoban here's the request info:

Screen Shot 2019-07-01 at 11 24 51 AM

┌─[mota:/Volumes/hd2/Sandbox]
│  2019-07-01T18:24:59Z
└─❯❯❯ which python3
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3


┌─[mota:/Volumes/hd2/Sandbox]
│  2019-07-01T18:25:02Z
└─❯❯❯ which python3.6
/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6

I installed the latest python version from python.org which was 3.7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants