Nekmo / amazon-dash

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

No module named subprocess32 #72

Closed DryPerspective closed 6 years ago

DryPerspective commented 6 years ago

What is the purpose of your issue?

Guideline for bug reports

You can delete this section if your report is not a bug

Description

I realise there is another thread with this same issue, however their fix simply did not work for me. In short, download and install seemed to work without issues, I can and have discovered the MAC address of my button and edited the config file as such, however when attempting to run amazon-dash, it throws and error that there is no module named subprocess32.

What I Did

root@raspberrypi:/etc# amazon-dash Welcome to Amazon-dash v1.1.1 using Python 2.7.13 Listening for events. Amazon-dash will execute the events associated with the registered buttons. Traceback (most recent call last): File "/usr/local/bin/amazon-dash", line 6, in catch(cli)() File "/usr/local/lib/python2.7/dist-packages/amazon_dash/exceptions.py", line 91, in wrap return fn(*args, kwargs) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in call return self.main(args, kwargs) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke return callback(args, kwargs) File "/usr/local/lib/python2.7/dist-packages/amazon_dash/management.py", line 99, in run from amazon_dash.listener import Listener File "/usr/local/lib/python2.7/dist-packages/amazon_dash/listener.py", line 6, in from amazon_dash.confirmations import get_confirmation File "/usr/local/lib/python2.7/dist-packages/amazon_dash/confirmations.py", line 5, in from amazon_dash._compat import JSONDecodeError File "/usr/local/lib/python2.7/dist-packages/amazon_dash/_compat.py", line 18, in import subprocess32 as subprocess ImportError: No module named subprocess32

Nekmo commented 6 years ago

Your setuptools version is too old. Release 18.0 was released on Jun 23 2015.

Upgrade setuptools:

pip install -U setuptools

And reinstall amazon-dash

pip install -I -U --no-cache-dir amazon-dash
DryPerspective commented 6 years ago

Apologies that I left it ambiguous in my original post. I meant my pip was v18.0. My setuptools is up to date (v40.0.0), though I tried to update to be sure and reinstall amazon-dash and the problem persists.

Nekmo commented 6 years ago

Please paste the installation output here (pip install -I -U --no-cache-dir amazon-dash). I can't reproduce the error.

[nekmo@homura ~]$ mktmpenv -p /usr/bin/python2
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/python2
Also creating executable in /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/preactivate
virtualenvwrapper.user_scripts creating /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/postactivate
virtualenvwrapper.user_scripts creating /home/nekmo/.virtualenvs/tmp-e3a697515d055f4/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
(tmp-e3a697515d055f4) [nekmo@homura ~/.virtualenvs/tmp-e3a697515d055f4]$ pip install -U setuptools pip
Requirement already up-to-date: setuptools in ./lib/python2.7/site-packages (40.0.0)
Requirement already up-to-date: pip in ./lib/python2.7/site-packages (18.0)
(tmp-e3a697515d055f4) [nekmo@homura ~/.virtualenvs/tmp-e3a697515d055f4]$ pip install amazon-dash
Collecting amazon-dash
  Downloading https://files.pythonhosted.org/packages/d8/04/0f445d865e01e8514e7ab023bc48e9a7dc133e2e50ccd46d88db92ff5d9a/amazon-dash-1.1.1.tar.gz
Collecting PyYAML>=3.0 (from amazon-dash)
Collecting jsonschema (from amazon-dash)
  Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting requests (from amazon-dash)
  Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting click (from amazon-dash)
  Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Collecting click-default-group (from amazon-dash)
Collecting scapy (from amazon-dash)
Collecting subprocess32 (from amazon-dash)
Collecting functools32; python_version == "2.7" (from jsonschema->amazon-dash)
Collecting chardet<3.1.0,>=3.0.2 (from requests->amazon-dash)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests->amazon-dash)
  Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->amazon-dash)
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->amazon-dash)
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Building wheels for collected packages: amazon-dash
  Running setup.py bdist_wheel for amazon-dash ... done
  Stored in directory: /home/nekmo/.cache/pip/wheels/56/be/6f/24701edfcce1c979520151a4e2d8f8ad324b8fcfb96a7d13ec
Successfully built amazon-dash
Installing collected packages: PyYAML, functools32, jsonschema, chardet, urllib3, certifi, idna, requests, click, click-default-group, scapy, subprocess32, amazon-dash
Successfully installed PyYAML-3.13 amazon-dash-1.1.1 certifi-2018.4.16 chardet-3.0.4 click-6.7 click-default-group-1.2 functools32-3.2.3.post2 idna-2.7 jsonschema-2.6.0 requests-2.19.1 scapy-2.4.0 subprocess32-3.5.2 urllib3-1.23
(tmp-e3a697515d055f4) [nekmo@homura ~/.virtualenvs/tmp-e3a697515d055f4]$ sudo amazon-dash --debug run --config /etc/amazon-dash.yml 
Welcome to Amazon-dash v1.1.1 using Python 2.7.15
Listening for events. Amazon-dash will execute the events associated with the registered buttons.
DryPerspective commented 6 years ago

Fair enough, I've never really used python before so can't really eliminate the possibility I've done something stupid here. Upon running your reinstall command:

root@raspberrypi:/home/pi# pip install -I -U --no-cache-dir amazon-dash
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting amazon-dash
  Downloading https://www.piwheels.org/simple/amazon-dash/amazon_dash-1.1.1-py2.py3-none-any.whl
Collecting click-default-group (from amazon-dash)
  Downloading https://files.pythonhosted.org/packages/86/3e/389d8bbe3033613b17ce4136dbcf3e69c785c9c54d08f3adb95336b52040/click-default-group-1.2.tar.gz
Collecting click (from amazon-dash)
  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
    100% |████████████████████████████████| 71kB 1.2MB/s
Collecting requests (from amazon-dash)
  Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 1.9MB/s
Collecting jsonschema (from amazon-dash)
  Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting scapy>=2.4.0 (from amazon-dash)
  Downloading https://files.pythonhosted.org/packages/68/01/b9943984447e7ea6f8948e90c1729b78161c2bb3eef908430638ec3f7296/scapy-2.4.0.tar.gz (3.1MB)
    100% |████████████████████████████████| 3.1MB 2.1MB/s
Collecting PyYAML>=3.0 (from amazon-dash)
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
    100% |████████████████████████████████| 276kB 2.1MB/s
Collecting idna<2.8,>=2.5 (from requests->amazon-dash)
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 1.8MB/s
Collecting urllib3<1.24,>=1.21.1 (from requests->amazon-dash)
  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 2.2MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests->amazon-dash)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 2.1MB/s
Collecting certifi>=2017.4.17 (from requests->amazon-dash)
  Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)
    100% |████████████████████████████████| 153kB 2.1MB/s
Collecting functools32; python_version == "2.7" (from jsonschema->amazon-dash)
  Downloading https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Installing collected packages: click, click-default-group, idna, urllib3, chardet, certifi, requests, functools32, jsonschema, scapy, PyYAML, amazon-dash
  Running setup.py install for click-default-group ... done
  Running setup.py install for functools32 ... done
  Running setup.py install for scapy ... done
  Running setup.py install for PyYAML ... done
Successfully installed PyYAML-3.13 amazon-dash-1.1.1 certifi-2018.4.16 chardet-3.0.4 click-6.7 click-default-group-1.2 functools32-3.2.3.post2 idna-2.7 jsonschema-2.6.0 requests-2.19.1 scapy-2.4.0 urllib3-1.23

And running the amazon-dash command:

root@raspberrypi:/home/pi# amazon-dash
Welcome to Amazon-dash v1.1.1 using Python 2.7.13
Listening for events. Amazon-dash will execute the events associated with the registered buttons.
Traceback (most recent call last):
  File "/usr/local/bin/amazon-dash", line 6, in <module>
    catch(cli)()
  File "/usr/local/lib/python2.7/dist-packages/amazon_dash/exceptions.py", line 91, in wrap
    return fn(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/amazon_dash/management.py", line 99, in run
    from amazon_dash.listener import Listener
  File "/usr/local/lib/python2.7/dist-packages/amazon_dash/listener.py", line 6, in <module>
    from amazon_dash.confirmations import get_confirmation
  File "/usr/local/lib/python2.7/dist-packages/amazon_dash/confirmations.py", line 5, in <module>
    from amazon_dash._compat import JSONDecodeError
  File "/usr/local/lib/python2.7/dist-packages/amazon_dash/_compat.py", line 18, in <module>
    import subprocess32 as subprocess
ImportError: No module named subprocess32
Nekmo commented 6 years ago

I think the problem is in the wheel package. The wheel packages give a lot of problems.

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

I'm investigating the problem.

Nekmo commented 6 years ago

The problem is in piwheels. I have opened a ticket requesting support.

https://github.com/bennuttall/piwheels/issues/83

Meanwhile you can install amazon-dash using a valid installer:

pip install  -I -U --no-cache-dir https://files.pythonhosted.org/packages/d8/04/0f445d865e01e8514e7ab023bc48e9a7dc133e2e50ccd46d88db92ff5d9a/amazon-dash-1.1.1.tar.gz
DryPerspective commented 6 years ago

Thanks for diagnosing it, however running your command still gives me an error, and just from skimming the output it seems that subprocess32 is still the issue here. I get:

root@raspberrypi:/home/pi# pip install  -I -U --no-cache-dir https://files.pythonhosted.org/packages/d8/04/0f445d865e01e8514e7ab023bc48e9a7dc133e2e50ccd46d88db92ff5d9a/amazon-dash-1.1.1.tar.gz
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting https://files.pythonhosted.org/packages/d8/04/0f445d865e01e8514e7ab023bc48e9a7dc133e2e50ccd46d88db92ff5d9a/amazon-dash-1.1.1.tar.gz
  Downloading https://files.pythonhosted.org/packages/d8/04/0f445d865e01e8514e7ab023bc48e9a7dc133e2e50ccd46d88db92ff5d9a/amazon-dash-1.1.1.tar.gz
Collecting PyYAML>=3.0 (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
    100% |████████████████████████████████| 276kB 2.1MB/s
Collecting jsonschema (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting requests (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)
    100% |████████████████████████████████| 92kB 1.9MB/s
Collecting click (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
    100% |████████████████████████████████| 71kB 1.8MB/s
Collecting click-default-group (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/86/3e/389d8bbe3033613b17ce4136dbcf3e69c785c9c54d08f3adb95336b52040/click-default-group-1.2.tar.gz
Collecting scapy (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/68/01/b9943984447e7ea6f8948e90c1729b78161c2bb3eef908430638ec3f7296/scapy-2.4.0.tar.gz (3.1MB)
    100% |████████████████████████████████| 3.1MB 2.1MB/s
Collecting subprocess32 (from amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/c3/5f/7117737fc7114061837a4f51670d863dd7f7f9c762a6546fa8a0dcfe61c8/subprocess32-3.5.2.tar.gz (96kB)
    100% |████████████████████████████████| 102kB 1.9MB/s
Collecting functools32; python_version == "2.7" (from jsonschema->amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Collecting idna<2.8,>=2.5 (from requests->amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 1.8MB/s
Collecting urllib3<1.24,>=1.21.1 (from requests->amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 2.1MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests->amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 2.1MB/s
Collecting certifi>=2017.4.17 (from requests->amazon-dash==1.1.1)
  Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)
    100% |████████████████████████████████| 153kB 2.1MB/s
Installing collected packages: PyYAML, functools32, jsonschema, idna, urllib3, chardet, certifi, requests, click, click-default-group, scapy, subprocess32, amazon-dash
  Running setup.py install for PyYAML ... done
  Running setup.py install for functools32 ... done
  Running setup.py install for click-default-group ... done
  Running setup.py install for scapy ... done
  Running setup.py install for subprocess32 ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2eqKuA/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-Ttuhd8/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv6l-2.7
    copying subprocess32.py -> build/lib.linux-armv6l-2.7
    running build_ext
    running build_configure
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for unistd.h... (cached) yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking signal.h usability... yes
    checking signal.h presence... yes
    checking for signal.h... yes
    checking sys/cdefs.h usability... yes
    checking sys/cdefs.h presence... yes
    checking for sys/cdefs.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking sys/syscall.h usability... yes
    checking sys/syscall.h presence... yes
    checking for sys/syscall.h... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for pipe2... yes
    checking for setsid... yes
    checking whether dirfd is declared... yes
    configure: creating ./config.status
    config.status: creating _posixsubprocess_config.h
    building '_posixsubprocess32' extension
    creating build/temp.linux-armv6l-2.7
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-kKRR4y/python2.7-2.7.13=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-armv6l-2.7/_posixsubprocess.o
    _posixsubprocess.c:16:20: fatal error: Python.h: No such file or directory
     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2eqKuA/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-Ttuhd8/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-2eqKuA/subprocess32/

Any ideas?

Nekmo commented 6 years ago

@mooproxy this error is different. You need to install python-dev:

sudo apt-get install python-dev
DryPerspective commented 6 years ago

You're right, my mistake. Thank you for your help.

DryPerspective commented 6 years ago

Apologies about the closing and reopening - I encountered another issue.

Amazon-dash doesn't seem to be running on startup. Manually entering the comment and pressing the button works just fine but startup doesn't. I just want to check whether the specific installation command you gave me or any other quirks of this specific issue may be causing this.

Nekmo commented 6 years ago

You are welcome :) I hope to be able to solve the problem soon with the piwheels team.

Nekmo commented 6 years ago

@mooproxy Check systemd service:

systemctl status amazon-dash
DryPerspective commented 6 years ago

Well, it does seem to be inactive. If it helps, whenever I run the command manually it always looks for the yml file in the directory I'm running the command out of rather than being at /etc/amazon-dash.yml, so when running the command I've had to run it out of there. Just in case that's causing issues with it breaking from not being able to find the right file.

pi@raspberrypi:~ $ systemctl status amazon-dash
● amazon-dash.service - Amazon Dash service
   Loaded: loaded (/lib/systemd/system/amazon-dash.service; disabled; vendor pre
   Active: inactive (dead)
Nekmo commented 6 years ago

You can enable amazon-dash service:

systemctl enable amazon-dash

This starts amazon-dash always on startup.

DryPerspective commented 6 years ago

That fixed it. Thanks a lot for all your help.