Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
816 stars 69 forks source link

Install on macOS doesn't work #169

Closed controlcde closed 3 years ago

controlcde commented 3 years ago

What is the purpose of your issue?

Description

Installation failed with error.

What I Did


~/tmp/amazon-dash   develop  python setup.py install
running install
running bdist_egg
running egg_info
creating amazon_dash.egg-info
writing amazon_dash.egg-info/PKG-INFO
writing dependency_links to amazon_dash.egg-info/dependency_links.txt
writing requirements to amazon_dash.egg-info/requires.txt
writing top-level names to amazon_dash.egg-info/top_level.txt
writing manifest file 'amazon_dash.egg-info/SOURCES.txt'
reading manifest file 'amazon_dash.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'amazon_dash.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.15-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/amazon_dash
copying amazon_dash/wifi.py -> build/lib/amazon_dash
copying amazon_dash/config.py -> build/lib/amazon_dash
copying amazon_dash/confirmations.py -> build/lib/amazon_dash
copying amazon_dash/discovery.py -> build/lib/amazon_dash
copying amazon_dash/execute.py -> build/lib/amazon_dash
copying amazon_dash/__init__.py -> build/lib/amazon_dash
copying amazon_dash/management.py -> build/lib/amazon_dash
copying amazon_dash/scan.py -> build/lib/amazon_dash
copying amazon_dash/exceptions.py -> build/lib/amazon_dash
copying amazon_dash/audio.py -> build/lib/amazon_dash
copying amazon_dash/_compat.py -> build/lib/amazon_dash
copying amazon_dash/listener.py -> build/lib/amazon_dash
creating build/lib/amazon_dash/install
copying amazon_dash/install/__init__.py -> build/lib/amazon_dash/install
copying amazon_dash/install/exceptions.py -> build/lib/amazon_dash/install
copying amazon_dash/install/__main__.py -> build/lib/amazon_dash/install
creating build/lib/amazon_dash/tests
copying amazon_dash/tests/test_confirmations.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_wifi.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_audio.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/__init__.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_execute.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_discovery.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_config.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_listener.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/_compat.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/test_install.py -> build/lib/amazon_dash/tests
copying amazon_dash/tests/base.py -> build/lib/amazon_dash/tests
copying amazon_dash/hack.wav -> build/lib/amazon_dash
copying amazon_dash/install/amazon-dash.yml -> build/lib/amazon_dash/install
creating build/lib/amazon_dash/install/services
copying amazon_dash/install/services/amazon-dash.service -> build/lib/amazon_dash/install/services
creating build/lib/amazon_dash/tests/fixtures
copying amazon_dash/tests/fixtures/config.yml -> build/lib/amazon_dash/tests/fixtures
creating build/bdist.macosx-10.15-x86_64
creating build/bdist.macosx-10.15-x86_64/egg
creating build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/wifi.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
creating build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install
copying build/lib/amazon_dash/install/__init__.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install
copying build/lib/amazon_dash/install/amazon-dash.yml -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install
copying build/lib/amazon_dash/install/exceptions.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install
copying build/lib/amazon_dash/install/__main__.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install
creating build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install/services
copying build/lib/amazon_dash/install/services/amazon-dash.service -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install/services
copying build/lib/amazon_dash/config.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/confirmations.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/discovery.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/execute.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
creating build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_confirmations.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_wifi.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_audio.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/__init__.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_execute.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_discovery.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_config.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_listener.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
creating build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/fixtures
copying build/lib/amazon_dash/tests/fixtures/config.yml -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/fixtures
copying build/lib/amazon_dash/tests/_compat.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/test_install.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/tests/base.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests
copying build/lib/amazon_dash/__init__.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/management.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/scan.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/exceptions.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/audio.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/_compat.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/hack.wav -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
copying build/lib/amazon_dash/listener.py -> build/bdist.macosx-10.15-x86_64/egg/amazon_dash
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/wifi.py to wifi.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install/exceptions.py to exceptions.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/install/__main__.py to __main__.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/config.py to config.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/confirmations.py to confirmations.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/discovery.py to discovery.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/execute.py to execute.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_confirmations.py to test_confirmations.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_wifi.py to test_wifi.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_audio.py to test_audio.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_execute.py to test_execute.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_discovery.py to test_discovery.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_config.py to test_config.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_listener.py to test_listener.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/_compat.py to _compat.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/test_install.py to test_install.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/tests/base.py to base.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/management.py to management.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/scan.py to scan.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/exceptions.py to exceptions.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/audio.py to audio.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/_compat.py to _compat.cpython-39.pyc
byte-compiling build/bdist.macosx-10.15-x86_64/egg/amazon_dash/listener.py to listener.cpython-39.pyc
creating build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
installing scripts to build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.9
copying and adjusting scripts/amazon-dash -> build/scripts-3.9
changing mode of build/scripts-3.9/amazon-dash from 644 to 755
creating build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.9/amazon-dash -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.macosx-10.15-x86_64/egg/EGG-INFO/scripts/amazon-dash to 755
copying amazon_dash.egg-info/PKG-INFO -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
copying amazon_dash.egg-info/SOURCES.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
copying amazon_dash.egg-info/dependency_links.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
copying amazon_dash.egg-info/not-zip-safe -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
copying amazon_dash.egg-info/requires.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
copying amazon_dash.egg-info/top_level.txt -> build/bdist.macosx-10.15-x86_64/egg/EGG-INFO
creating dist
creating 'dist/amazon_dash-1.4.0-py3.9.egg' and adding 'build/bdist.macosx-10.15-x86_64/egg' to it
removing 'build/bdist.macosx-10.15-x86_64/egg' (and everything under it)
Processing amazon_dash-1.4.0-py3.9.egg
creating /usr/local/lib/python3.9/site-packages/amazon_dash-1.4.0-py3.9.egg
Extracting amazon_dash-1.4.0-py3.9.egg to /usr/local/lib/python3.9/site-packages
Adding amazon-dash 1.4.0 to easy-install.pth file
Installing amazon-dash script to /usr/local/bin

Installed /usr/local/lib/python3.9/site-packages/amazon_dash-1.4.0-py3.9.egg
Processing dependencies for amazon-dash==1.4.0
Searching for beautifulsoup4
Reading https://pypi.org/simple/beautifulsoup4/
Downloading https://files.pythonhosted.org/packages/d1/41/e6495bd7d3781cee623ce23ea6ac73282a373088fcd0ddc809a047b18eae/beautifulsoup4-4.9.3-py3-none-any.whl#sha256=fff47e031e34ec82bf17e00da8f592fe7de69aeea38be00523c04623c04fb666
Best match: beautifulsoup4 4.9.3
Processing beautifulsoup4-4.9.3-py3-none-any.whl
Installing beautifulsoup4-4.9.3-py3-none-any.whl to /usr/local/lib/python3.9/site-packages
Adding beautifulsoup4 4.9.3 to easy-install.pth file

Installed /usr/local/lib/python3.9/site-packages/beautifulsoup4-4.9.3-py3.9.egg
Searching for click-default-group
Reading https://pypi.org/simple/click-default-group/
Downloading https://files.pythonhosted.org/packages/22/3a/e9feb3435bd4b002d183fcb9ee08fb369a7e570831ab1407bc73f079948f/click-default-group-1.2.2.tar.gz#sha256=d9560e8e8dfa44b3562fbc9425042a0fd6d21956fcc2db0077f63f34253ab904
Best match: click-default-group 1.2.2
Processing click-default-group-1.2.2.tar.gz
Writing /var/folders/jg/y4bd9vkn45b3mjjrfwv693y80000gn/T/easy_install-fp16hp5a/click-default-group-1.2.2/setup.cfg
Running click-default-group-1.2.2/setup.py -q bdist_egg --dist-dir /var/folders/jg/y4bd9vkn45b3mjjrfwv693y80000gn/T/easy_install-fp16hp5a/click-default-group-1.2.2/egg-dist-tmp-em3umapz
zip_safe flag not set; analyzing archive contents...
Copying click_default_group-1.2.2-py3.9.egg to /usr/local/lib/python3.9/site-packages
Adding click-default-group 1.2.2 to easy-install.pth file

Installed /usr/local/lib/python3.9/site-packages/click_default_group-1.2.2-py3.9.egg
Searching for click
Downloading https://files.pythonhosted.org/packages/22/3a/e9feb3435bd4b002d183fcb9ee08fb369a7e570831ab1407bc73f079948f/click-default-group-1.2.2.tar.gz#sha256=d9560e8e8dfa44b3562fbc9425042a0fd6d21956fcc2db0077f63f34253ab904
Best match: click default-group-1.2.2
Processing click-default-group-1.2.2.tar.gz
Writing /var/folders/jg/y4bd9vkn45b3mjjrfwv693y80000gn/T/easy_install-_2lzbik6/click-default-group-1.2.2/setup.cfg
Running click-default-group-1.2.2/setup.py -q bdist_egg --dist-dir /var/folders/jg/y4bd9vkn45b3mjjrfwv693y80000gn/T/easy_install-_2lzbik6/click-default-group-1.2.2/egg-dist-tmp-i3wyob0x
zip_safe flag not set; analyzing archive contents...
Removing /usr/local/lib/python3.9/site-packages/click_default_group-1.2.2-py3.9.egg
Copying click_default_group-1.2.2-py3.9.egg to /usr/local/lib/python3.9/site-packages
click-default-group 1.2.2 is already the active version in easy-install.pth

Installed /usr/local/lib/python3.9/site-packages/click_default_group-1.2.2-py3.9.egg
error: The 'click' distribution was not found and is required by amazon-dash, click-default-group```
Nekmo commented 3 years ago

Hello, I am trying to reproduce the error without success on my machine:

(tmp-71d4da54785d17c) [nekmo@homura ~/.virtualenvs/tmp-71d4da54785d17c]$ pip install pip==20.2b1 setuptools==50.3.2
Collecting pip==20.2b1
  Downloading pip-20.2b1-py2.py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 3.5 MB/s 
Collecting setuptools==50.3.2
  Using cached setuptools-50.3.2-py3-none-any.whl (785 kB)
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 51.0.0
    Uninstalling setuptools-51.0.0:
      Successfully uninstalled setuptools-51.0.0
  Attempting uninstall: pip
    Found existing installation: pip 20.3.3
    Uninstalling pip-20.3.3:
      Successfully uninstalled pip-20.3.3
Successfully installed pip-20.2b1 setuptools-50.3.2
(tmp-71d4da54785d17c) [nekmo@homura ~/.virtualenvs/tmp-71d4da54785d17c]$ pip install click-default-group
Collecting click-default-group
  Using cached click-default-group-1.2.2.tar.gz (3.3 kB)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Building wheels for collected packages: click-default-group
  Building wheel for click-default-group (setup.py) ... done
  Created wheel for click-default-group: filename=click_default_group-1.2.2-py3-none-any.whl size=3384 sha256=41c1a01ca645c3ffb6cb6fa179211601451e3b4e2758c5e3353612b026e044fe
  Stored in directory: /home/nekmo/.cache/pip/wheels/f1/e3/67/f79591b232f0deb8e51317fa288eef8b996e2d6cf033bdc1a0
Successfully built click-default-group
Installing collected packages: click, click-default-group
Successfully installed click-7.1.2 click-default-group-1.2.2
WARNING: You are using pip version 20.2b1; however, version 21.0 is available.
You should consider upgrading via the '/home/nekmo/.virtualenvs/tmp-71d4da54785d17c/bin/python -m pip install --upgrade pip' command.
(tmp-71d4da54785d17c) [nekmo@homura ~/.virtualenvs/tmp-71d4da54785d17c]$ python --version
Python 3.9.1
(tmp-71d4da54785d17c) [nekmo@homura ~/.virtualenvs/tmp-71d4da54785d17c]$ 

Can you please try running the following command on your machine?

pip install click-default-group

Thanks! :)

controlcde commented 3 years ago

I don't know what I have done, but after executing python setup.py install again the install process get through.