Активность
Ответил на комментарий к статье Добавление Xiaomi Universal IR Remote Controller в Domoticz
«<p>Версия домотикз 4.10217. </p>»
Ответил на комментарий к статье Добавление Xiaomi Universal IR Remote Controller в Domoticz
«<p>Отправлю весь оставшийся лог с putty:<br /></p><p><br /></p><p>pi@raspberrypi:~/domoticz/plugins $ sudo git clone <a href="https://github.com/Whilser/Xiaomi-Universal-IR-Remote-Controller-Domoticz-plugin.git">https://github.com/Whilser/Xia...</a> Chuangmi</p>
<p>Клонирование в «Chuangmi»…</p>
<p>remote: Enumerating objects: 92, done.</p>
<p>remote: Counting objects: 100% (92/92), done.</p>
<p>remote: Compressing objects: 100% (86/86), done.</p>
<p>remote: Total 92 (delta 56), reused 14 (delta 6), pack-reused 0</p>
<p>Распаковка объектов: 100% (92/92), готово.</p>
<p>pi@raspberrypi:~/domoticz/plugins $ cd Chuangmi</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ virtualenv -p python3 .env</p>
<p>Already using interpreter /usr/bin/python3</p>
<p>Using base prefix '/usr'</p>
<p>Traceback (most recent call last):</p>
<p> File "/usr/local/bin/virtualenv", line 11, in </p>
<p> sys.exit(main())</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 712, in main</p>
<p> symlink=options.symlink)</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 927, in create_environment</p>
<p> site_packages=site_packages, clear=clear, symlink=symlink))</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 1112, in install_python</p>
<p> mkdir(lib_dir)</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 324, in mkdir</p>
<p> os.makedirs(path)</p>
<p> File "/usr/lib/python3.5/os.py", line 231, in makedirs</p>
<p> makedirs(head, mode, exist_ok)</p>
<p> File "/usr/lib/python3.5/os.py", line 231, in makedirs</p>
<p> makedirs(head, mode, exist_ok)</p>
<p> File "/usr/lib/python3.5/os.py", line 241, in makedirs</p>
<p> mkdir(name, mode)</p>
<p>PermissionError: [Errno 13] Permission denied: '/home/pi/domoticz/plugins/Chuangmi/.env'</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo apt-get install python3 python3-dev python3-pip git</p>
<p>Чтение списков пакетов… Готово</p>
<p>Построение дерева зависимостей</p>
<p>Чтение информации о состоянии… Готово</p>
<p>Уже установлен пакет git самой новой версии (1:2.11.0-3+deb9u4).</p>
<p>Уже установлен пакет python3 самой новой версии (3.5.3-1).</p>
<p>Уже установлен пакет python3-dev самой новой версии (3.5.3-1).</p>
<p>Уже установлен пакет python3-pip самой новой версии (9.0.1-2+rpt2).</p>
<p>обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 162 пакетов не обновлено.</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo apt-get install libffi-dev libssl-dev</p>
<p>Чтение списков пакетов… Готово</p>
<p>Построение дерева зависимостей</p>
<p>Чтение информации о состоянии… Готово</p>
<p>Уже установлен пакет libffi-dev самой новой версии (3.2.1-6).</p>
<p>Уже установлен пакет libssl-dev самой новой версии (1.1.0j-1~deb9u1).</p>
<p>обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 162 пакетов не обновлено.</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo pip3 install -U pip setuptools</p>
<p>Collecting pip</p>
<p> Downloading <a href="https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl">https://files.pythonhosted.org...</a> (1.4MB)</p>
<p> 100% |████████████████████████████████| 1.4MB 155kB/s</p>
<p>Collecting setuptools</p>
<p> Downloading <a href="https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl">https://files.pythonhosted.org...</a> (575kB)</p>
<p> 100% |████████████████████████████████| 583kB 214kB/s</p>
<p>Installing collected packages: pip, setuptools</p>
<p> Found existing installation: pip 9.0.1</p>
<p> Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr</p>
<p> Found existing installation: setuptools 39.2.0</p>
<p> Uninstalling setuptools-39.2.0:</p>
<p> Not removing or modifying (outside of prefix):</p>
<p> /usr/bin/easy_install</p>
<p> Successfully uninstalled setuptools-39.2.0</p>
<p>Successfully installed pip-19.1.1 setuptools-41.0.1</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo pip3 install -U virtualenv</p>
<p>Looking in indexes: https://pypi.org/simple, <a href="https://www.piwheels.org/simple">https://www.piwheels.org/simpl...</a></p>
<p>Collecting virtualenv</p>
<p> Downloading <a href="https://files.pythonhosted.org/packages/ca/ee/8375c01412abe6ff462ec80970e6bb1c4308724d4366d7519627c98691ab/virtualenv-16.6.0-py2.py3-none-any.whl">https://files.pythonhosted.org...</a> (2.0MB)</p>
<p> |████████████████████████████████| 2.0MB 301kB/s</p>
<p>Installing collected packages: virtualenv</p>
<p> Found existing installation: virtualenv 16.0.0</p>
<p> Uninstalling virtualenv-16.0.0:</p>
<p> Successfully uninstalled virtualenv-16.0.0</p>
<p>Successfully installed virtualenv-16.6.0</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ virtualenv -p python3 .env</p>
<p>Already using interpreter /usr/bin/python3</p>
<p>Using base prefix '/usr'</p>
<p>Traceback (most recent call last):</p>
<p> File "/usr/local/bin/virtualenv", line 10, in </p>
<p> sys.exit(main())</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 831, in main</p>
<p> symlink=options.symlink,</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 1106, in create_environment</p>
<p> install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 1375, in install_python</p>
<p> mkdir(lib_dir)</p>
<p> File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 391, in mkdir</p>
<p> os.makedirs(at_path)</p>
<p> File "/usr/lib/python3.5/os.py", line 231, in makedirs</p>
<p> makedirs(head, mode, exist_ok)</p>
<p> File "/usr/lib/python3.5/os.py", line 231, in makedirs</p>
<p> makedirs(head, mode, exist_ok)</p>
<p> File "/usr/lib/python3.5/os.py", line 241, in makedirs</p>
<p> mkdir(name, mode)</p>
<p>PermissionError: [Errno 13] Permission denied: '/home/pi/domoticz/plugins/Chuangmi/.env'</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo virtualenv -p python3 .env</p>
<p>Already using interpreter /usr/bin/python3</p>
<p>Using base prefix '/usr'</p>
<p>New python executable in /home/pi/domoticz/plugins/Chuangmi/.env/bin/python3</p>
<p>Also creating executable in /home/pi/domoticz/plugins/Chuangmi/.env/bin/python</p>
<p>Installing setuptools, pip, wheel...</p>
<p>done.</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo source .env/bin/activate</p>
<p>sudo: source: command not found</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ source .env/bin/activate</p>
<p>(.env) pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo pip3 install python-miio</p>
<p>Looking in indexes: https://pypi.org/simple, <a href="https://www.piwheels.org/simple">https://www.piwheels.org/simpl...</a></p>
<p>Requirement already satisfied: python-miio in /usr/local/lib/python3.5/dist-packages (0.4.0)</p>
<p>Requirement already satisfied: pretty-cron in /usr/local/lib/python3.5/dist-packages (from python-miio) (1.0.2)</p>
<p>Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from python-miio) (1.7.1)</p>
<p>Requirement already satisfied: pytz in /usr/local/lib/python3.5/dist-packages (from python-miio) (2018.4)</p>
<p>Requirement already satisfied: click in /usr/lib/python3/dist-packages (from python-miio) (6.6)</p>
<p>Requirement already satisfied: zeroconf in /usr/local/lib/python3.5/dist-packages (from python-miio) (0.20.0)</p>
<p>Requirement already satisfied: android-backup in /usr/local/lib/python3.5/dist-packages (from python-miio) (0.2.0)</p>
<p>Requirement already satisfied: appdirs in /usr/local/lib/python3.5/dist-packages (from python-miio) (1.4.3)</p>
<p>Requirement already satisfied: construct==2.9.41 in /usr/local/lib/python3.5/dist-packages (from python-miio) (2.9.41)</p>
<p>Requirement already satisfied: tqdm in /usr/local/lib/python3.5/dist-packages (from python-miio) (4.23.4)</p>
<p>Requirement already satisfied: attrs in /usr/local/lib/python3.5/dist-packages (from python-miio) (18.1.0)</p>
<p>Requirement already satisfied: netifaces!=0.10.5 in /usr/local/lib/python3.5/dist-packages (from zeroconf->python-miio) (0.10.7)</p>
<p>(.env) pi@raspberrypi:~/domoticz/plugins/Chuangmi $ deactivate</p>
<p>pi@raspberrypi:~/domoticz/plugins/Chuangmi $ sudo service domoticz restart</p>»
Добавил комментарий к статье Добавление Xiaomi Universal IR Remote Controller в Domoticz
«<p>У меня вываливаются ошибки: </p><p>
2019-06-13 20:21:44.369 Error: (Chuangmi) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Chuangmi/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload'.</p><p>2019-06-13 20:21:44.369 Error: (Шайба) Module Import failed, exception: 'ImportError'</p><p>2019-06-13 20:21:44.369 Error: (Шайба) Module Import failed: ' Name: miio'2019-06-13 20:21:44.369 Error: (Шайба) Error Line details not available.</p><p>2019-06-13 20:22:53.630 Error: Шайба hardware (12) thread seems to have ended unexpectedly
</p><p></p><p>До этого я управлял шайбой через python скрипт по методике с 4pda, через файлики irsend.py и codes.txt. Ваш плагин обязательно ставить на чистую систему, или можно совместить эти оба способа? </p>»
Регистрация
Присоединился к порталу