mitchellrj / eufy_robovac

Other
105 stars 52 forks source link

Errors on ARM based system #30

Open hentismith opened 2 years ago

hentismith commented 2 years ago

Good day

I'm testing the code for home assistant usage on my Odroid hc2.

When I try to get the demo code running the pip install fails:

henti@r2d2:/tmp/eufy_robovac$ bin/pip install -e .
Obtaining file:///tmp/eufy_robovac
Collecting cryptography (from eufy-robovac==0.0)
  Downloading https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz (546kB)
    100% |████████████████████████████████| 552kB 641kB/s
    Complete output from command python setup.py egg_info:

            =============================DEBUG ASSISTANCE==========================
            If you are seeing an error here please try the following to
            successfully install cryptography:

            Upgrade to the latest pip and try again. This will fix errors for most
            users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
            =============================DEBUG ASSISTANCE==========================

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-c1ayrlze/cryptography/setup.py", line 14, in <module>
        from setuptools_rust import RustExtension
    ModuleNotFoundError: No module named 'setuptools_rust'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-c1ayrlze/cryptography/

Upgrading pip didn't solve this.

Adding the directory to home assistant and setting up config as per example I get the following in log:

2021-07-30 14:28:44 ERROR (MainThread) [homeassistant.setup] Setup failed for eufy_vacuum: Integration not found.

Home assistant is running in docker with:

docker run --init -d   --name homeassistant   --restart=unless-stopped   -v /etc/localtime:/etc/localtime:ro   -v /home/henti/homeassistant:/config   --network=host   homeassistant/raspberrypi4-homeassistant:stable

And contents of directory is:

henti@r2d2:~$ ls -al homeassistant/custom_components/eufy_vacuum/
total 60
drwxr-xr-x 2 root root  4096 Jul 30 14:37 .
drwxr-xr-x 3 root root  4096 Jul 30 14:36 ..
-rw-rw-r-- 1 root root  1594 Jul 30 14:31 demo.py
-rw-rw-r-- 1 root root   698 Jul 30 14:31 __init__.py
-rw-rw-r-- 1 root root  1309 Jul 30 14:31 platform.py
-rw-rw-r-- 1 root root  1356 Jul 30 14:31 property.py
-rw-rw-r-- 1 root root  3556 Jul 30 14:31 robovac.py
-rw-rw-r-- 1 root root 20984 Jul 30 14:31 tuya.py
-rw-rw-r-- 1 root root  5889 Jul 30 14:31 vacuum.py